[jboss-user] [EJB 3.0] - Re: Binding / JNDI / EJB

pbaker01 do-not-reply at jboss.com
Tue Dec 23 07:56:50 EST 2008


Hi jaikiran,
Let me know if I can post any additional information. 

Using the "incorrect" descriptor files below I get the following display from JMX for jboss.j2ee.  
When I select the first entry (message-driven-bean MDB), I get a display 
with start/stopDelivery methods exposed. 

This image shows a portion of the form that is rendered when I select the first link. It contains the very elusive start/stopDelivery methods.
http://picbite.com/image/13091fbtep/

My goal is to use the "correct" descriptors and still be able to access the start/stopDelivery methods on the MDB.

Note that this descriptor files below also generate console errors. 

JMX for jboss.j2ee
jboss.j2ee 
  | binding=message-driven-bean,jndiName=local/SSMListener at 1691815956,plugin=invoker,service=EJB 
  | jndiName=SsimEjbBean,plugin=pool,service=EJB 
  | jndiName=SsimEjbBean,service=EJB 
  | jndiName=local/AirlineEjbBean at 104272522,plugin=pool,service=EJB 
  | jndiName=local/AirlineEjbBean at 104272522,service=EJB 
  | jndiName=local/SSMListener at 1691815956,plugin=pool,service=EJB 
  | jndiName=local/SSMListener at 1691815956,service=EJB 
  | jndiName=local/SubscriberEjbBean at 527666732,plugin=pool,service=EJB 
  | jndiName=local/SubscriberEjbBean at 527666732,service=EJB 
  | module="WAB_EJB.jar",service=EjbModule 
  | service=EARClassLoaderDeployer 
  | service=EARDeployer  

We VERY much apprecaite you looking into this!!

Using:
ejb-jar.xml 
  | <?xml version="1.0"?>
  | <!-- 
  | <ejb-jar
  |         xmlns="http://java.sun.com/xml/ns/javaee"
  |         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |         xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
  |                             http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd"
  |         version="3.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>SSMListener</ejb-name>
  |             <ejb-class>com.sita.wab.mdb.ssim.SSMListener</ejb-class>
  |             <transaction-type>Container</transaction-type>
  |         </message-driven>
  | 
  |         <session>
  |             <ejb-name>SubscriberEjbBean</ejb-name>
  |             <remote>
  |                 com.sita.wab.ejb.subscriber.SubscriberEjbRemote
  |             </remote>
  |             <ejb-class>
  |                 com.sita.wab.ejb.subscriber.SubscriberEjbBean
  |             </ejb-class>
  |             <session-type>Stateless</session-type>
  |             <transaction-type>Container</transaction-type>
  |         </session>
  | 
  |         <session>
  |             <ejb-name>AirlineEjbBean</ejb-name>
  |             <remote>com.sita.wab.ejb.airline.AirlineEjbRemote</remote>
  |             <ejb-class>
  |                 com.sita.wab.ejb.airline.AirlineEjbBean
  |             </ejb-class>
  |             <session-type>Stateless</session-type>
  |             <transaction-type>Container</transaction-type>
  |         </session>
  | 
  |         <session>
  |             <ejb-name>SsimEjbBean</ejb-name>
  |             <remote>com.sita.wab.ejb.ssim.SsimEjbRemote</remote>
  |             <ejb-class>com.sita.wab.ejb.ssim.SsimEjbBean</ejb-class>
  |             <session-type>Stateless</session-type>
  |             <transaction-type>Container</transaction-type>
  |         </session>
  | 
  | 
  |     </enterprise-beans>
  | 
  |     <assembly-descriptor>
  |         <container-transaction>
  |             <method>
  |                 <ejb-name>SSMListener</ejb-name>
  |                 <method-name>onMessage</method-name>
  |             </method>
  |             <trans-attribute>Required</trans-attribute>
  |         </container-transaction>
  |     </assembly-descriptor>
  | </ejb-jar>    

and jboss.xml
 <!-- 
  |  <jboss xmlns="http://www.jboss.com/xml/ns/javaee"
  |              xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  |              xsi:schemaLocation="http://www.jboss.org/j2ee/schema
  |                             http://www.jboss.org/j2ee/schema/jboss_5_0.xsd"
  |              version="5.0">
  |  -->
  |  <jboss>
  |     <security-domain></security-domain> 
  |     <enterprise-beans>
  |         <message-driven>
  |             <ejb-name>SSMListener</ejb-name>
  |             <configuration-name>Standard Message Driven Bean</configuration-name>
  |             <destination-jndi-name>queue/SSMQueue</destination-jndi-name>
  |         </message-driven>
  |         <session>
  |             <ejb-name>SubscriberEjb</ejb-name>
  |             <configuration-name>Standard Stateless SessionBean</configuration-name>
  |             <jndi-name>SubscriberEjb</jndi-name>
  |         </session>
  | 
  |         <session>
  |             <ejb-name>AirlineEjb</ejb-name>
  |             <configuration-name>Standard Stateless SessionBean</configuration-name>
  |             <jndi-name>AirlineEjb</jndi-name>
  |         </session>
  | 
  |         <session>
  |             <ejb-name>SsimEjbBean</ejb-name>
  |             <configuration-name>Standard Stateless SessionBean</configuration-name>
  |             <jndi-name>SsimEjbBean</jndi-name>
  |         </session>
  |         
  |     </enterprise-beans>
  | </jboss>





View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4198275#4198275

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4198275



More information about the jboss-user mailing list