ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Calling 2 qmgrs using jboss mdb

Post new topic  Reply to topic Goto page 1, 2  Next
 Calling 2 qmgrs using jboss mdb « View previous topic :: View next topic » 
Author Message
brgmo
PostPosted: Wed Jun 27, 2007 4:11 am    Post subject: Calling 2 qmgrs using jboss mdb Reply with quote

Master

Joined: 03 Jun 2002
Posts: 227

Hi All,

I am trying to access two qmgrs inside jboss and it's not working. I have two mdb's listening to two different qmgr's on the same machine and it's not able to listen to two qmgrs simultaneously and listens to only one qmgr at a time which is the default qmgr.Can someone throw light on this.Is it some constraint on the jboss.Please this is really needed desperately as my whole work has come to standstill because of this.

Thanks in Advance
brgmo.
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Wed Jun 27, 2007 4:13 am    Post subject: Re: Calling 2 qmgrs using jboss mdb Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

brgmo wrote:
... and it's not able to listen ...



What does it mean ?
Any error messages ?
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
brgmo
PostPosted: Wed Jun 27, 2007 4:17 am    Post subject: Reply with quote

Master

Joined: 03 Jun 2002
Posts: 227

No,it's not able to recognize the existence of the other qmgr. I have an mdb which is listening to queue on the other qmgr and the messages are never picked up.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Jun 27, 2007 4:19 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Any error messages?

Does the qlocal show an Open Input Count?

Are you specifying the correct information for the qmgr - it seems if you can only read from the default qmgr that you might not be.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
brgmo
PostPosted: Wed Jun 27, 2007 4:25 am    Post subject: Reply with quote

Master

Joined: 03 Jun 2002
Posts: 227

Jeff,it's able to read only with default qmgr which is on port 1414. The OpenInputCount is always 0. It seems that in jboss we can't have two mdb's listening to two queues on two different qmgrs.
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Wed Jun 27, 2007 4:30 am    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

brgmo wrote:
Jeff,it's able to read only with default qmgr which is on port 1414. The OpenInputCount is always 0. It seems that in jboss we can't have two mdb's listening to two queues on two different qmgrs.



Hm,

I don't know how to say it.
If you need help with your problem answer simple question.
Are there any error messages ? Can you show it here ?
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
jefflowrey
PostPosted: Wed Jun 27, 2007 4:32 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

How have you configured the QCF for each qmgr? Are you sure you're giving the right information?

Are there any error messages in the Jboss log? Are there any error messages in the MQ error log?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Jun 27, 2007 4:32 am    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

brgmo wrote:
It seems that in jboss we can't have two mdb's listening to two queues on two different qmgrs.


Even with 2 different sets of connection details? QCF things?

(I am not now nor have I ever been a Java person, but I thought some of the code on this site did that. It's a bridge between two politically separate MQ domains)
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
brgmo
PostPosted: Wed Jun 27, 2007 6:51 am    Post subject: Reply with quote

Master

Joined: 03 Jun 2002
Posts: 227

I think may be connection factories are not configured properly. I am getting the following error:

org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.mq:service=JMSProviderLoader,name=WSMQJMSProvider


Quote:

<?xml version="1.0" encoding="UTF-8"?>
<connection-factories>

<!-- ==================================================================== -->
<!-- WSMQ connection factories -->
<!-- ==================================================================== -->

<!-- The WSMQ JMS provider loader -->
<mbean code="org.jboss.jms.jndi.JMSProviderLoader"
name="jboss.mq:service=JMSProviderLoader,name=WSMQJMSProvider">
<attribute name="ProviderName">WSMQJMSProvider</attribute>
<attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
<attribute name="QueueFactoryRef">wsmq/QM.LIFT</attribute>
<attribute name="TopicFactoryRef">wsmq/QM1.LIFT</attribute>
</mbean>

<!-- The WSMQ JMS connection factory -->
<no-tx-connection-factory>
<jndi-name>WSMQJms</jndi-name>
<rar-name>jms-ra.rar</rar-name>
<connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition>
<config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property>
<config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/WSMQJMSProvider</config-property>
<max-pool-size>20</max-pool-size>
</no-tx-connection-factory>

<mbean code="org.jboss.jms.jndi.JMSProviderLoader"
name="jboss.mq:service=JMSProviderLoader,name=WSMQJMSProvider">
<attribute name="ProviderName">WSMQJMSProvider</attribute>
<attribute name="ProviderAdapterClass">org.jboss.jms.jndi.JNDIProviderAdapter</attribute>
<attribute name="QueueFactoryRef">wsmq1/QM.EIP</attribute>
<attribute name="TopicFactoryRef">wsmq/QM1.EIP</attribute>
</mbean>

<!-- The WSMQ JMS connection factory -->
<no-tx-connection-factory>
<jndi-name>WSMQJms</jndi-name>
<rar-name>jms-ra.rar</rar-name>
<connection-definition>org.jboss.resource.adapter.jms.JmsConnectionFactory</connection-definition>
<config-property name="SessionDefaultType" type="java.lang.String">javax.jms.Topic</config-property>
<config-property name="JmsProviderAdapterJNDI" type="java.lang.String">java:/WSMQJMSProvider</config-property>
<max-pool-size>20</max-pool-size>
</no-tx-connection-factory>

</connection-factories>


I have defined the connection factories for two queue managers QM.LIFT and QM.EIP. When jboss tries to install this, i get the following error:

org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.mq:service=JMSProviderLoader,name=WSMQJMSProvider



So,can someone please tell me if the configuration of my connection factories is ok.


Regards
brgmo.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Jun 27, 2007 1:17 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Are your qcfs configured for client connection?

I believe you are only authorized one qmgr if in bindings...
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
brgmo
PostPosted: Thu Jun 28, 2007 3:13 am    Post subject: Reply with quote

Master

Joined: 03 Jun 2002
Posts: 227

I have MQServer and jBoss on the same machine. I am not using binding mode of the queue manager. I really need some help badly on this as we couldn't get XA working with jBoss and now we are not able to get two queue managers get working on jBoss. If someone can help me on this,it will really help me from getting into a very pathetic condition.
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Thu Jun 28, 2007 3:25 am    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

brgmo wrote:


org.jboss.deployment.DeploymentException: Trying to install an already registered mbean: jboss.mq:service=JMSProviderLoader,name=WSMQJMSProvider


Quote:


...
<mbean code="org.jboss.jms.jndi.JMSProviderLoader"
name="jboss.mq:service=JMSProviderLoader,name=WSMQJMSProvider">
...
<mbean code="org.jboss.jms.jndi.JMSProviderLoader"
name="jboss.mq:service=JMSProviderLoader,name=WSMQJMSProvider">

...





Is it correct (the same names) ?
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
brgmo
PostPosted: Thu Jun 28, 2007 3:28 am    Post subject: Reply with quote

Master

Joined: 03 Jun 2002
Posts: 227

Marcin,as far as i understand, WSMQJMS is the attribute defined for mq jms provider for jBoss.However,if i change that to a differenet value, i still get the same error i.e. trying to install an already registered bean.
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Thu Jun 28, 2007 3:31 am    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Change configuration, restart jboss and show entire error message.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
ebiere
PostPosted: Wed Jul 25, 2007 6:02 am    Post subject: Reply with quote

Newbie

Joined: 25 Jul 2007
Posts: 1
Location: london, uk

make sure the port attribute is configured correctly for the two MQ connectionfactories. by default, the port attribute is set to the default value 1414.
_________________
EBI
Back to top
View user's profile Send private message Yahoo Messenger
Display posts from previous:   
Post new topic  Reply to topic Goto page 1, 2  Next Page 1 of 2

MQSeries.net Forum Index » IBM MQ Java / JMS » Calling 2 qmgrs using jboss mdb
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.