You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomee.apache.org by Temeraire <a....@gmail.com> on 2014/03/25 20:01:24 UTC

ConnectionFactory and Message Queue Config not picked up

In short, when starting the container I'm getting an error message that says
I'm unable to connect to the Queue Manager '' at local host(1414), but I
don't actually want to. I'm trying to attach to a Queue Manager with a name,
at a different host, using IBM WebsphereMQ.

I'm building a simple single session bean project in eclipse, with the
associated EAR and Client Projects, and Exporting an EAR from Eclipse to by
openEJB server.

When I look in the Ear file, it has all the Jar and .xml files I expect to
see.

My ejb-jar.xml is just open and close elements.
My Service-Jar.xml has the provider references to the Websphere classes and
along with the ra.xml seems to be doing it's job.

My openejb.xml is where I think I'm supposed to be putting the resource
config to actually tie these elements together. The Resource elements look
like this;

<Resource id="wmqRA" type="com.ibm.mq.connecter.RecourceAdapterImpl
class-name="com.ibm.mq.connecter.ResourceAdapterImpl>
</Resource>
<Resource id="jms/mQCF" type="javax.jms.ConnectionFactory"
provider="com.ibm.mq.jms#WebsphereMQConnectionFactory">
    ResourceAdapter=wmqRA
    HostName=myRemoteHost
    Port=1417
    QueueManager=remoteQueueManager
</Resource>
<Resource id="jms/Q1" type="Javax.jms.Queue"
provide=""com.ibm.mq.jms#WebsphereMQueue">
    BaseQueueName=Q1
    BaseQueueProviderName=remoteQueueManager
</Resource>

That none of the names are passing through suggests I've got something
completely wrong, but most of this is chopped together from the examples
scattered around this list and the rest of the web.




--
View this message in context: http://openejb.979440.n4.nabble.com/ConnectionFactory-and-Message-Queue-Config-not-picked-up-tp4668345.html
Sent from the OpenEJB User mailing list archive at Nabble.com.