Hi Nishant,
Though I can't help much since I am not working on the jms binding, I can
certainly say that the jms extension is something we are very intently
looking into presently. We are hoping to have some of it in our next
release in Jan 2008. You will hear more direct answers to your questions
once folks return from vacation, which is in a couple of days.
Thanks
- Venkat
On Dec 28, 2007 4:51 PM, Nishant Joshi [EMAIL PROTECTED] wrote:
Hi,
I m new to jms with tuscany.I have seen examples in 1.1-snapshot for jms
but
i have seen binding.ws instead of binding.jms (liitlet buit confused
:)
) . So my first question is why there is no sample for binding.jms? and
jms
jar is still not a part of tuscany official release.
I have tried with binding.jms...following is my composite file...
component name=HelloWorldServiceComponent
implementation.java class=helloworld.HelloWorldImpl /
service name=HelloWorldService
interface.java interface=helloworld.HelloWorldService /
binding.jms initialContextFactory=
org.apache.activemq.jndi.ActiveMQInitialContextFactory
jndiURL=tcp://localhost:61616
destination name=MyValueServiceQ create=never/
/binding.jms
/service
/component
when i m deploying my war into TOMCAT 6.0 i got following error...
org.osoa.sca.ServiceRuntimeException:
org.apache.tuscany.sca.binding.jms.impl.JMSBindingException: Error
starting
JMSServiceBinding
at org.apache.tuscany.sca.host.embedded.SCADomain.createNewInstance(
SCADomain.java:264)
at org.apache.tuscany.sca.host.embedded.SCADomain.newInstance(
SCADomain.java:82)
at org.apache.tuscany.sca.host.webapp.WebAppServletHost.init(
WebAppServletHost.java:204)
at org.apache.tuscany.sca.host.webapp.TuscanyServletFilter.init(
TuscanyServletFilter.java:51)
at org.apache.catalina.core.ApplicationFilterConfig.getFilter(
ApplicationFilterConfig.java:275)
Caused by: javax.jms.JMSException: Could not connect to broker URL:
tcp://localhost:61616. Reason: java.net.ConnectException: Connection
refused: connect
at org.apache.activemq.util.JMSExceptionSupport.create(
JMSExceptionSupport.java:33)
at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection
(
ActiveMQConnectionFactory.java:280)
at org.apache.activemq.ActiveMQConnectionFactory.createActiveMQConnection
(
ActiveMQConnectionFactory.java:214)
at org.apache.activemq.ActiveMQConnectionFactory.createConnection(
ActiveMQConnectionFactory.java:161)
at
org.apache.tuscany.sca.binding.jms.provider.JMSResourceFactoryActiveMQImpl.createConnection
(JMSResourceFactoryActiveMQImpl.java:103)
at
org.apache.tuscany.sca.binding.jms.provider.JMSResourceFactoryActiveMQImpl.getConnection
(JMSResourceFactoryActiveMQImpl.java:61)
at
org.apache.tuscany.sca.binding.jms.provider.JMSResourceFactoryActiveMQImpl.createSession
(JMSResourceFactoryActiveMQImpl.java:72)
at
org.apache.tuscany.sca.binding.jms.provider.JMSBindingServiceBindingProvider.registerListerner
(JMSBindingServiceBindingProvider.java:96)
at
org.apache.tuscany.sca.binding.jms.provider.JMSBindingServiceBindingProvider.start
(JMSBindingServiceBindingProvider.java:79)
... 33 more
Caused by: java.net.ConnectException: Connection refused: connect
at java.net.PlainSocketImpl.socketConnect(Native Method)
at java.net.PlainSocketImpl.doConnect(Unknown Source)
my next question is
Is it possbile to deploy tuscany jms service in Tomcat 6?
i have seen following code in sample which starts broker, but how can i do
when i deployed as war in Tomcat?
broker.addConnector(tcp://localhost:61616);
broker.start();
--
Thanks in advance
Nishant Joshi