Thank you for the sample code I will give it a try.  I was casting to a
reference though because the following code said the object was a
reference, which I using to try and figure out what was going on.

InitialContext theEJBContext = new InitialContext();
Object theObj =  theEJBContext.lookup("XAQCF1");
Class theClass = theObj.getClass();
System.out.println("Class: " + theClass.getName());

produced:
Class: javax.naming.Reference


I have managed to get the servlet to run using the following sample code.
Which failed earlier with the same exception, I am sorry I posted some
code with my attempt to debug it using print statements, I should have
reverted it back to the original code that failed.

Sample Code:
 QueueConnectionFactory
theQueueConnectionFactory
= (QueueConnectionFactory) theEJBContext.lookup("XAQCF1");


 I have it working now, I undid all the changes described in
the next paragraph, then installed jonas on the same machine and
called config_env, before launching tomcat.

When it was failing I had simply copied the RMI_jonas.jar to the lib
directory in WEB_INF, the jndi.properties and jonathan.prop to the tomcat
root directory, then modify the startup script to add the current folder
to the classpath, and launch tomcat from its root directory.  That allowed
me to access ejb beans, but not the jms server for some reason.  There
must be something I am missing that is being done by config_env, that I
wasn't.


Thanks
        G.C.

----
To unsubscribe, send email to [EMAIL PROTECTED] and
include in the body of the message "unsubscribe jonas-users".
For general help, send email to [EMAIL PROTECTED] and
include in the body of the message "help".

Reply via email to