-
1. Re: How to deploy a MDB(Message Driven Bean) in jboss?
juha Nov 13, 2002 4:19 AM (in response to jbao)yeah the xml files going into the ejb jar file though
-
2. Re: How to deploy a MDB(Message Driven Bean) in jboss?
jbao Nov 13, 2002 9:03 PM (in response to jbao)there is some errors when i deploy MDB ,in the console the error is :
08:58:07,085 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope
ration 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
[org.jboss.deployment.DeploymentInfo@12387ed { url=file:/C:/jboss-3.0.3/server/d
efault/deploy/ejb-jar.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-3.0.3/server/default/deploy/ejb-jar.xml
lastDeployed: 1037235486985
lastModified: 1037235488000
mbeans:
, org.jboss.deployment.DeploymentInfo@25ad5799 { url=file:/C:/jboss-3.0.3/server
/default/deploy/jboss.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-3.0.3/server/default/deploy/jboss.xml
lastDeployed: 1037235487035
lastModified: 1037235488000
mbeans:
]Incompletely deployed packages:
[org.jboss.deployment.DeploymentInfo@12387ed { url=file:/C:/jboss-3.0.3/server/d
efault/deploy/ejb-jar.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-3.0.3/server/default/deploy/ejb-jar.xml
lastDeployed: 1037235486985
lastModified: 1037235488000
mbeans:
, org.jboss.deployment.DeploymentInfo@25ad5799 { url=file:/C:/jboss-3.0.3/server
/default/deploy/jboss.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-3.0.3/server/default/deploy/jboss.xml
lastDeployed: 1037235487035
lastModified: 1037235488000
mbeans:
]MBeans waiting for classes:
MBeans waiting for other MBeans:
jboss.xml is :
<?xml version="1.0"?>
<enterprise-beans>
<message-driven>
<ejb-name>MyEJB</ejb-name>
<configuration-name>Standard Message Driven Bean</configuration-name>
<destination-jndi-name>topic/misTopic</destination-jndi-name>
</message-driven>
</enterprise-beans>
ejb-jar.xml is :
<?xml version="1.0"?>
<!DOCTYPE ejb-jar>
<ejb-jar>
<enterprise-beans>
<message-driven>
<ejb-name>MyEJB</ejb-name>
<ejb-class>ejb.temp.MessageProcessBean</ejb-class>
<message-selector></message-selector>
<transaction-type>Container</transaction-type>
<message-driven-destination>
<destination-type>javax.jms.Topic</destination-type>
<subscription-durability>NonDurable</subscription-durability>
</message-driven-destination>
</message-driven>
</enterprise-beans>
</ejb-jar>
someone can help me? -
3. Re: How to deploy a MDB(Message Driven Bean) in jboss?
adrian.brock Nov 13, 2002 9:16 PM (in response to jbao)Put those files in the META-INF directory of a jar
then put the jar in server/default/deploy
Regards,
Adrian -
4. Re: How to deploy a MDB(Message Driven Bean) in jboss?
jbao Nov 13, 2002 9:50 PM (in response to jbao)you means is put the jboss.xml,ejb-jar.xml into META-INF then add this file and class into a jar file? then then put the jar in server/default/deploy?
-
5. Re: How to deploy a MDB(Message Driven Bean) in jboss?
juha Nov 14, 2002 3:24 AM (in response to jbao)yep, your EJB jar should look like this:
META-INF/ejb-jar.xml
META-INF/jboss.xml
some/package/MyBeanClass.class
some/package/AnotherClass.class
.
.
.
etc, notice that META-INF is case sensitive