Hi,

The JMS binding has been ported to 2.x and we haven't done much testing in the 
OSGi environment. I checked in some changes during the weekend to bring up the 
bundles under OSGi [1] but I didn't have chances to run any JMS scenarios.

Can you try the latest code to see what will happen?

[1] http://svn.apache.org/viewvc?rev=821681&view=rev


From: roshan joseph 
Sent: Sunday, October 04, 2009 9:00 PM
To: [email protected] 
Subject: Distributed calculator example with JMS binding


      Hi, 

       

          I am trying to test the distributed osgi calculator example with the 
jms binding in Tuscany SCA 2.0. I am using the existing calculator sample for 
my test and changed the binding information from the RMI to JMS. Though both 
bundles get started in the osgi, it seems the call does n’t go through. Can 
someone help me? 

       

      What I am trying to do is use the add service alone for testing the 
bundle composites are like shown below, I uses an external activemq broker for 
testing. 

       

      My Calculator composite is: 

      <component name="CalculatorComponent"> 

              < tuscany :implementation.osgi 
bundleSymbolicName="calculator.dosgi" bundleVersion="1.0.0" /> 

              <service name="CalculatorService"> 

                              <binding.ws 
uri="http://localhost:8086/CalculatorService"/> 

              </service> 

           

              <reference name="addService"> 

                             < tuscany :binding.jms uri="jms:MyService" 
jndiURL="tcp://localhost:61616"> 

                     <destination create="ifNotExist" jndiName="MyService" 
type="queue"/> 

                              </ tuscany :binding.jms> 

              </reference> 

                  </component> 

       

      And my OperationsComposite which has the add service details is like 
below: 

      <component name="OperationsComponent"> 

              < tuscany :implementation.osgi 
bundleSymbolicName="calculator.dosgi.operations" bundleVersion="1.0.0" /> 

              <service name="AddService"> 

                              < tuscany :binding.jms 
initialContextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFactory" 

                                   jndiURL="tcp://localhost:61616"/> 

              </service> 

          </component> 

       

      I don’t see anything happening in the message queue MyService, neither a 
message is send nor any connection established with the queue by the service 
provider. 

       

      Thanks in advance for any help or suggestions. 

       

      Thanks & Regards 

      Roshan 
     

Reply via email to