Yes!!!

This is the trade-off .

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Kim, Yong
Sent: Thursday, September 12, 2002 7:41 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] How to use application specific properties


That's useful... but it's kind of JBoss specific... isn't it!

I prefer not to use heavy vendor specific solutions.

Mitchell

-----Original Message-----
From: Saroj Kumar [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 9:42 AM
To: [EMAIL PROTECTED]
Subject: RE: [JBoss-user] How to use application specific properties


You can use property-service.xml to define the path of external file and
And access it like

System.getProperty(key);


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Kim, Yong
Sent: Thursday, September 12, 2002 6:42 PM
To: '[EMAIL PROTECTED]'
Subject: RE: [JBoss-user] How to use application specific properties


I use external configuration file just because of the reason you
mentioned,
"I am not sure I like this because different machines/servers need
different
properties".  And I created a static class that reads in the key=value
pairs
from the file and store in memory as long as the contains stays running.

Mitchell

-----Original Message-----
From: Jon Haugsand [mailto:[EMAIL PROTECTED]]
Sent: Thursday, September 12, 2002 7:15 AM
To: [EMAIL PROTECTED]
Subject: [JBoss-user] How to use application specific properties


We have a local property file containg such things like name of
machines, files, ip-addresses and such for legacy interfaces.  I found
out (the hard way) that I could place this file in the
${JBOSS_HOME}/bin directory, presumably because it is from there we
run the server.  It shouldn't stay there of course, and further we
need it within the client too.

I know we could use some property mechanism within ejb-jar.xml, but I
cannot figure out how to get this with XDoclet and I am not sure I
like this because different machines/servers need different
properties.

Is there a Right (tm) way to do this?

-- 
  Jon Haugsand, <[EMAIL PROTECTED]>
  Norges Bank, <http://www.norges-bank.no>



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to