You don't show the full stacktrace, so
I can't see the linked exception that is the cause.

Have you confirmed the MQSeries objects
are bound into jboss's jndi? Are they bound where
you would expect?
Does MQSeries actually have queue/DLQ?

When you get this working can you post the
full solution. I keep asking people who
have been successful to post
the info so that it can be included in the
jboss distribution as an example.

xxxxxxxxxxxxxxxxxxxxxxxx 
Adrian Brock
Director of Support
Back Office
JBoss Group, LLC 
xxxxxxxxxxxxxxxxxxxxxxxx 
 

> -----Original Message-----
> From: [EMAIL PROTECTED] 
> [mailto:[EMAIL PROTECTED] On Behalf Of 
> Stefano Maestri
> Sent: 25 June 2003 13:47
> To: [EMAIL PROTECTED]
> Subject: [JBoss-user] JBoss 3.2 and MQSeries trouble
> 
> 
> I'm trying to configure JBoss to use websphere MQ 5.3 (alias 
> MQSeries 5.3). I 
> read the thread on Jboss group abou and I configured JBoss 
> addin this row in 
> jboss file:
> jms-ds.xml:
> 
>  <!-- The MQSeries provider loader -->
>  <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
>  name="jboss.mq:service=JMSProviderLoader,name=JMSMQSeriesProvider">
>  <attribute name="ProviderName">MQSeriesProvider</attribute>
>  <attribute name="ProviderAdapterClass">
>  org.jboss.jms.jndi.JBossMQProvider
>  </attribute>
>  <attribute name="QueueFactoryRef">QueueConnectionFactory</attribute>
>  <attribute 
> name="TopicFactoryRef">java:/XAConnectionFactory</attribute>
>  </mbean>
> 
> standardjboss.xml:
> 
> <invoker-proxy-binding>
>  <name>MQmessage-driven-bean</name>
>  <invoker-mbean>default</invoker-mbean>
>  
> <proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</
proxy-factory>
>  <proxy-factory-config>
>  <JMSProviderAdapterJNDI>MQSeriesProvider</JMSProviderAdapterJNDI>
>  
> <ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFac
> toryJNDI>
>  <MaximumSize>15</MaximumSize>
>  <MaxMessages>1</MaxMessages>
>  <Optimized>True</Optimized>
>  <MDBConfig>
>  <ReconnectIntervalSec>10</ReconnectIntervalSec>
>  <DLQConfig>
>  <DestinationQueue>queue/DLQ</DestinationQueue>
>  <MaxTimesRedelivered>10</MaxTimesRedelivered>
>  <TimeToLive>0</TimeToLive>
>  </DLQConfig>
>  </MDBConfig>
>  </proxy-factory-config>
> </invoker-proxy-binding> 
> .....
> .....
> <container-configuration>
>  <container-name>MQSeries Message Driven Bean</container-name>
>  <call-logging>false</call-logging>
>  
> <invoker-proxy-binding-name>MQmessage-driven-bean</invoker-pro
> xy-binding-name>
>  <container-interceptors>
>  
> <interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderIntercept
> or</interceptor>
>  <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor>
>  
> <interceptor>org.jboss.ejb.plugins.RunAsSecurityInterceptor</i
> nterceptor>
>  <!-- CMT -->
>  <interceptor 
> transaction="Container">org.jboss.ejb.plugins.TxInterceptorCMT
> </interceptor>
>  <interceptor transaction="Container" 
> metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
> </interceptor>
>  <interceptor 
> transaction="Container">org.jboss.ejb.plugins.MessageDrivenIns
> tanceInterceptor</interceptor>
>  <!-- BMT -->
>  <interceptor 
> transaction="Bean">org.jboss.ejb.plugins.MessageDrivenInstance
> Interceptor</interceptor>
>  <interceptor 
> transaction="Bean">org.jboss.ejb.plugins.MessageDrivenTxInterc
> eptorBMT</interceptor>
>  <interceptor transaction="Bean" 
> metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor
> </interceptor>
>  
> <interceptor>org.jboss.resource.connectionmanager.CachedConnec
> tionInterceptor</interceptor>
>  </container-interceptors>
>  
> <instance-pool>org.jboss.ejb.plugins.MessageDrivenInstancePool
> </instance-pool>
>  <instance-cache></instance-cache>
>  <persistence-manager></persistence-manager>
>  <transaction-manager>org.jboss.tm.TxManager</transaction-manager>
>  <container-pool-conf>
>  <MaximumSize>100</MaximumSize>
>  </container-pool-conf>
> </container-configuration>
> 
> And into jboss.xml:
> 
> <jboss>
> 
>  <enterprise-beans>
> 
>  <message-driven>
>  <ejb-name>enlaceMQBean</ejb-name>
>  <configuration-name>MQSeries Message Driven Bean</configuration-name>
>  <destination-jndi-name>queue/MQqueue</destination-jndi-name>
>  </message-driven>
> </jboss>
> 
> I added this jar to jboss lib dir:
> com.ibm.mq.jar
> com.ibm.mqjms.jar
> com.ibm.mqbind.jar
> fscontext.jar
> providerutil.jar
> 
> then in MQSeries I edited JMSAdmin.config with this value
> INITIAL_CONTEXT_FACTORY=org.jnp.interfaces.NamingContextFactory
> PROVIDER_URL=jnp://localhost:1099
> 
> And then I used  to register in jndi the mq queues:
> 
> def qcf(MQQueueConnectionFactory) qmanager(venus.queue.manager)
> change ctx(queue)
> def q(RequestQueue) qmanager(venus.queue.manager) queue(orange.queue)
> 
> But when I deploy my bean I get this error
> 2:52:04,804 INFO [DLQHandler] Creating
> 12:52:04,812 ERROR [DLQHandler] Initialization failed
> javax.jms.JMSException: Error creating the dlq connection: null
>  at 
> org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.
> java:152)
>  at 
> org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSuppor
> t.java:158)
>  at 
> org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSC
> ontainerInvoker.java:394)
>  at 
> org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMS
> ContainerInvoker.java:579)
>  at 
> org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport
> .java:192)
>  at 
> org.jboss.ejb.MessageDrivenContainer.startService(MessageDrive
> nContainer.java:220)
>  at 
> org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport
> .java:192)
>  at sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source)
>  at 
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth
> odAccessorImpl.java:25)
>  at java.lang.reflect.Method.invoke(Method.java:324)
>  at 
> org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(Reflec
> tedMBeanDispatcher.java:284)
>  at 
> org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549)
>  at 
> org.jboss.system.ServiceController$ServiceProxy.invoke(Service
> Controller.java:966)
>  at $Proxy11.start(Unknown Source)
> [...]
> 
> Please help me.
> Thanks in advance.
> 
> -- 
> --------------- all work and no play makes Jack a dull boy 
> --------------- 
> bye Stefano 
>       [EMAIL PROTECTED]
>       www.javalinux.it
>       MSN messanger: [EMAIL PROTECTED] 
>       ICQ uin: 122192578
>       Jabber: canezen
>       Yahoo MSN: canezen
>       #jedit IRC channel as <maeste> 
> 
> 
> -------------------------------------------------------
> This SF.Net email is sponsored by: INetU
> Attention Web Developers & Consultants: Become An INetU 
> Hosting Partner.
> Refer Dedicated Servers. We Manage Them. You Get 10% Monthly 
> Commission!
> INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
> 





-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to