users@glassfish.java.net

Re: Deploying an EAR with MDB that uses an ActiveMQ Connector Resource

From: <glassfish_at_javadesktop.org>
Date: Wed, 23 Apr 2008 23:17:40 PDT

Thank you so very much. That did the trick.

And now...I have a different problem that I thought I had correctly. To specify the ActiveMQ queue, I go to Connectors -> Admin Object Resources -> Create New. I then specify:
jndi name= jms/BusinessLogic
type= javax.jms.Queue
resource adapter= activemq-5.1.0
and a property named PhysicalName with the actual queue name that is on the ActiveMQ server. I also tried the property with the name Name.

I tried specifying it as part of the sun-ejb-jar.xml as
<ejb>
    <jndi-name>jms/BusinessLogic</jndi-name>
    ...
</ejb>

and also as
@MessageDriven( mappedName = "jms/BusinessLogic", activationConfig = { .....
on the MDB itself.

Despite all of those attempts, I get:
[#|2008-04-23T22:41:51.459-0700|WARNING|sun-appserver9.1|javax.enterprise.system.stream.err|_ThreadID=22;_ThreadName=Thread-38;_RequestID=9cb466d1-4fc1-48ef-b5fb-4956f7f996fd;|java.lang.NullPointerException
        at org.apache.activemq.command.ActiveMQDestination.setPhysicalName(ActiveMQDestination.java:208)
        at org.apache.activemq.command.ActiveMQDestination.<init>(ActiveMQDestination.java:77)
        at org.apache.activemq.command.ActiveMQQueue.<init>(ActiveMQQueue.java:39)

Which leads me to believe that I am specifying the JNDI resource wrong, or the lookup to get the resource wrong. What is the correct way? I have done some google searches, but still remain a bit confused about this part of JEE/EJB's.

Again, thank you!
[Message sent by forum member 'drizzt321' (drizzt321)]

http://forums.java.net/jive/thread.jspa?messageID=270886