-
1. Re: Message Driven Bean Calling A Session Bean
stephanenicoll Jul 31, 2003 4:31 AM (in response to pauster007)It won't help in a first place but have a *deep* look to
www.xdoclet.org -
2. Re: Message Driven Bean Calling A Session Bean
pauster007 Jul 31, 2003 5:21 AM (in response to pauster007)i don't want to do it through XDoclet...all i want is a sample....
-
3. Re: Message Driven Bean Calling A Session Bean
stephanenicoll Jul 31, 2003 6:24 AM (in response to pauster007)Then just run XDoclet or browse the web for 2 seconds and you'll have your sample ... : |
-
4. Re: Message Driven Bean Calling A Session Bean
stephanenicoll Jul 31, 2003 6:28 AM (in response to pauster007)This is a sample provided by JBoss
<?xml version="1.0"?>
<!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>
<enterprise-beans>
<message-driven>
<ejb-name>TextMDB</ejb-name>
<ejb-class>org.jboss.chap6.ex2.TextMDB</ejb-class>
<transaction-type>Container</transaction-type>
<acknowledge-mode>AUTO_ACKNOWLEDGE</acknowledge-mode>
<message-driven-destination>
<destination-type>javax.jms.Queue</destination-type>
</message-driven-destination>
<resource-ref>
<res-ref-name>jms/QCF</res-ref-name>
<res-type>javax.jms.QueueConnectionFactory</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</message-driven>
</enterprise-beans>
</ejb-jar>
this is for the MDB, you can add a ressource-ref on your session bean.
This is the corresponding jboss.xml
<?xml version="1.0"?>
<enterprise-beans>
<message-driven>
<ejb-name>TextMDB</ejb-name>
<destination-jndi-name>queue/B</destination-jndi-name>
<resource-ref>
<res-ref-name>jms/QCF</res-ref-name>
<jndi-name>ConnectionFactory</jndi-name>
</resource-ref>
</message-driven>
</enterprise-beans>
ejb-jar is J2EE related so you may find a lot of ressources on the Internet. JBoss.xml has a DTD bundled with your jboss distrubtion. This DTD file explains the structure of the jboss.xml fiel. Have a look. -
5. Re: Message Driven Bean Calling A Session Bean
pauster007 Jul 31, 2003 6:51 PM (in response to pauster007)im sorry im jsut a beginner in this....hmmm about your post...care to post the session bean part? this is where im having a problem...