Hello,

You can use spring JndiDestinationResolver for example and add
destinationResolver attribute in jms consumer and provider. 

like this

        <jms:consumer service="poc:source" endpoint="jms"
                targetService="poc:destination" targetEndpoint="jms"
                destinationName="SmxInputQueue"
connectionFactory="#connectionFactory"
                destinationResolver="#jmsDestinationResolver"/>

        <jms:provider service="poc:destination" endpoint="jms"
                destinationName="SmxOutputQueue"
                connectionFactory="#connectionFactory"
                destinationResolver="#jmsDestinationResolver" />

        <bean id="connectionFactory"
                class="org.springframework.jndi.JndiObjectFactoryBean">
                <property name="jndiName"
                        value="javax.jms.QueueConnectionFactory" />
                <property name="jndiTemplate" ref="weblogicTemplate" />
        </bean>

        <bean id="jmsDestinationResolver"
               
class="org.springframework.jms.support.destination.JndiDestinationResolver">
                <property name="jndiTemplate">
                        <ref bean="weblogicTemplate" />
                </property>
                <property name="cache">
                        <value>true</value>
                </property>
        </bean>
       
        <bean id="weblogicTemplate"
                class="org.springframework.jndi.JndiTemplate">
                <property name="environment">
                        <props>
                                <prop key="java.naming.factory.initial">
                                       
weblogic.jndi.WLInitialContextFactory
                                </prop>
                                <prop key="java.naming.provider.url">
                                        t3://localhost:7001
                                </prop>
                        </props>
                </property>
        </bean> 




t_canada wrote:
> 
> Hi all,
> 
> I am totally new to ServiceMix and java as well.
> 
> I have gone through 3 tutorials.  One of them is to put a file in a poller
> folder and then it puts the message to the queue in ActiveMQ and at the
> same time, keep a copy in the sender folder.
> 
> Now, I would like to configure to put the message to JMS queue in weblogic
> server instead of ActiveMQ.  I have searched through this forum and I know
> that I can use the jndi lookup in the xbean.xml.  However, where do I
> specify which queue to put to?
> 
> <beans xmlns:jee="http://www.springframework.org/schema/jee";>
>   <jee:jndi-lookup id="connectionFactory"
> jndi-name="weblogic.jms.XAConnectionFactory">
>     <jee:environment>
>       java.naming.factory.initial=weblogic.jndi.WLInitialContextFactory
>       java.naming.provider.url=t3://localhost:7001
>     </jee:environment>
>   </jee:jndi-lookup>
> <beans>
> 
> Any helps would be greatly appreciated.
> 
> Thanks
> t_canada
> 

-- 
View this message in context: 
http://www.nabble.com/ServiceMix-3.2.2-and-JMS-queue-in-Weblogic-server-tp20159390p20170330.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.

Reply via email to