Hi,
I am new to SCA Java and am trying to send and receive a message through JMS binding from my two services. I already have 2 ActiveMQ queues running in JBOSS and wanted one service to send a message and another service to kick start on arrival any message in the second queue. This is my composite file I have for both the services <composite xmlns=http://www.osoa.org/xmlns/sca/1.0 targetNamespace="http://helloworld" xmlns:hw="http://helloworld" name="helloworldws"> <component name="HelloSendMsgServiceComponent"> <service name="HelloSendMsgService" promote="HelloSendMsgServiceComponent"> <interface.java interface="helloworld.HelloSendMsgService"/> <binding.jms initialContextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFa ctory" jndiURL="tcp://localhost:61616"> <destination name="SendQueue"/> </binding.jms> </service> <implementation.java class="helloworld.HelloSendMsgImpl" /> </component> <service name="HelloReceiveMsgService" promote="HelloReceiveMsgServiceComponent"> <interface.java interface="helloworld.HelloReceiveMsgService"/> <binding.jms initialContextFactory="org.apache.activemq.jndi.ActiveMQInitialContextFa ctory" jndiURL="tcp://localhost:61616"> <destination name="ReceiveQueue" create="never"/> <response> <destination name="ReceiveQueue" create="never"/> </response> </binding.jms> </service> <component name="HelloReceiveMsgServiceComponent"> <implementation.java class="helloworld.HelloReceiveMsgImpl"/> </component> </composite> JNDI lookup does not work, for getting a connection to the queue from the service to send a msg and for my receive service do I need to implement some message listener for this part to work. Appreciate your help in advance... Regards Roshan Important notice:This e-mail and any attachment thereto contains corporate proprietary information. If you have received it by mistake, please notify us immediately by reply e-mail and delete this e-mail and its attachments from your system. Thank You.
