Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / May 2006

Tip: Looking for answers? Try searching our database.

Building war files

Thread view: 
John Smith - 30 May 2006 12:28 GMT
I have a small app which contains a single property file. It also needs to
create a database when it starts up. The property file tells it where to do
this. I want to deploy it as a war file. However this would mean users will
have to unzip the war alter the property file, zip it up again before
dropping it on their app server. Is there a better way of separating the
code and configuraiton information when deploying java applications.

Thanks

Jon
dayjah - 30 May 2006 12:32 GMT
How about  you do not have these properties set in the properties file.
Then when the app first starts it checks for these being set or not. If
they are not set it goe through to a setup process where people can
configure these settings. The app the creates the needed
databases/tables, etc and sets the properties to be true. Then on each
subsequent start up it will not reconfigure and can just run as normal?

Mike
John Smith - 30 May 2006 13:06 GMT
Would this work if the app server did not exploded the war file?

Thanks

Jon
> How about  you do not have these properties set in the properties file.
> Then when the app first starts it checks for these being set or not. If
[quoted text clipped - 4 lines]
>
> Mike
Alex Hunsley - 30 May 2006 15:28 GMT
> Would this work if the app server did not exploded the war file?
>
> Thanks

I think the replier was meaning for you to have a properties file
outside of the jar, in the file system, somewhere in the web application
space.
dayjah - 31 May 2006 09:23 GMT
> > Would this work if the app server did not exploded the war file?
> >
[quoted text clipped - 3 lines]
> outside of the jar, in the file system, somewhere in the web application
> space.

that is correct. Sorry I didn't make this clear!
Andrea Desole - 30 May 2006 12:50 GMT
> I have a small app which contains a single property file. It also needs to
> create a database when it starts up. The property file tells it where to do
> this. I want to deploy it as a war file. However this would mean users will
> have to unzip the war alter the property file, zip it up again before
> dropping it on their app server. Is there a better way of separating the
> code and configuraiton information when deploying java applications.

If you want to configure a data source your best approach is probably JNDI


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.