What is the J2ee spec for JNDI lookup from a standalone java application???My application server is running on a different machine than my client java program. Now this java client program is trying to get a hold of the beans deployed on the application server. For this situation, what is the J2ee spec ?? I know that in weblogic, you will hav eto provide the PROVIDER_URL, INITIAL_CONTEXT_FACTORY, SECURITY_PRINCIPAL and SECURITY_CREDENTIALS. How does it work on websphere or JBoss etc??
Thanks in advance
The specs don't demand standalone client JNDI access through the default initialcontext. You can achieve this through application clients I beleievce
I'm also looking for a solution for the same problem. In my case, its little bit different that a standalone application or any other client for that matter, should access a business delegate, which is lying above the session beans.All these beans, business delegates are in a different machine and in an application server(JBOSS).
Kindly suggest a solution for this..
Thanks in advance..
It works the same way for all app servers. The protocol (t3, iiop, jnp) in PROVIDER_URL differs, the INITIAL_CONTEXT_FACTORY class differs, but the interface is the same. Put the parameters in a Properties object and construct the InitialContext using it, or, alternatively, specify them on the command line using -D.
For valid values for each app server, RTFM.
Is there a way to give access to my business delegates instead of the EJBeans to any remote client?