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 <[EMAIL PROTECTED]> 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

Reply via email to