0 Replies Latest reply on May 22, 2005 10:46 AM by Michael Furman

    Failing to create the remote JMS provider (JBoss 4.0.0).

    Michael Furman Newbie

      Hi!
      I am trying to create the remote JMS provider in JBoss 4.0.0 without success.
      PLEASE HELP!

      I am trying to work according to the section 6.4. Specifying the MDB JMS Provider

      Of document
      http://docs.jboss.org/jbossas/jboss4guide/r1/html/ch6.chapt.html

      I have created a new file with a name ?jmsRemote-ds.xml? in the folder default\server\default\deploy\jms with the following context ( of course, I set the real computer name instead of remotehost):

      <?xml version="1.0" encoding="UTF-8"?>
      <connection-factories>
      <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
       name="jboss.mq:service=JMSProviderLoader,name=RemoteJBossMQProvider">
      
       <attribute name="ProviderName">RemoteJMSProvider</attribute>
      
       <attribute name="ProviderUrl">jnp://remotehost:1099</attribute>
       <attribute name="ProviderAdapterClass">
       org.jboss.jms.jndi.JBossMQProvider
       </attribute>
      
       <attribute name="QueueFactoryRef">XAConnectionFactory</attribute>
       <attribute name="TopicFactoryRef">XAConnectionFactory</attribute>
      </mbean>
      
      
       <tx-connection-factory>
       <jndi-name>RemoteJmsXA</jndi-name>
       <xa-transaction/>
       <adapter-display-name>JMS Adapter</adapter-display-name>
       <config-property name="JMSProviderAdapterJNDI"
       type="java.lang.String">RemoteJMSProvider</config-property>
       <config-property name="SessionDefaultType"
       type="java.lang.String">javax.jms.Topic</config-property>
      
       <security-domain-and-application>JmsXARealm</security-domain-and-application>
      </tx-connection-factory>
      
      </connection-factories>



      Unfortunately, I get the following exception:

      2005-05-22 17:31:50,488 INFO [org.jboss.system.ServiceConfigurator] Problem configuring service jboss.mq:name=RemoteJBossMQProvider,service=JMSProviderLoader
      org.jboss.deployment.DeploymentException: No Attribute found with name: ProviderUrl
       at org.jboss.system.ServiceConfigurator.configure(ServiceConfigurator.java:340)
       at org.jboss.system.ServiceConfigurator.internalInstall(ServiceConfigurator.java:160)
       at org.jboss.system.ServiceConfigurator.install(ServiceConfigurator.java:114)
       at org.jboss.system.ServiceController.install(ServiceController.java:200)
       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.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
       at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
       at $Proxy4.install(Unknown Source)
       at org.jboss.deployment.SARDeployer.create(SARDeployer.java:208)
       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.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:141)
       at org.jboss.mx.server.Invocation.dispatch(Invocation.java:80)
       at org.jboss.mx.server.Invocation.invoke(Invocation.java:72)
       at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:242)
       at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:642)
       at org.jboss.mx.util.JMXInvocationHandler.invoke(JMXInvocationHandler.java:272)
       at $Proxy32.create(Unknown Source)
       at org.jboss.deployment.XSLSubDeployer.create(XSLSubDeployer.java:217)
       at org.jboss.deployment.MainDeployer.create(MainDeployer.java:889)
       at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:745)
       at org.jboss.deployment.MainDeployer.addDeployer(MainDeployer.java:339)


      PLEASE HELP!
      Best regards,
      Michael