Hi all,
On jars deployed in Jboss container they all assume the InitialContext
configured in jndi.properties file. However, through every JSP file that
uses my EJBs (Jboss with embedded Tomcat), I need to tell the InitialContext
as follows:
java.util.Properties prop = new java.util.Properties();
prop.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.Na
mingContextFactory");
prop.put(javax.naming.Context.PROVIDER_URL,"localhost:1099");
I decided to code a class that has this hardcoded but I still have to call
it in every file and if my app server changes I need to modify this class.
I developed my EJB & JSP with Inprise App Server + Tomcat and I just call
without need to specify the context:
javax.naming.InitialContext rowcontext = new javax.naming.InitialContext();
....
How can the same be achieved making the deployment generic?
Thanks in advance,
Carlos Ferrao
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user