You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by Ryan Fernandes <ry...@gmail.com> on 2006/08/08 14:27:03 UTC

Re: servicemix-components/jms versus servicemix-jms

HI Peter,

Am currently stuck on the same thing.
I've 
1. created the xbean.xml zipped into a service unit archive and made the
entry in META-INF/jbi.xml of the Service archive.
2. deployed the servicemix-jmsxxx.zip component in the 'install' folder
3. deployed my service archive.

I get a nice stack trace which says that ConnectionFactory cannot be looked
up.

Changing the configuration of the mbean (of the jms component) didnt help.
Any help would be appreciated.

My xbean.xml currently looks like this:
<beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
       xmlns:ryan="urn:ryan">
<jms:endpoint service="ryan:jmsservice"
			  endpoint="myjmsendpoint"
			  targetService="ryan:myservice"
		      targetEndpoint="myendpoint"
              role="consumer" 
              destinationStyle="queue"
              jmsProviderDestinationName="queue/A"
              jndiConnectionFactoryName="ConnectionFactory"
              defaultMep="http://www.w3.org/2004/08/wsdl/in-out" />
			  
</beans>

Thanks,
Ryan
-- 
View this message in context: http://www.nabble.com/servicemix-components-jms-versus-servicemix-jms-tf1376066.html#a5705305
Sent from the ServiceMix - User forum at Nabble.com.


Re: servicemix-components/jms versus servicemix-jms

Posted by Guillaume Nodet <gn...@gmail.com>.
I have update the documentation.
Please take a look and come back with any unanswered questions.

http://servicemix.goopen.org/site/servicemix-jms.html

On 8/9/06, Ryan Fernandes <ry...@gmail.com> wrote:
>
>
> Hi Guillaume,
>
> Just a few of (probably dumb) questions :
>
> 1. What does --jmsProviderDestinationName="queue/A" (in xbean.xml)--
> signify? Does it create a logical queue, as I cant see anything like
> queue/A
> or 'A' in jconsole.
>
> 2. How does one access this queue via jndi? I just get a
> NameNotFoundException when I do a lookup for this queue.
>
> 3. I get a connection factory when I jndi lookup ("ConnectionFactory").
> Can
> you please tell me where this name is configured ?
>
>
> Thanks in advance,
> Ryan
> --
> View this message in context:
> http://www.nabble.com/servicemix-components-jms-versus-servicemix-jms-tf1376066.html#a5720542
> Sent from the ServiceMix - User forum at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet

Re: servicemix-components/jms versus servicemix-jms

Posted by Ryan Fernandes <ry...@gmail.com>.
Hi Guillaume,

Just a few of (probably dumb) questions :

1. What does --jmsProviderDestinationName="queue/A" (in xbean.xml)--
signify? Does it create a logical queue, as I cant see anything like queue/A
or 'A' in jconsole.

2. How does one access this queue via jndi? I just get a
NameNotFoundException when I do a lookup for this queue.

3. I get a connection factory when I jndi lookup ("ConnectionFactory"). Can
you please tell me where this name is configured ? 


Thanks in advance,
Ryan
-- 
View this message in context: http://www.nabble.com/servicemix-components-jms-versus-servicemix-jms-tf1376066.html#a5720542
Sent from the ServiceMix - User forum at Nabble.com.


Re: servicemix-components/jms versus servicemix-jms

Posted by Guillaume Nodet <gn...@gmail.com>.
You should either define the ConnectionFactory inside the
jndi.xmlconfiguration file,
or use a direct reference to it inside your xbean.xml.

  <jms:endpoint ... connectionFactory="#connectionFactory"/>
  <bean id="connectionFactory" class="
org.apache.activemq.ActiveMQConnectionFactory">
    <property name="brokerURL" value="vm://localhost" />
  </bean>

On 8/8/06, Ryan Fernandes <ry...@gmail.com> wrote:
>
>
> HI Peter,
>
> Am currently stuck on the same thing.
> I've
> 1. created the xbean.xml zipped into a service unit archive and made the
> entry in META-INF/jbi.xml of the Service archive.
> 2. deployed the servicemix-jmsxxx.zip component in the 'install' folder
> 3. deployed my service archive.
>
> I get a nice stack trace which says that ConnectionFactory cannot be
> looked
> up.
>
> Changing the configuration of the mbean (of the jms component) didnt help.
> Any help would be appreciated.
>
> My xbean.xml currently looks like this:
> <beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
>        xmlns:ryan="urn:ryan">
> <jms:endpoint service="ryan:jmsservice"
>                           endpoint="myjmsendpoint"
>                           targetService="ryan:myservice"
>                       targetEndpoint="myendpoint"
>               role="consumer"
>               destinationStyle="queue"
>               jmsProviderDestinationName="queue/A"
>               jndiConnectionFactoryName="ConnectionFactory"
>               defaultMep="http://www.w3.org/2004/08/wsdl/in-out" />
>
> </beans>
>
> Thanks,
> Ryan
> --
> View this message in context:
> http://www.nabble.com/servicemix-components-jms-versus-servicemix-jms-tf1376066.html#a5705305
> Sent from the ServiceMix - User forum at Nabble.com.
>
>


-- 
Cheers,
Guillaume Nodet