Hi the list, Well I complete a the Jndi-JMS-howto on my website, with the declaration of some resources for the openjms server. And I had a problem.
To declare a Queue on a OpenJms server, I have to do something like this : <Resource name="jms/myQueue" auth="Container" type="org.exolab.jms.client.JmsQueue" description="my Queue" factory="org.exolab.jms.client.JmsDestinationFactory" name="queue1" persistent="true" /> And it doesn't work, obviously :) The problem is the name attribute. It is used by tomcat as the JNDI name in the tomcat Context, and by OpenJms as the Queue name on the server. If I make this declaration, I got a Xerces exception, my sheet is not XML compliant. If I change it for : <Resource name="queue1" auth="Container" type="org.exolab.jms.client.JmsQueue" description="my Queue" factory="org.exolab.jms.client.JmsDestinationFactory" persistent="true" /> First it doesn't respect the standard : JMS names have to begin with "jms/", then when tomcat call the factory.getObjectInstance(obj, name, nameCtx, environment) in org.apache.naming.factory.ResourceFactory, the obj object don't have the name property anymore and OpenJms doesn't know the queue name to instanciate. I don't have much ideas to solve this... PS : when you want to load with IE my howtos : http://wwwetu.utc.fr/~fcarrion/tomcat/jndi-jms-examples-howto.xml http://wwwetu.utc.fr/~fcarrion/tomcat/jndi-ejb-examples-howto.xml You get an error The XML page cannot be displayed. It's normal, this xml sheets have to be integrated in the tomcat documentation and compiled to generate html sheets. You don't have this trouble with firefox :) -- Fabien Carrion () Campagne du ruban ASCII -- Contre les mails en html /\ contre les pieces-jointes Microsoft ----------------------------------------- La información transmitida mediante el presente correo es para la(s) persona(s) cuya dirección aparece al calce, la información contenida es estrictamente confidencial y para lectura exclusiva de la (s) persona (s) mencionada(s) por lo que esta prohida la reproducción, distribución o copia del presente. Si usted ha recibido este correo por error, favor de contactar con el remitente y eliminarlo de todas las charolas de su correo. The information transmitted by this e-mail is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. If the reader of this message is not the intended recipient, you are hereby notified that you have received this message by error and that any review, dissemination, distribution or copying of this message including any attachments is strictly prohibited. If you received this by error, please contact the sender and delete the information from any computer.