3 Replies Latest reply on Jan 9, 2004 1:57 AM by test

    MDB with lomboz and deploy in eclipse

      i generate a mdb with lomboz in eclipse and i want to deploy, but it dosn't work. when i deploy it, i get this exception:

      ============================
      16:08:14,641 INFO [EjbModule] Deploying TestMessage
      16:08:15,102 INFO [StatelessSessionInstancePool] Started jboss.j2ee:jndiName=TestSessionBean,plugin=pool,service=EJ
      16:08:15,102 INFO [StatelessSessionContainer] Started jboss.j2ee:jndiName=TestSessionBean,service=EJB
      16:08:15,432 ERROR [JMSContainerInvoker] Starting failed
      org.jboss.deployment.DeploymentException: Expected a Queue destination-jndi-name=
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:633)
      at org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:674)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      at org.jboss.ejb.MessageDrivenContainer.startService(MessageDrivenContainer.java:234)
      at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:192)
      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)
      ======================================

      i see the bean in the web-console

      my ejb-jar.xml


      <!-- Message Driven Beans -->
      <message-driven >
      <![CDATA[]]>

      <ejb-name>TestMessage</ejb-name>

      <ejb-class>com.testing.message.TestMessageBean</ejb-class>

      <transaction-type>Bean</transaction-type>
      <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
      <message-driven-destination>
      <destination-type>javax.jms.Queue</destination-type>
      <subscription-durability>NonDurable</subscription-durability>
      </message-driven-destination>

      </message-driven>

      but this was automatically generated by lomboz