On Wednesday 25 June 2003 15:28, [EMAIL PROTECTED] wrote: > I am wondering if the error you get is not because the connection mode used > to connect to MQ is "binding" and JBoss will need to be on the same machine > as the MQ queue manager as well as a lot of MQ dlls that must be in the > path.
ehmm I didn't say that I'm working on Linux. Mq and jboss are on the same machine. At the moment. Isn't possible in any way? > > Take a look at the following patch (753022) submitted to JBoss: > http://sourceforge.net/tracker/index.php?func=detail&aid=753022&group_id=22 >8 66&atid=376687 > You will get a lot of extra details as well as a better way to register > factories/queues in JBoss. > Feedback on the patch is more than welcome. > I'll take a look thanks a lot. > Thomas > > -----Original Message----- > From: Stefano Maestri [mailto:[EMAIL PROTECTED] > Sent: Wednesday, June 25, 2003 8:47 AM > 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</ServerSessionPoolFactoryJNDI> > <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-proxy-binding-na >m e> > <container-interceptors> > > <interceptor>org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor</intercept >o r> > <interceptor>org.jboss.ejb.plugins.LogInterceptor</interceptor> > <interceptor>org.jboss.ejb.plugins.RunAsSecurityInterceptor</interceptor> > <!-- 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.MessageDrivenInstanceIntercep >t or</interceptor> > <!-- BMT --> > <interceptor > transaction="Bean">org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor</ >i nterceptor> > <interceptor > transaction="Bean">org.jboss.ejb.plugins.MessageDrivenTxInterceptorBMT</int >e rceptor> > <interceptor transaction="Bean" > metricsEnabled="true">org.jboss.ejb.plugins.MetricsInterceptor</interceptor >> > > <interceptor>org.jboss.resource.connectionmanager.CachedConnectionIntercept >o r</interceptor> > </container-interceptors> > > <instance-pool>org.jboss.ejb.plugins.MessageDrivenInstancePool</instance-po >o l> > <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(ServiceMBeanSupport.java:158) > at > org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvok >e r.java:394) > at > org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvo >k er.java:579) > at > org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) at > org.jboss.ejb.MessageDrivenContainer.startService(MessageDrivenContainer.ja >v a:220) > at > org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192) at > sun.reflect.GeneratedMethodAccessor8.invoke(Unknown Source) > at > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImp >l .java:25) > at java.lang.reflect.Method.invoke(Method.java:324) > at > org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispa >t cher.java:284) > at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) > at > org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.ja >v a: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
