Hi [EMAIL PROTECTED]
First of all thanks for your replay. I'll try your tips as soon as posible
(from this night to tomorrow :-) ).
I have a question.
I have this configuration:
| <!-- Remote connection -->
| <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
|
name="jboss.mq:service=JMSProviderLoader,name=RemoteJMSProvider,server=ContentAuthor">
| <attribute name="ProviderName">RemoteJMSProvider</attribute>
| <attribute name="ProviderAdapterClass">
| org.jboss.jms.jndi.JNDIProviderAdapter
| </attribute>
| <!-- The queue connection factory -->
| <attribute name="QueueFactoryRef">XAConnectionFactory</attribute>
| <!-- The topic factory -->
| <attribute name="TopicFactoryRef">XAConnectionFactory</attribute>
| <!-- Connect to HAJNDI on the host whatever -->
| <attribute name="Properties">
| java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
| java.naming.factory.url.pkgs=org.jnp.interfaces
| java.naming.provider.url=192.168.xx.xyz:1099
| </attribute>
|
| </mbean>
I have setted this in the file jms-ds.xml.
Then in my ejb-jar.xml file i have:
| <message-driven>
| <ejb-name>ConsumerBean</ejb-name>
| <ejb-class>it.eng.nikko.infobean.mdb.IbConsumerBean</ejb-class>
| <transaction-type>Container</transaction-type>
| <message-driven-destination>
| <destination-type>javax.jms.Topic</destination-type>
| <subscription-durability>Durable</subscription-durability>
| </message-driven-destination>
| </message-driven>
|
In my jboss.xml i have:
| <?xml version="1.0" encoding="UTF-8"?>
| <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.2//EN"
"http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd">
| <jboss>
| <enterprise-beans>
| <message-driven>
| <ejb-name>ConsumerBean</ejb-name>
|
<destination-jndi-name>topic/it.eng.nikko.ibTopic</destination-jndi-name>
| <mdb-client-id>it.eng.client</mdb-client-id>
| <mdb-subscription-id>it.eng.subscriptionId</mdb-subscription-id>
| <invoker-bindings>
| <invoker>
|
<invoker-proxy-binding-name>RemoteTopic</invoker-proxy-binding-name>
| </invoker>
| </invoker-bindings>
| </message-driven>
| <entity>
| <ejb-name>NikkoConfigurationBean</ejb-name>
| <jndi-name>NikkoConfigurationBean</jndi-name>
| </entity>
| </enterprise-beans>
| <invoker-proxy-bindings>
| <invoker-proxy-binding>
| <name>RemoteTopic</name>
| <invoker-mbean>remote</invoker-mbean>
|
<proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
| <proxy-factory-config>
| <JMSProviderAdapterJNDI>RemoteJMSProvider</JMSProviderAdapterJNDI>
|
<ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFactoryJNDI>
| <MinimumSize>1</MinimumSize>
| <KeepAliveMillis>30000</KeepAliveMillis>
| <MaxMessages>1000</MaxMessages>
| <MDBConfig>
| <ReconnectIntervalSec>10</ReconnectIntervalSec>
| <DLQConfig>
| <DestinationQueue>queue/DLQ</DestinationQueue>
| <MaxTimesRedelivered>10</MaxTimesRedelivered>
| <TimeToLive>0</TimeToLive>
| </DLQConfig>
| </MDBConfig>
| </proxy-factory-config>
| </invoker-proxy-binding>
| </invoker-proxy-bindings>
| </jboss>
|
I have tried this and i works with OS: winXP home edition, linux red-hat
advanced server and win200 pro; then i have tried it on a Sun Solaris 9 and i
have an error; the error is:
2004-12-21 09:21:36,867 DEBUG [org.jboss.ejb.EjbModule] startService, starting
container: ConsumerBe
| an
| 2004-12-21 09:21:36,867 DEBUG [org.jboss.system.ServiceController] starting
service jboss.j2ee:jndiN
| ame=local/ConsumerBean,service=EJB
| 2004-12-21 09:21:36,867 DEBUG [org.jboss.ejb.MessageDrivenContainer]
Starting jboss.j2ee:jndiName=lo
| cal/ConsumerBean,service=EJB
| 2004-12-21 09:21:36,867 DEBUG [org.jboss.ejb.MessageDrivenContainer] Begin
java:comp/env for EJB: Co
| nsumerBean
| 2004-12-21 09:21:36,867 DEBUG [org.jboss.ejb.MessageDrivenContainer] TCL:
org.jboss.util.loading.Del
| [EMAIL PROTECTED]
| 2004-12-21 09:21:36,867 DEBUG [org.jboss.ejb.MessageDrivenContainer] End
java:comp/env for EJB: Cons
| umerBean
| 2004-12-21 09:21:36,867 DEBUG
[org.jboss.ejb.plugins.local.BaseLocalProxyFactory] ConsumerBean canno
| t be Bound, doesn't have local and local home interfaces
| 2004-12-21 09:21:36,867 DEBUG [org.jboss.system.ServiceController] starting
service jboss.j2ee:bindi
| ng=RemoteTopic,jndiName=local/ConsumerBean,plugin=invoker,service=EJB
| 2004-12-21 09:21:36,867 DEBUG
[org.jboss.ejb.plugins.jms.JMSContainerInvoker] Starting jboss.j2ee:bi
| nding=RemoteTopic,jndiName=local/ConsumerBean,plugin=invoker,service=EJB
| 2004-12-21 09:21:36,867 DEBUG
[org.jboss.ejb.plugins.jms.JMSContainerInvoker] Initializing
| 2004-12-21 09:21:36,867 DEBUG
[org.jboss.ejb.plugins.jms.JMSContainerInvoker] Looking up provider ad
| apter: java:/RemoteJMSProvider
| 2004-12-21 09:21:36,867 DEBUG
[org.jboss.ejb.plugins.jms.JMSContainerInvoker] Provider adapter: org.
| [EMAIL PROTECTED]
| 2004-12-21 09:21:36,877 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler]
Creating DLQHandler
| 2004-12-21 09:21:37,047 ERROR [org.jboss.ejb.plugins.jms.DLQHandler]
Initialization failed DLQHandle
| r
| javax.jms.JMSException: Error creating the dlq connection: null
| at
org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:171)
| at
org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:237)
| at
org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:164)
| at
org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:542)
| at
org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:764)
| at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
| at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
| at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
| at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
| at $Proxy39.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:367)
| at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
| at
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:170)
| at
org.jboss.ejb.MessageDrivenContainer.startService(MessageDrivenContainer.java:234)
| at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
| at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
| at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
| at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
| at $Proxy18.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:367)
| at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy35.start(Unknown Source)
| at org.jboss.ejb.EjbModule.startService(EjbModule.java:367)
| at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
| at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
| at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
| at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
| at $Proxy18.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:367)
| at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy14.start(Unknown Source)
| at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:570)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
| at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy7.deploy(Unknown Source)
| at
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
| at
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
| at
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentSc
| anner.java:201)
| at
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.ja
| va:274)
| at
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
| at
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
| at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
| at
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
| at $Proxy0.start(Unknown Source)
| at org.jboss.system.ServiceController.start(ServiceController.java:367)
| at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
| at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:324)
| at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy4.start(Unknown Source)
| at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251)
| at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
| at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:592)
| 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:324)
| at
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
| at
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
| at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
| at $Proxy5.deploy(Unknown Source)
| at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:407)
| at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
| at org.jboss.Main.boot(Main.java:145)
| at org.jboss.Main$1.run(Main.java:399)
| at java.lang.Thread.run(Thread.java:534)
| 2004-12-21 09:21:37,638 DEBUG
[org.jboss.ejb.plugins.jms.JMSContainerInvoker] Started jboss.j2ee:bin
| ding=RemoteTopic,jndiName=local/ConsumerBean,plugin=invoker,service=EJB
| 2004-12-21 09:21:37,638 DEBUG
[org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification:
|
javax.management.Notification[source=jboss.system:service=ServiceController,type=
org.jboss.system.
|
ServiceMBean.start,sequenceNumber=196,timeStamp=1103617297638,message=null,userData=jboss.j2ee:bindi
| ng=RemoteTopic,jndiName=local/ConsumerBean,plugin=invoker,service=EJB]
| 2004-12-21 09:21:37,638 DEBUG [org.jboss.system.ServiceController] Starting
dependent components for
| :
jboss.j2ee:binding=RemoteTopic,jndiName=local/ConsumerBean,plugin=invoker,service=EJB
dependent co
| mponents: []
| 2004-12-21 09:21:37,638 DEBUG [org.jboss.system.ServiceController] starting
service jboss.j2ee:jndiN
| ame=local/ConsumerBean,plugin=pool,service=EJB
| 2004-12-21 09:21:37,638 DEBUG
[org.jboss.ejb.plugins.MessageDrivenInstancePool] Starting jboss.j2ee:
| jndiName=local/ConsumerBean,plugin=pool,service=EJB
| 2004-12-21 09:21:37,638 DEBUG
[org.jboss.ejb.plugins.MessageDrivenInstancePool] Started jboss.j2ee:j
| ndiName=local/ConsumerBean,plugin=pool,service=EJB
| 2004-12-21 09:21:37,638 DEBUG
[org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification:
|
javax.management.Notification[source=jboss.system:service=ServiceController,type=
org.jboss.system.
|
ServiceMBean.start,sequenceNumber=197,timeStamp=1103617297638,message=null,userData=jboss.j2ee:jndiN
| ame=local/ConsumerBean,plugin=pool,service=EJB]
| 2004-12-21 09:21:37,638 DEBUG [org.jboss.system.ServiceController] Starting
dependent components for
| : jboss.j2ee:jndiName=local/ConsumerBean,plugin=pool,service=EJB dependent
components: []
| 2004-12-21 09:21:37,638 DEBUG
[org.jboss.resource.connectionmanager.CachedConnectionInterceptor] sta
| rt called in CachedConnectionInterceptor
| 2004-12-21 09:21:37,638 DEBUG [org.jboss.ejb.MessageDrivenContainer]
Started jboss.j2ee:jndiName=loc
| al/ConsumerBean,service=EJB
| 2004-12-21 09:21:37,638 DEBUG
[org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification:
|
javax.management.Notification[source=jboss.system:service=ServiceController,type=
org.jboss.system.
|
ServiceMBean.start,sequenceNumber=198,timeStamp=1103617297638,message=null,userData=jboss.j2ee:jndiN
| ame=local/ConsumerBean,service=EJB]
| 2004-12-21 09:21:37,638 DEBUG [org.jboss.system.ServiceController] Starting
dependent components for
| : jboss.j2ee:jndiName=local/ConsumerBean,service=EJB dependent componen
Have you any idea about this error?
Thanks
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3860431#3860431
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3860431
-------------------------------------------------------
The SF.Net email is sponsored by: Beat the post-holiday blues
Get a FREE limited edition SourceForge.net t-shirt from ThinkGeek.
It's fun and FREE -- well, almost....http://www.thinkgeek.com/sfshirt
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user