KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > org > jboss > test > deployers > jbas2904 > sar > mbean2 > MBean2


1 /*
2  * JBoss, the OpenSource J2EE webOS
3  *
4  * Distributable under LGPL license.
5  * See terms of license at gnu.org.
6  */

7 package org.jboss.test.deployers.jbas2904.sar.mbean2;
8
9 import org.jboss.system.ServiceMBeanSupport;
10
11 public class MBean2 extends ServiceMBeanSupport implements MBean2MBean
12 {
13     public long lastDeployed;
14     public long getLastDeployed(){
15         return lastDeployed;
16     }
17     public void setLastDeployed(long lastDeployed){
18         this.lastDeployed = lastDeployed;
19     }
20     protected void startService(){
21         this.lastDeployed = System.currentTimeMillis();
22         System.out.println("Btestdeployerorder-jbas2904.sar deployed at :"+lastDeployed);
23     }
24
25 }
26
Popular Tags