i have a hibernate.cfg.xml and a hibernate.properties file. how can i either make it so hibernate.cfg.xml or hibernate.properties reside outside the fatjar directory structure so a user can edit them to point to their choice of db install location (this would be cool)
better yet, is there a way to make it so it is coded so that the user doesnt have to edit those files? (even cooler)
i can do this with other file types i.e. txt,jasper,gif, but it is because they are referred to from java source files and not configuration files. i get a system property that gives the current directory and then append the child directory.
thanks for any assistance, jim
posted 8 years ago
i think i may have came across an idea i pieced together searching. i set a classpath in java using: export CLASSPATH=$CLASSPATH:/home/thirdshift/demolib i can add this with the java -jar demorun_fat.jar in a .sh file.