I am not sure if my system counts as a real system, since I am just beginning to
develop our first commercial EJB application but...
I am loading the settings from jndi.properties by using
PropertyResourceBundle jndiBundle =
(PropertyResourceBundle)ResourceBundle.getBundle("jndi")
to locate and load the file.
I then go through the enumerated keys to set the System properties.
Tim
Michael Hustler <[EMAIL PROTECTED]> on 04/11/2001 01:46:19 PM
Please respond to [EMAIL PROTECTED]
To: "Jboss (E-mail)" <[EMAIL PROTECTED]>
cc:
Subject: [JBoss-user] Setting up the naming provider
In a real system, how are people setting up the naming provider?
Is anyone using jndi.properies?
I have some code in my client to explicitly set the system properties:
System.setProperty("java.naming.factory.initial",
"org.jnp.interfaces.NamingContextFactory");
System.setProperty("java.naming.provider.url",
"localhost:1099");
I have seen others who have defined a <context-param> for each of these
parameters in a .xml file (ejb-jar.xml or jboss.xml?). The env is then read
in and set.
Is this the normal way of doing this or is there a way to get
jndi.properties to be read automatically?
thanks!
mike.
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user