ok, fixed both issues.  first the namespace issue:

added
<componentName>servicemix-jms</componentName>
as a property in my pom and that resolved that.

second, the jms issue to glassfish:
added the requisite jars from glassfish to servicemix/lib/optional
imqjmsra.jar
appserv-admin.jar
appserv-rt.jar
appserv-ws.jar
javaee.jar

then used sun's ConnectionFactory class in my xbean.xml
        <bean id="connectionFactory"
class="com.sun.messaging.QueueConnectionFactory"/>

all is happy now!  I just wanted to make sure I documented what I needed to
do here so anyone else searching on those things would be able to benefit
from what I found.

Regards,
Shawn


sgtmcd wrote:
> 
> I am attempting to create a jms consumer in my service unit in servicemix
> that listens to a queue running inside of glassfish on an embedded
> glassfish instance of mq.
> 
> <beans xmlns:jms="http://servicemix.apache.org/jms/1.0";  
>          xmlns:jee="http://www.springframework.org/schema/jee";>
>   <jee:jndi-lookup id="rpConnectionFactory"
> jndi-name="jms/ResourcePeerFactory">
>   </jee:jndi-lookup>
> 
>                           
>       <jms:consumer service="my:ConsumerService"
>               endpoint="jbi"
>               destinationName="jms/ResourcePeer"
>               connectionFactory="#rpConnectionFactory"
>               targetEndpoint="my:ProviderService"
>               targetService="my:ConsumerService"/>
> </beans>
> 
> This fails one of two ways....either with an unknown namespace
> "http://servicemix.apache.org/jms/1.0"; or at times it fails with unable to
> find name "jms/ResourcePeerFactory"
> 
> I am using service mix 3.3
> 
> Any ideas or pointers to what I am doing wrong?
> 

-- 
View this message in context: 
http://www.nabble.com/JMS-component-to-glassfish-queue-tp22292217p22351815.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to