This content has been marked as final.
Show 4 replies
-
1. Re: XAConnectionFactory not bound
oz_ko Aug 18, 2004 11:00 PM (in response to optimusprime)You need to supply a little more information:
jboss version
platform
jdk version? -
2. Re: XAConnectionFactory not bound
optimusprime Aug 19, 2004 12:26 PM (in response to optimusprime)Well, thanks. The deploy is ok now, but I'm not being able to find the QueueConnectionFactory through jndi lookup. I'll post my descriptors, plus the client code:
jboss.xml :<message-driven> <ejb-name>MailCreatorMDB</ejb-name> <destination-jndi-name>queue/MailQueue</destination-jndi-name> <resource-ref> <res-ref-name>jms/QCF</res-ref-name> <jndi-name>QueueConnectionFactory</jndi-name> </resource-ref> </message-driven>
ejb-jar.xml<enterprise-beans> <message-driven> <display-name>MailCreatorMDB</display-name> <ejb-name>MailCreatorMDB</ejb-name> <ejb-class>mailcreator.MailCreatorMDBBean</ejb-class> <transaction-type>Container</transaction-type> <message-driven-destination> <destination-type>javax.jms.Queue</destination-type> </message-driven-destination> <resource-ref> <res-ref-name>jms/QCF</res-ref-name> <res-type>javax.jms.QueueConnectionFactory</res-type> <res-auth>Container</res-auth> </resource-ref> <resource-env-ref> <resource-env-ref-name>queue/MailQueue</resource-env-ref-name> <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type> </resource-env-ref> </message-driven> </enterprise-beans>
jbossmq-destinations-service.xml<mbean code="org.jboss.mq.server.jmx.Queue" name="jboss.mq.destination:service=Queue,name=MailQueue"> <depends optional-attribute-name="DestinationManager">jboss.mq:service=DestinationManager</depends> </mbean>
Cliente code (POJO class):try { this.ctx = new InitialContext(System.getProperties()); QueueConnectionFactory factory = (QueueConnectionFactory) ctx.lookup("jms/QCF"); Queue queue = (Queue)ctx.lookup("java:/comp/env/jms/MailQueue"); QueueConnection queueConnection = factory.createQueueConnection(); QueueSession queueSession = queueConnection.createQueueSession(false,0); QueueSender sender = queueSession.createSender(queue); ObjectMessage objMsg = queueSession.createObjectMessage(); objMsg.setObject(userDTO); sender.send(objMsg); queueConnection.close(); }
I'm running jboss 3.2.2 on a windows XP (development, production is a Debian) JVM 1.4.2
Thanks
Vinicius -
3. Re: XAConnectionFactory not bound
adrian.brock Aug 20, 2004 12:27 PM (in response to optimusprime)There is no such deployment "QueueConnectionFactory".
There is a "ConnectionFactory" or "UIL2ConnectionFactory", etc. -
4. Re: XAConnectionFactory not bound
shantanugera Sep 28, 2005 9:32 AM (in response to optimusprime)Hi ,
I am having the same problem not able to find UILConnection factory ,so were you able to find any solution for the problem .
Thanks