-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 
Author Message
 Post subject: placing the hibernate.cfg.xml file.
PostPosted: Mon Sep 21, 2009 11:51 am 
Newbie

Joined: Mon Sep 21, 2009 11:12 am
Posts: 1
I have created a Hibernate application that runs as an executable jar on JDK 6 on Ubuntu 9.4. If I put the hibernate.cfg.xml file in the same directory as I am executing the app, the app finds the file and all is well. I need to keep this file external to the executable jar. Is there a way my Hibernate app could find the file if it is placed outside the default directory, say in /etc?

Thanks,
JayDK5


Top
 Profile  
 
 Post subject: Re: placing the hibernate.cfg.xml file.
PostPosted: Tue Sep 22, 2009 2:54 am 
Beginner
Beginner

Joined: Sat Aug 01, 2009 5:28 am
Posts: 42
set the properties classpath to the location of your cfg file

_________________
Warm Regards,
Tarun Walia


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 2 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.