[jboss-cvs] JBossAS SVN: r79490 - trunk/server/src/main/org/jboss/invocation/jrmp/server.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Tue Oct 14 15:22:52 EDT 2008
Author: bstansberry at jboss.com
Date: 2008-10-14 15:22:51 -0400 (Tue, 14 Oct 2008)
New Revision: 79490
Modified:
trunk/server/src/main/org/jboss/invocation/jrmp/server/JRMPInvoker.java
Log:
[JBAS-6091] Allow JRMPInvoker to work as an MC bean
Modified: trunk/server/src/main/org/jboss/invocation/jrmp/server/JRMPInvoker.java
===================================================================
--- trunk/server/src/main/org/jboss/invocation/jrmp/server/JRMPInvoker.java 2008-10-14 19:05:10 UTC (rev 79489)
+++ trunk/server/src/main/org/jboss/invocation/jrmp/server/JRMPInvoker.java 2008-10-14 19:22:51 UTC (rev 79490)
@@ -46,11 +46,17 @@
import javax.naming.NameNotFoundException;
import javax.transaction.Transaction;
+import org.jboss.beans.metadata.api.annotations.Create;
+import org.jboss.beans.metadata.api.annotations.Destroy;
+import org.jboss.beans.metadata.api.annotations.Start;
+import org.jboss.beans.metadata.api.annotations.Stop;
import org.jboss.invocation.jrmp.interfaces.JRMPInvokerProxy;
import org.jboss.invocation.Invocation;
import org.jboss.invocation.Invoker;
import org.jboss.invocation.MarshalledInvocation;
import org.jboss.invocation.MarshalledValueInputStream;
+import org.jboss.kernel.spi.dependency.KernelControllerContext;
+import org.jboss.kernel.spi.dependency.KernelControllerContextAware;
import org.jboss.logging.Logger;
import org.jboss.mx.util.JMXExceptionDecoder;
import org.jboss.net.sockets.DefaultSocketFactory;
@@ -70,7 +76,7 @@
*/
public class JRMPInvoker
extends RemoteServer
- implements Invoker, JRMPInvokerMBean, MBeanRegistration
+ implements Invoker, JRMPInvokerMBean, MBeanRegistration, KernelControllerContextAware
{
/** @since 4.2.0 */
static final long serialVersionUID = 3110972460891691492L;
@@ -662,6 +668,40 @@
support.postDeregister();
}
+ public void setKernelControllerContext(KernelControllerContext context) throws Exception
+ {
+ support.setKernelControllerContext(context);
+ }
+
+ public void unsetKernelControllerContext(KernelControllerContext context) throws Exception
+ {
+ support.unsetKernelControllerContext(context);
+ }
+
+ @Create
+ public void pojoCreate() throws Exception
+ {
+ support.pojoCreate();
+ }
+
+ @Start
+ public void pojoStart() throws Exception
+ {
+ support.pojoStart();
+ }
+
+ @Stop
+ public void pojoStop() throws Exception
+ {
+ support.pojoStop();
+ }
+
+ @Destroy
+ public void pojoDestroy() throws Exception
+ {
+ support.pojoDestroy();
+ }
+
interface TCLAction
{
class UTIL
More information about the jboss-cvs-commits
mailing list