You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by ma...@uk.bnpparibas.com on 2008/01/11 15:45:01 UTC

JMS with MQ on ServiceMix

hello all,
        i have following testcase
i have to listen to 12 different MQs....
according to docs i have read ... i'll  have to deploy 12 service units 
containing an xbean.xml for activating consumers.
Now, i have to listen to MQ defined on a MQ server, so i won't have a JNDI 
name

all i got is hosname, channel, port, 

can i still use jms component or do i have to deploy my own?

thanks in advance and regards
        marco



This communication is confidential, may be privileged and is meant only for the intended recipient.  If you are 
not the intended recipient, please notify the sender by reply and delete this message from your system.  Any 
unauthorised dissemination, distribution or copying hereof is prohibited.

BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation UK Limited, BNP Paribas UK Limited, 
BNP Paribas Commodity Futures Ltd and Investment Fund Services Limited are authorised and regulated by 
the Financial Services Authority.

BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private Bank are authorised by the CECEI 
and AMF.  BNP Paribas London Branch, BNP Paribas Securities Services London Branch and BNP Paribas 
Private Bank London Branch are regulated by the Financial Services Authority for the conduct of their UK 
business.  BNP Paribas Securities Services London Branch is also a member of the London Stock Exchange.


Re: JMS with MQ on ServiceMix

Posted by ma...@uk.bnpparibas.com.
Bruce,
   yes u understood correctly.....  and yes  i should have had a look at 
FAQ

one more question since i am here:
if i need to listen to 14 different MQ destinations, i assume i'll have to 
deploy 14 service units... right?

thanks and regards
   marco



Internet
bruce.snyder@gmail.com

11/01/2008 16:24
Please respond to
users@servicemix.apache.org


To
users
cc

Subject
Re: JMS with MQ on ServiceMix






On Jan 11, 2008 7:45 AM,  <ma...@uk.bnpparibas.com> wrote:
> hello all,
>         i have following testcase
> i have to listen to 12 different MQs....
> according to docs i have read ... i'll  have to deploy 12 service units
> containing an xbean.xml for activating consumers.
> Now, i have to listen to MQ defined on a MQ server, so i won't have a 
JNDI
> name
>
> all i got is hosname, channel, port,
>
> can i still use jms component or do i have to deploy my own?

I think I understand what you're asking but I'm not completely sure.
So it sounds like you need to listen to destinations on another
message broker, correct? Well via the ActiveMQ JMS-to-JMS bridge, you
can do this via the servicemix-jms component. Here is a FAQ entry
about doing just that:

http://servicemix.apache.org/how-do-i-integrate-the-servicemix-jms-component-with-webspheremq.html


The example in the FAQ entry is about WebsphereMQ but you can do this
with any message broker for which you have a JMS connection factory.

Bruce
-- 
perl -e 'print 
unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

Blog: http://bruceblog.org/



This communication is confidential, may be privileged and is meant only for the intended recipient.  If you are 
not the intended recipient, please notify the sender by reply and delete this message from your system.  Any 
unauthorised dissemination, distribution or copying hereof is prohibited.

BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation UK Limited, BNP Paribas UK Limited, 
BNP Paribas Commodity Futures Ltd and Investment Fund Services Limited are authorised and regulated by 
the Financial Services Authority.

BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private Bank are authorised by the CECEI 
and AMF.  BNP Paribas London Branch, BNP Paribas Securities Services London Branch and BNP Paribas 
Private Bank London Branch are regulated by the Financial Services Authority for the conduct of their UK 
business.  BNP Paribas Securities Services London Branch is also a member of the London Stock Exchange.


Re: JMS with MQ on ServiceMix

Posted by Bruce Snyder <br...@gmail.com>.
On Jan 11, 2008 7:45 AM,  <ma...@uk.bnpparibas.com> wrote:
> hello all,
>         i have following testcase
> i have to listen to 12 different MQs....
> according to docs i have read ... i'll  have to deploy 12 service units
> containing an xbean.xml for activating consumers.
> Now, i have to listen to MQ defined on a MQ server, so i won't have a JNDI
> name
>
> all i got is hosname, channel, port,
>
> can i still use jms component or do i have to deploy my own?

I think I understand what you're asking but I'm not completely sure.
So it sounds like you need to listen to destinations on another
message broker, correct? Well via the ActiveMQ JMS-to-JMS bridge, you
can do this via the servicemix-jms component. Here is a FAQ entry
about doing just that:

http://servicemix.apache.org/how-do-i-integrate-the-servicemix-jms-component-with-webspheremq.html

The example in the FAQ entry is about WebsphereMQ but you can do this
with any message broker for which you have a JMS connection factory.

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache ActiveMQ - http://activemq.org/
Apache Camel - http://activemq.org/camel/
Apache ServiceMix - http://servicemix.org/
Apache Geronimo - http://geronimo.apache.org/

Blog: http://bruceblog.org/

Re: JMS with MQ on ServiceMix

Posted by ma...@uk.bnpparibas.com.
Hello,
         dont be disappointed :)  i have downloaded ServiceMix yesterday

the plan (without considering proactive fault tolerance, as an example of 
using email component to notify users of failures etc) is to
1) write a component that uses JDBCTemplate to insert data into a database
2) deploy 14 SUs to listen to 14 different MQs
3) write a (sorry, i still have to learn terminology)  'component' tha 
will be invoked by all 'MQ listeners' that process the incoming message, 
extract the SQLs and
invoke 1)

that shoul be it

Keep in mind that i m new to ServiceMix. i'll have to try to deploy 
something, then once the ball is rolling, it'll be over before i finish to 
smoke a cigar :))

As i m here: how do people generally test ServiceMix components that are 
going to be deployed? 
i'll need
- JUnit test for the component (Easy to write)
- mayb Mock tests for intercomponent communication
- integration test. Meaning, if the flow is of 3 servicemix components 
talking to each other,  how will i test it? i really want to test before i 
deploy..

thanks in advance and regards
        marco



 



Internet
ilangocal@yahoo.com

11/01/2008 15:10

To
users
cc
Marco MISTRONI
Subject
Re: JMS with MQ on ServiceMix






Hi
I could work with you on that. I have been trying to build on a similar 
test case. 
 
What is your configuration and setup so far?
 
regards
ilango

marco.mistroni@uk.bnpparibas.com wrote:
hello all,
i have following testcase
i have to listen to 12 different MQs....
according to docs i have read ... i'll have to deploy 12 service units 
containing an xbean.xml for activating consumers.
Now, i have to listen to MQ defined on a MQ server, so i won't have a JNDI 

name

all i got is hosname, channel, port, 

can i still use jms component or do i have to deploy my own?

thanks in advance and regards
marco



This communication is confidential, may be privileged and is meant only 
for the intended recipient. If you are 
not the intended recipient, please notify the sender by reply and delete 
this message from your system. Any 
unauthorised dissemination, distribution or copying hereof is prohibited.

BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation UK 
Limited, BNP Paribas UK Limited, 
BNP Paribas Commodity Futures Ltd and Investment Fund Services Limited are 
authorised and regulated by 
the Financial Services Authority.

BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private Bank 
are authorised by the CECEI 
and AMF. BNP Paribas London Branch, BNP Paribas Securities Services London 
Branch and BNP Paribas 
Private Bank London Branch are regulated by the Financial Services 
Authority for the conduct of their UK 
business. BNP Paribas Securities Services London Branch is also a member 
of the London Stock Exchange.





 Never miss a thing. Make Yahoo your homepage. 


This communication is confidential, may be privileged and is meant only for the intended recipient.  If you are 
not the intended recipient, please notify the sender by reply and delete this message from your system.  Any 
unauthorised dissemination, distribution or copying hereof is prohibited.

BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation UK Limited, BNP Paribas UK Limited, 
BNP Paribas Commodity Futures Ltd and Investment Fund Services Limited are authorised and regulated by 
the Financial Services Authority.

BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private Bank are authorised by the CECEI 
and AMF.  BNP Paribas London Branch, BNP Paribas Securities Services London Branch and BNP Paribas 
Private Bank London Branch are regulated by the Financial Services Authority for the conduct of their UK 
business.  BNP Paribas Securities Services London Branch is also a member of the London Stock Exchange.


Re: JMS with MQ on ServiceMix

Posted by ilango <il...@yahoo.com>.
Hi
  I could work with you on that. I have been trying to build on a similar test case. 
   
  What is your configuration and setup so far?
   
  regards
  ilango

marco.mistroni@uk.bnpparibas.com wrote:
  hello all,
i have following testcase
i have to listen to 12 different MQs....
according to docs i have read ... i'll have to deploy 12 service units 
containing an xbean.xml for activating consumers.
Now, i have to listen to MQ defined on a MQ server, so i won't have a JNDI 
name

all i got is hosname, channel, port, 

can i still use jms component or do i have to deploy my own?

thanks in advance and regards
marco



This communication is confidential, may be privileged and is meant only for the intended recipient. If you are 
not the intended recipient, please notify the sender by reply and delete this message from your system. Any 
unauthorised dissemination, distribution or copying hereof is prohibited.

BNP Paribas Fund Services UK Limited, BNP Paribas Trust Corporation UK Limited, BNP Paribas UK Limited, 
BNP Paribas Commodity Futures Ltd and Investment Fund Services Limited are authorised and regulated by 
the Financial Services Authority.

BNP Paribas, BNP Paribas Securities Services and BNP Paribas Private Bank are authorised by the CECEI 
and AMF. BNP Paribas London Branch, BNP Paribas Securities Services London Branch and BNP Paribas 
Private Bank London Branch are regulated by the Financial Services Authority for the conduct of their UK 
business. BNP Paribas Securities Services London Branch is also a member of the London Stock Exchange.






       
---------------------------------
Never miss a thing.   Make Yahoo your homepage.