users@glassfish.java.net

Re: ClassNotFound JMX MBean calling remote session bean

From: <glassfish_at_javadesktop.org>
Date: Thu, 20 Sep 2007 08:34:16 PDT

Hi

I'm using EJB3.0 and jmx with oc4j 10.1.3.3

The main problem might be because 10g doesn't implement ejb3.0 totally. Only announced that 11g will.

So if you want to use your beans with jmx, you have to declare your beans in the descriptor, since most of annotations won't work.

You must define in ejb-jar.xml and orion-ejb-jar.xml
This last one is important to eliminate your problem of ClassNotFound, because you might notice if you don't declare the orion-ejb-jar.xml the oc4j will define you JNDI reference with com.evermind.server.ejb.StatelessSessionDefaultLocalHomeImpl (it might be a generic class to define ejb)

omec, probably this is already your solution, since this seems to me an ejb2/3 style.
[Message sent by forum member 'dnlcy' (dnlcy)]

http://forums.java.net/jive/thread.jspa?messageID=236237