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