You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by t_canada <ts...@gmail.com> on 2008/10/25 01:27:10 UTC

ServiceMix 3.2.2 and JMS queue in Weblogic server

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-tp20159390p20159390.html
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: ServiceMix 3.2.2 and JMS queue in Weblogic server

Posted by t_canada <ts...@gmail.com>.
Hi tranchida,

I have already added weblogic.jar to the classpath and
<servicemix_home>/lib.  I have even added it to the optional folder.  It
just kept giving me the same error.........



tranchida wrote:
> 
> 
> You have to add the weblogic.jar to your classpath and in
> <servicemix_home>/lib
> 
> From my experience, the best way is to generate and add the jar
> wlfullclient.jar from Weblogic 10 server.
> 
> please follow instruction from here :
> http://edocs.bea.com/wls/docs100/client/jarbuilder.html#wp1077742
> 
> poc is the namespace for the service, you can add something like this in
> the beans tag
> 
> <beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
>       xmlns="http://www.springframework.org/schema/beans"
> 
>       xmlns:poc="http://www.test.com/poc"
> 
>       xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
>       xsi:schemaLocation="http://servicemix.apache.org/jms/1.0
> http://servicemix.apache.org/schema/servicemix-jms-3.2.2.xsd
>       http://activemq.org/config/1.0
> http://activemq.apache.org/schema/core/activemq-core-4.1.1.xsd
>       http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
> 
> 

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


Re: ServiceMix 3.2.2 and JMS queue in Weblogic server

Posted by t_canada <ts...@gmail.com>.
Hi

I have started from scratch and I found out that whenever I added the 
<jms:provider service="test:destination" endpoint="jms">, I got the
following errors:


======================================================
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException:
Failed to convert property value of type
[weblogic.jms.client.JMSConnectionFactory] to required type
[javax.jms.ConnectionFactory] for property 'connectionFactory'; nested
exception is java.lang.IllegalArgumentException: Cannot convert value of
type [weblogic.jms.client.JMSConnectionFactory] to required type
[javax.jms.ConnectionFactory] for property 'connectionFactory': no matching
editors or conversion strategy found
        at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:104)
        at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.java:59)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1126)
================================================================

Here is my full xbean.xml
======================================================
<?xml version="1.0" encoding="UTF-8"?>

<beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
       xmlns:test="http://test"
       xmlns:amq="http://activemq.org/config/1.0"
       xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://servicemix.apache.org/jms/1.0
http://servicemix.apache.org/schema/servicemix-jms-3.2.2.xsd
       http://activemq.org/config/1.0
http://activemq.apache.org/schema/core/activemq-core-4.1.1.xsd
       http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

    <!-- START SNIPPET: provider -->
    <jms:endpoint service="test:MyProviderService"
                  endpoint="myProvider"
                  role="provider" 
                  destinationStyle="queue"
                  jmsProviderDestinationName="queue/A"
                  connectionFactory="#connectionFactory"
                  wsdlResource="classpath:provider.wsdl" />
    <!-- END SNIPPET: provider -->

    <jms:endpoint service="test:MySoapProviderService"
                  endpoint="myProvider"
                  role="provider" 
                  destinationStyle="queue"
                  jmsProviderDestinationName="queue/A/Soap"
                  connectionFactory="#connectionFactory"
                  soap="true"/>

    <amq:connectionFactory id="connectionFactory"
brokerURL="tcp://localhost:61616" />


    <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://hpiaapp1:27978
                </prop>
            </props>
        </property>
    </bean>

	
    <!-- JMS ConnectionFactory from JNDI -->
	
    <bean id="JmsconnectionFactory"
class="org.springframework.jndi.JndiObjectFactoryBean">
        <property name="jndiTemplate" ref="weblogicTemplate" />
		<property name="jndiName"
value="com/mdsi/port/paJms/queueConnectionFactory" />
    </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>

    <jms:provider service="test:destination" endpoint="jms"
                 
destinationName="com.mdsi.port.paJms.DefaultCIS0.InboundQueue"
                  connectionFactory="#JmsconnectionFactory"
                  destinationResolver="#jmsDestinationResolver" />	

</beans>
======================================================

If I remove it, I don't get this error, but of course I need it in order to
send message.

I have done a google search and the only suggested solution is that there
may be 2 different versions of weblogic.jar, but I have checked my system
and I only have one version.

Any helps?

Thanks

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


Re: ServiceMix 3.2.2 and JMS queue in Weblogic server

Posted by t_canada <ts...@gmail.com>.
Hi tranchida,

I have added the weblogic.jar and in <servicemix_home>/lib, and I am getting
another error message:
"org.springframework.beans.TypeMismatchException: Failed to convert property
value of type [weblogic.jms.client.JMSXAConnectionFactory] to required type
[javax.jms.ConnectionFactory] for property 'connectionFactory'"

Here is the output from 'mvn install'
===========================
[INFO] [compiler:compile]
[INFO] No sources to compile
[INFO] [jbi:generate-jbi-service-unit-descriptor]
[INFO] Generating jbi.xml
[INFO] Created Service Unit Analyzer
org.apache.servicemix.jms.packaging.JmsServiceUnitAnalyzer@57828d
2008-10-28 17:23:24,095 [main           ] INFO 
ileSystemXmlApplicationContext - Refreshing org.apache.xbean
.spring.context.FileSystemXmlApplicationContext@1a3b359: display name
[org.apache.xbean.spring.context.FileS
ystemXmlApplicationContext@1a3b359]; startup date [Tue Oct 28 17:23:24 PDT
2008]; root of context hierarchy
2008-10-28 17:23:24,174 [main           ] INFO  XBeanXmlBeanDefinitionReader  
- Loading XML bean definition
s from URL
[file:/C:/servicemix/projects/tutorial_jms/tutorial_jms-jms-su/src/main/resources/xbean.xml]
2008-10-28 17:23:24,549 [main           ] INFO 
ileSystemXmlApplicationContext - Bean factory for applicatio
n context
[org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1a3b359]:
org.springframework.bea
ns.factory.support.DefaultListableBeanFactory@739aa3
2008-10-28 17:23:24,564 [main           ] INFO  DefaultListableBeanFactory    
- Pre-instantiating singleton
s in
org.springframework.beans.factory.support.DefaultListableBeanFactory@739aa3:
defining beans [org.apache
.servicemix.jms.endpoints.JmsConsumerEndpoint,org.apache.servicemix.jms.endpoints.JmsProviderEndpoint,connec
tionFactory,jmsDestinationResolver,weblogicTemplate]; root of factory
hierarchy
2008-10-28 17:23:25,439 [main           ] INFO  DefaultListableBeanFactory    
- Destroying singletons in or
g.springframework.beans.factory.support.DefaultListableBeanFactory@739aa3:
defining beans [org.apache.servic
emix.jms.endpoints.JmsConsumerEndpoint,org.apache.servicemix.jms.endpoints.JmsProviderEndpoint,connectionFac
tory,jmsDestinationResolver,weblogicTemplate]; root of factory hierarchy
[WARNING] Failed to generate jbi.xml:
org.apache.servicemix.maven.plugin.jbi.JbiPluginException: Unable to g
enerate service unit descriptor!
org.apache.servicemix.maven.plugin.jbi.JbiPluginException: Unable to
generate service unit descriptor!
        at
org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.generateJbiDescriptor(Ge
nerateServiceUnitDescriptorMojo.java:206)
        at
org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.execute(GenerateServiceU
nitDescriptorMojo.java:143)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:55
8)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExec
utor.java:499)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478
)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycle
Executor.java:330)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.
java:291)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'org.apach
e.servicemix.jms.endpoints.JmsConsumerEndpoint' defined in URL
[file:/C:/servicemix/projects/tutorial_jms/tu
torial_jms-jms-su/src/main/resources/xbean.xml]: Error setting property
values; nested exception is org.spri
ngframework.beans.PropertyBatchUpdateException; nested
PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException:
Failed to convert property value
 of type [weblogic.jms.client.JMSXAConnectionFactory] to required type
[javax.jms.ConnectionFactory] for pro
perty 'connectionFactory'; nested exception is
java.lang.IllegalArgumentException: Cannot convert value of t
ype [weblogic.jms.client.JMSXAConnectionFactory] to required type
[javax.jms.ConnectionFactory] for property
 'connectionFactory': no matching editors or conversion strategy found
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(
AbstractAutowireCapableBeanFactory.java:1129)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(Abstrac
tAutowireCapableBeanFactory.java:861)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractA
utowireCapableBeanFactory.java:421)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.jav
a:251)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingle
tonBeanRegistry.java:156)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:24
8)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:16
0)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(Def
aultListableBeanFactory.java:287)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext
.java:352)
        at
org.apache.servicemix.common.xbean.AbstractXBeanServiceUnitAnalyzer.init(AbstractXBeanServiceUnit
Analyzer.java:90)
        at
org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.generateJbiDescriptor(Ge
nerateServiceUnitDescriptorMojo.java:185)
        ... 19 more
Caused by: org.springframework.beans.PropertyBatchUpdateException; nested
PropertyAccessExceptions (1) are:
PropertyAccessException 1: org.springframework.beans.TypeMismatchException:
Failed to convert property value
 of type [weblogic.jms.client.JMSXAConnectionFactory] to required type
[javax.jms.ConnectionFactory] for pro
perty 'connectionFactory'; nested exception is
java.lang.IllegalArgumentException: Cannot convert value of t
ype [weblogic.jms.client.JMSXAConnectionFactory] to required type
[javax.jms.ConnectionFactory] for property
 'connectionFactory': no matching editors or conversion strategy found
        at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.jav
a:104)
        at
org.springframework.beans.AbstractPropertyAccessor.setPropertyValues(AbstractPropertyAccessor.jav
a:59)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(
AbstractAutowireCapableBeanFactory.java:1126)
        ... 29 more

==========================

I have tried to google and what I have found is that there may be 2 versions
of weblogic.jar in the class loader.  I have double checked and only 1
version is there.

Any helps would be greatly appreciated as I basically can't continue without
connecting to JMS.

Thanks

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


Re: ServiceMix 3.2.2 and JMS queue in Weblogic server

Posted by tranchida <gi...@tranchida.ch>.

You have to add the weblogic.jar to your classpath and in
<servicemix_home>/lib

>From my experience, the best way is to generate and add the jar
wlfullclient.jar from Weblogic 10 server.

please follow instruction from here :
http://edocs.bea.com/wls/docs100/client/jarbuilder.html#wp1077742

poc is the namespace for the service, you can add something like this in the
beans tag

<beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
      xmlns="http://www.springframework.org/schema/beans"

      xmlns:poc="http://www.test.com/poc"

      xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://servicemix.apache.org/jms/1.0
http://servicemix.apache.org/schema/servicemix-jms-3.2.2.xsd
      http://activemq.org/config/1.0
http://activemq.apache.org/schema/core/activemq-core-4.1.1.xsd
      http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">


t_canada wrote:
> 
> Thanks tranchida.
> 
> I have tried to do a mvn install after I configured the xbean.xml and I
> got the following errors:
> 
> =============================================================================
> [INFO] Created Service Unit Analyzer
> org.apache.servicemix.jms.packaging.JmsServiceUnitAnalyzer@13c296b
> 2008-10-27 14:02:53,638 [main           ] INFO 
> ileSystemXmlApplicationContext - Refreshing
> org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1ef4b2b:
> display name
> [org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1ef4b2b];
> startup date [Mon Oct 27 14:02:53 PDT 2008]; ro
> ot of context hierarchy
> 2008-10-27 14:02:53,857 [main           ] INFO 
> XBeanXmlBeanDefinitionReader   - Loading XML bean definitions from URL
> [file:/C:/servicemix/projects/tutorial_jms/tutorial_jms-jms-su/src/main/resources/xbean.xml]
> 2008-10-27 14:02:54,529 [main           ] INFO 
> ileSystemXmlApplicationContext - Bean factory for application context
> [org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1ef4b2b]:
> org.springframework.beans.factory.support.DefaultListableBeanFactory@1ad6c98
> 2008-10-27 14:02:54,544 [main           ] INFO  DefaultListableBeanFactory    
> - Pre-instantiating singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@1ad6c98:
> defining beans
> [org.apache.servicemix.jms.endpoints.JmsConsumerEndpoint,org.apache.servicemix.jms.endpoints.J
> msProviderEndpoint,connectionFactory,jmsDestinationResolver,weblogicTemplate];
> root of factory hierarchy
> 2008-10-27 14:02:54,732 [main           ] INFO  DefaultListableBeanFactory    
> - Destroying singletons in
> org.springframework.beans.factory.support.DefaultListableBeanFactory@1ad6c98:
> defining beans
> [org.apache.servicemix.jms.endpoints.JmsConsumerEndpoint,org.apache.servicemix.jms.endpoints.JmsProvi
> derEndpoint,connectionFactory,jmsDestinationResolver,weblogicTemplate];
> root of factory hierarchy
> [WARNING] Failed to generate jbi.xml:
> org.apache.servicemix.maven.plugin.jbi.JbiPluginException: Unable to
> generate service unit descriptor!
> org.apache.servicemix.maven.plugin.jbi.JbiPluginException: Unable to
> generate service unit descriptor!
>         at
> org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.generateJbiDescriptor(GenerateServiceUnitDescriptorMojo.java:206)
>         at
> org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.execute(GenerateServiceUnitDescriptorMojo.java:143)
>         at
> org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
>         at
> org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
>         at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
>         at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
>         at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
>         at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>         at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
>         at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
>         at java.lang.reflect.Method.invoke(Method.java:585)
>         at
> org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
>         at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
>         at
> org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
>         at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name
> 'org.apache.servicemix.jms.endpoints.JmsConsumerEndpoint' defined in URL
> [file:/C:/servicemix/projects/tutorial_jms/tutorial_jms-jms-su/src/main/resources/xbean.xml]:
> Cannot resolve reference to bean 'c
> onnectionFactory' while setting bean property 'connectionFactory'; nested
> exception is org.springframework.beans.factory.BeanCreationException:
> Error creating bean with name 'connectionFactory' defined in URL
> [file:/C:/servicemix/projects/tutorial_jms/tutorial_jms-jms-su/src/main/resources/xbean.xml
> ]: Invocation of init method failed; nested exception is
> javax.naming.NoInitialContextException: Cannot instantiate class:
> weblogic.jndi.WLInitialContextFactory [Root exception is
> java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]
>         at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
>         at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1099)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
>         at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
>         at
> org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
>         at
> org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
>         at
> org.apache.servicemix.common.xbean.AbstractXBeanServiceUnitAnalyzer.init(AbstractXBeanServiceUnitAnalyzer.java:90)
>         at
> org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.generateJbiDescriptor(GenerateServiceUnitDescriptorMojo.java:185)
>         ... 19 more
> Caused by: org.springframework.beans.factory.BeanCreationException: Error
> creating bean with name 'connectionFactory' defined in URL
> [file:/C:/servicemix/projects/tutorial_jms/tutorial_jms-jms-su/src/main/resources/xbean.xml]:
> Invocation of init method failed; nested exception is javax.naming.NoInit
> ialContextException: Cannot instantiate class:
> weblogic.jndi.WLInitialContextFactory [Root exception is
> java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1174)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
>         at
> org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
>         at
> org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
>         at
> org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
>         ... 31 more
> Caused by: javax.naming.NoInitialContextException: Cannot instantiate
> class: weblogic.jndi.WLInitialContextFactory [Root exception is
> java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]
>         at
> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
>         at
> javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
>         at javax.naming.InitialContext.init(InitialContext.java:223)
>         at javax.naming.InitialContext.<init>(InitialContext.java:197)
>         at
> org.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:105)
>         at
> org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:83)
>         at
> org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:121)
>         at
> org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:146)
>         at
> org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:93)
>         at
> org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
>         at
> org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:197)
>         at
> org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:184)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)
>         at
> org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
>         ... 37 more
> Caused by: java.lang.ClassNotFoundException:
> weblogic.jndi.WLInitialContextFactory
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>         at java.security.AccessController.doPrivileged(Native Method)
>         at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
>         at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
>         at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
>         at java.lang.Class.forName0(Native Method)
>         at java.lang.Class.forName(Class.java:242)
>         at
> com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
>         at
> javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
>         ... 50 more
> [INFO] [resources:testResources]
> [INFO] Using default encoding to copy filtered resources.
> [INFO] [compiler:testCompile]
> [INFO] No sources to compile
> [INFO] [surefire:test]
> [INFO] No tests to run.
> [INFO] [jar:jar]
> [INFO] Building jar:
> C:\servicemix\projects\tutorial_jms\tutorial_jms-jms-su\target\tutorial_jms-jms-su-1.0-SNAPSHOT.jar
> [INFO] [jbi:jbi-service-unit]
> [INFO] Resolving org.apache.servicemix:servicemix-jms:jar:3.2.2:compile
> [INFO] Resolving org.apache.servicemix:servicemix-shared:jar:3.2.2:compile
> [INFO] Resolving org.apache.servicemix:servicemix-common:jar:3.2.2:compile
> =============================================================================
> 
> Am I missing anything?
> 
> And here is my xbean.xml:
> ========================================================
> <?xml version="1.0" encoding="UTF-8"?>
> <beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
>       xmlns="http://www.springframework.org/schema/beans"
>       xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
>       xsi:schemaLocation="http://servicemix.apache.org/jms/1.0
> http://servicemix.apache.org/schema/servicemix-jms-3.2.2.xsd
>       http://activemq.org/config/1.0
> http://activemq.apache.org/schema/core/activemq-core-4.1.1.xsd
>       http://www.springframework.org/schema/beans
> http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">
> 
>         <jms:consumer service="poc:source" endpoint="jms"
>                targetService="poc:destination" targetEndpoint="jms"
>               
> destinationName="com.mdsi.port.paJms.DefaultCIS0.OutboundQueue"
> connectionFactory="#connectionFactory"
>                destinationResolver="#jmsDestinationResolver"/>
> 
>        <jms:provider service="poc:destination" endpoint="jms"
>               
> destinationName="com.mdsi.port.paJms.DefaultCIS0.InboundQueue"
>                connectionFactory="#connectionFactory"
>                destinationResolver="#jmsDestinationResolver" />
> 
>        <bean id="connectionFactory"
>                class="org.springframework.jndi.JndiObjectFactoryBean">
>                <property name="jndiName"
>                        value="com.mdsi.port.paJms.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://hpiaapp1:29978
>                                </prop>
>                        </props>
>                </property>
>        </bean>
> </beans>
> 
> ========================================================
> 
> Any help would be greatly appreciated.
> 
> Thanks
> 
> 

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


Re: ServiceMix 3.2.2 and JMS queue in Weblogic server

Posted by t_canada <ts...@gmail.com>.
Thanks tranchida.

I have tried to do a mvn install after I configured the xbean.xml and I got
the following errors:

=============================================================================
[INFO] Created Service Unit Analyzer
org.apache.servicemix.jms.packaging.JmsServiceUnitAnalyzer@13c296b
2008-10-27 14:02:53,638 [main           ] INFO 
ileSystemXmlApplicationContext - Refreshing
org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1ef4b2b:
display name
[org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1ef4b2b];
startup date [Mon Oct 27 14:02:53 PDT 2008]; ro
ot of context hierarchy
2008-10-27 14:02:53,857 [main           ] INFO  XBeanXmlBeanDefinitionReader  
- Loading XML bean definitions from URL
[file:/C:/servicemix/projects/tutorial_jms/tutorial_jms-jms-su/src/main/resources/xbean.xml]
2008-10-27 14:02:54,529 [main           ] INFO 
ileSystemXmlApplicationContext - Bean factory for application context
[org.apache.xbean.spring.context.FileSystemXmlApplicationContext@1ef4b2b]:
org.springframework.beans.factory.support.DefaultListableBeanFactory@1ad6c98
2008-10-27 14:02:54,544 [main           ] INFO  DefaultListableBeanFactory    
- Pre-instantiating singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@1ad6c98:
defining beans
[org.apache.servicemix.jms.endpoints.JmsConsumerEndpoint,org.apache.servicemix.jms.endpoints.J
msProviderEndpoint,connectionFactory,jmsDestinationResolver,weblogicTemplate];
root of factory hierarchy
2008-10-27 14:02:54,732 [main           ] INFO  DefaultListableBeanFactory    
- Destroying singletons in
org.springframework.beans.factory.support.DefaultListableBeanFactory@1ad6c98:
defining beans
[org.apache.servicemix.jms.endpoints.JmsConsumerEndpoint,org.apache.servicemix.jms.endpoints.JmsProvi
derEndpoint,connectionFactory,jmsDestinationResolver,weblogicTemplate]; root
of factory hierarchy
[WARNING] Failed to generate jbi.xml:
org.apache.servicemix.maven.plugin.jbi.JbiPluginException: Unable to
generate service unit descriptor!
org.apache.servicemix.maven.plugin.jbi.JbiPluginException: Unable to
generate service unit descriptor!
        at
org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.generateJbiDescriptor(GenerateServiceUnitDescriptorMojo.java:206)
        at
org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.execute(GenerateServiceUnitDescriptorMojo.java:143)
        at
org.apache.maven.plugin.DefaultPluginManager.executeMojo(DefaultPluginManager.java:451)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoals(DefaultLifecycleExecutor.java:558)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalWithLifecycle(DefaultLifecycleExecutor.java:499)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoal(DefaultLifecycleExecutor.java:478)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeGoalAndHandleFailures(DefaultLifecycleExecutor.java:330)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.executeTaskSegments(DefaultLifecycleExecutor.java:291)
        at
org.apache.maven.lifecycle.DefaultLifecycleExecutor.execute(DefaultLifecycleExecutor.java:142)
        at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:336)
        at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:129)
        at org.apache.maven.cli.MavenCli.main(MavenCli.java:287)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at
org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315)
        at org.codehaus.classworlds.Launcher.launch(Launcher.java:255)
        at
org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430)
        at org.codehaus.classworlds.Launcher.main(Launcher.java:375)
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name
'org.apache.servicemix.jms.endpoints.JmsConsumerEndpoint' defined in URL
[file:/C:/servicemix/projects/tutorial_jms/tutorial_jms-jms-su/src/main/resources/xbean.xml]:
Cannot resolve reference to bean 'c
onnectionFactory' while setting bean property 'connectionFactory'; nested
exception is org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'connectionFactory' defined in URL
[file:/C:/servicemix/projects/tutorial_jms/tutorial_jms-jms-su/src/main/resources/xbean.xml
]: Invocation of init method failed; nested exception is
javax.naming.NoInitialContextException: Cannot instantiate class:
weblogic.jndi.WLInitialContextFactory [Root exception is
java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:269)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:109)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1099)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:861)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:421)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at
org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:287)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:352)
        at
org.apache.servicemix.common.xbean.AbstractXBeanServiceUnitAnalyzer.init(AbstractXBeanServiceUnitAnalyzer.java:90)
        at
org.apache.servicemix.maven.plugin.jbi.GenerateServiceUnitDescriptorMojo.generateJbiDescriptor(GenerateServiceUnitDescriptorMojo.java:185)
        ... 19 more
Caused by: org.springframework.beans.factory.BeanCreationException: Error
creating bean with name 'connectionFactory' defined in URL
[file:/C:/servicemix/projects/tutorial_jms/tutorial_jms-jms-su/src/main/resources/xbean.xml]:
Invocation of init method failed; nested exception is javax.naming.NoInit
ialContextException: Cannot instantiate class:
weblogic.jndi.WLInitialContextFactory [Root exception is
java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1174)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:425)
        at
org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:251)
        at
org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:156)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:248)
        at
org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:160)
        at
org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:261)
        ... 31 more
Caused by: javax.naming.NoInitialContextException: Cannot instantiate class:
weblogic.jndi.WLInitialContextFactory [Root exception is
java.lang.ClassNotFoundException: weblogic.jndi.WLInitialContextFactory]
        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:657)
        at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)
        at javax.naming.InitialContext.init(InitialContext.java:223)
        at javax.naming.InitialContext.<init>(InitialContext.java:197)
        at
org.springframework.jndi.JndiTemplate.createInitialContext(JndiTemplate.java:105)
        at
org.springframework.jndi.JndiTemplate.execute(JndiTemplate.java:83)
        at
org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:121)
        at
org.springframework.jndi.JndiTemplate.lookup(JndiTemplate.java:146)
        at
org.springframework.jndi.JndiLocatorSupport.lookup(JndiLocatorSupport.java:93)
        at
org.springframework.jndi.JndiObjectLocator.lookup(JndiObjectLocator.java:105)
        at
org.springframework.jndi.JndiObjectFactoryBean.lookupWithFallback(JndiObjectFactoryBean.java:197)
        at
org.springframework.jndi.JndiObjectFactoryBean.afterPropertiesSet(JndiObjectFactoryBean.java:184)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1201)
        at
org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1171)
        ... 37 more
Caused by: java.lang.ClassNotFoundException:
weblogic.jndi.WLInitialContextFactory
        at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
        at java.security.AccessController.doPrivileged(Native Method)
        at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:306)
        at java.lang.ClassLoader.loadClass(ClassLoader.java:251)
        at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:319)
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:242)
        at
com.sun.naming.internal.VersionHelper12.loadClass(VersionHelper12.java:42)
        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:654)
        ... 50 more
[INFO] [resources:testResources]
[INFO] Using default encoding to copy filtered resources.
[INFO] [compiler:testCompile]
[INFO] No sources to compile
[INFO] [surefire:test]
[INFO] No tests to run.
[INFO] [jar:jar]
[INFO] Building jar:
C:\servicemix\projects\tutorial_jms\tutorial_jms-jms-su\target\tutorial_jms-jms-su-1.0-SNAPSHOT.jar
[INFO] [jbi:jbi-service-unit]
[INFO] Resolving org.apache.servicemix:servicemix-jms:jar:3.2.2:compile
[INFO] Resolving org.apache.servicemix:servicemix-shared:jar:3.2.2:compile
[INFO] Resolving org.apache.servicemix:servicemix-common:jar:3.2.2:compile
=============================================================================

Am I missing anything?

And here is my xbean.xml:
========================================================
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns:jms="http://servicemix.apache.org/jms/1.0"
      xmlns="http://www.springframework.org/schema/beans"
      xmlns:xsi="http://http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://servicemix.apache.org/jms/1.0
http://servicemix.apache.org/schema/servicemix-jms-3.2.2.xsd
      http://activemq.org/config/1.0
http://activemq.apache.org/schema/core/activemq-core-4.1.1.xsd
      http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd">

        <jms:consumer service="poc:source" endpoint="jms"
               targetService="poc:destination" targetEndpoint="jms"
              
destinationName="com.mdsi.port.paJms.DefaultCIS0.OutboundQueue"
connectionFactory="#connectionFactory"
               destinationResolver="#jmsDestinationResolver"/>

       <jms:provider service="poc:destination" endpoint="jms"
              
destinationName="com.mdsi.port.paJms.DefaultCIS0.InboundQueue"
               connectionFactory="#connectionFactory"
               destinationResolver="#jmsDestinationResolver" />

       <bean id="connectionFactory"
               class="org.springframework.jndi.JndiObjectFactoryBean">
               <property name="jndiName"
                       value="com.mdsi.port.paJms.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://hpiaapp1:29978
                               </prop>
                       </props>
               </property>
       </bean>
</beans>

========================================================

Any help would be greatly appreciated.

Thanks

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


Re: ServiceMix 3.2.2 and JMS queue in Weblogic server

Posted by tranchida <gi...@tranchida.ch>.
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.