[jboss-user] [EJB 3.0] - Does EJB3.0 Container of JBoss adhering to JSR-77

RupakKumar do-not-reply at jboss.com
Thu Nov 16 08:45:06 EST 2006


Hi All,

I wrote a EJB3.0 @Stateless component based on the tutorial (http://docs.jboss.org/ejb3/app-server/tutorial/). I could also run the remote console client.

But when i try to retrieve the managed object in the j2ee server either via the MEJB interfaces Or purely through JMX approach. Following approach being applied.


JMX
----
RMIAdaptor jmx= (RMIAdaptor) ctx.lookup("jmx/rmi/RMIAdaptor");
Set ons = jmx.queryNames( null, null );

MEJB
-----
Object lObject = ctx.lookup("ejb/mgmt/MEJB");
ManagementHome home = (ManagementHome) PortableRemoteObject.narrow(
         lObject,
         ManagementHome.class
   );
Set managed_object_set = jsr77MEJB.queryNames(null, null);

In both the cases i do not get the stateless EJB component. Only reference of my component i see in both the above cases are:

jboss.j2ee:jar=tutorial.jar,name=CalculatorBean,service=EJB3
jboss.j2ee:service=EJB3,module=tutorial.jar


I had other manged object with the j2eeType=StatelessBean as per JSR 77 which is the case when i deploy EJB2.1 compliant component.

Now is it that EJB3.0 not JSR compliant Or i am missing something.

Any help is highly appreciated.

Regards,
Rupak Kumar...


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

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



More information about the jboss-user mailing list