Jeff Fayman wrote:
> I looked through the archives and saw some others with similar
> problems. The recommended solution was to remove the j2ee RI.
Do it! It has jndi.properties inside which screws jboss naming.
>
> Can someone please add some clarity to this suggestion. Does this
> mean to remove the j2ee jar file from the project? If so, I am unable
> to get access to javax.rmi which is necessary for the call.
javax.rmi is included into JDK 1.3. In case of 1.2 it can be extracted
from j2ee.jar or downloaded as a separate package from Sun.
javax.ejb is in jboss/client as ejb.jar
javax.naming is in JDK 1.3 or in jboss/client as jndi.jar
>
> Is there anything else I need to do in order to make use of JNDI
> from the client that I should know?
Yes, on the client side you need to have jnp-client.jar and
jboss-client.jar
in the classpath. Both are under jboss/client
Also, the easiest way to set naming properties in to include
jboss/conf/default/jndi.properties into the client classpath.
Then you may just call
InintialContext ctx = new InintialContext();
Best,
--
__________________________________________________
Alexander Kogan PTC www.ptc.com
[EMAIL PROTECTED] 140 Kendrick St. Needham MA 02494
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
List Help?: [EMAIL PROTECTED]