Hi,
My name is Luca from italy and I'm a newbie in using jboss3.2.3
I want to depoly a jar file that contains one mdb named xxx.xxx.xxx.MDBExample
I write in META-INF dir ejb-jar.xml and jboss.xml.
Make jar and put it into deploy dir of jboss.
I take this error:
2004-03-17 18:17:15,658 ERROR [org.jboss.deployment.scanner.URLDeploymentScanner]
MBeanException: Exception in MBean operation 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
[EMAIL PROTECTED] { url=file:/C:/jboss-3.2.3/server/default/deploy/example.jar }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-3.2.3/server/default/deploy/example.jar
lastDeployed: 1079543835648
lastModified: 1079543836000
mbeans:
]Incompletely deployed packages:
[EMAIL PROTECTED] { url=file:/C:/jboss-3.2.3/server/default/deploy/example.jar }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/C:/jboss-3.2.3/server/default/deploy/example.jar
lastDeployed: 1079543835648
lastModified: 1079543836000
mbeans:
]MBeans waiting for classes:
MBeans waiting for other MBeans:
I'm a bea weblogic user and i want to understan how to jboss work :) but i can't
depoly this simple jar :((((
this is my con files:
?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN'
'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
<ejb-jar>
<display-name>application for test use only</display-name>
<enterprise-beans>
<message-driven>
jboss test
<display-name>Message Driven Bean</display-name>
<ejb-name>MDBExample</ejb-name>
<ejb-class>xxx.xxx.xxx.messagedriven.MDBExample</ejb-class>
<transaction-type>Container</transaction-type>
<message-driven-destination>
<destination-type>javax.jms.Queue</destination-type>
</message-driven-destination>
</message-driven>
</enterprise-beans>
</ejb-jar>
------------------------------------------------------------
<?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">
<enterprise-beans>
<message-driven>
<ejb-name>MDBExample</ejb-name>
<destination-jndi-name>999</destination-jndi-name>
<invoker-bindings>
<invoker-proxy-binding-name>FioranoMQ</invoker-proxy-binding-name>
</invoker-bindings>
</message-driven>
</enterprise-beans>
<resource-managers>
</resource-managers>
<invoker-proxy-bindings>
<invoker-proxy-binding>
FioranoMQ
<invoker-mbean/>
<proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
<proxy-factory-config>
FioranoJMSProvider
StdJMSPool
1
1
<!--
10
queue/DLQ
10
0
-->
</proxy-factory-config>
</invoker-proxy-binding>
</invoker-proxy-bindings>
mdb impl
package com.quinary.ejb.messagedriven;
import javax.jms.*;
import javax.ejb.MessageDrivenBean;
import javax.ejb.MessageDrivenContext;
import javax.naming.InitialContext;
import javax.naming.NamingException;
import javax.rmi.PortableRemoteObject;
import javax.ejb.EJBException;
public class MDBExample implements MessageDrivenBean, MessageListener {
private MessageDrivenContext mdbContext;
public void ejbCreate() throws EJBException {
System.out.println("ejb creation of MDBExample");
}
public void ejbRemove() throws javax.ejb.EJBException {
}
public void onMessage(javax.jms.Message message) {
System.out.println("in onMessage method...execute...");
try {
Object objMsg = ((ObjectMessage)message).getObject();
System.out.println("Message read : "+objMsg);
} catch (JMSException jmse) {
jmse.printStackTrace();
}
}
public void setMessageDrivenContext(javax.ejb.MessageDrivenContext
messageDrivenContext) throws javax.ejb.EJBException {
this.mdbContext = messageDrivenContext;
}
}
I hava just implemted the jms adapter for FioranoMQ and I've seen the mbean in
jboss-jmx-console.
Thanks for your help!
Bye
Luca
<a
href="http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3826211#3826211">View
the original post</a>
<a
href="http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3826211>Reply
to the post</a>
-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user