- View application statuses
- Stop/Start a Message Driven Bean
private void showStats(ObjectName cp) throws Exception
{
EJBStats stats =
(EJBStats) mbs.getAttribute(cp, "stats");
When you run this with say with a 10.1.3.3 OAS client side distribution home you will get a runtime exception as follows.
[java] 14/04/2008 12:05:27 oracle.j2ee.rmi.RMIMessages
EXCEPTION_ORIGINATES_FROM_THE_REMOTE_SERVER
[java] WARNING: Exception returned by remote server: {0}
[java] java.lang.NoClassDefFoundError:
Loracle/oc4j/admin/management/callbackinterfaces/MessageDrivenBeanCallBackIf;
In order to get around this add the following JAR to your classpath, which can be obtained from the OAS server home or a stand alone OC4J home.
$ORACLE_HOME\j2ee\home\lib\oc4j-internal.jar
1 comment:
Very nicce!
Post a Comment