User: schaefera Date: 02/01/17 13:57:27 Modified: src/main/org/jboss/management/j2ee JDBCDataSource.java SingleJBossServerManagement.java Log: Ajusted JSR-77 to the new JBoss JMX naming and the Scheduler now can be restarted and will keep the schedule and allows an easier date input for Initial Start Date Revision Changes Path 1.6 +39 -39 jboss/src/main/org/jboss/management/j2ee/JDBCDataSource.java Index: JDBCDataSource.java =================================================================== RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/JDBCDataSource.java,v retrieving revision 1.5 retrieving revision 1.6 diff -u -r1.5 -r1.6 --- JDBCDataSource.java 2001/12/10 06:27:49 1.5 +++ JDBCDataSource.java 2002/01/17 21:57:27 1.6 @@ -24,7 +24,7 @@ * {@link javax.management.j2ee.JDBCDataSource JDBCDataSource}. * * @author <a href="mailto:[EMAIL PROTECTED]">Andreas Schaefer</a>. - * @version $Revision: 1.5 $ + * @version $Revision: 1.6 $ * * <p><b>Revisions:</b> * @@ -185,22 +185,22 @@ public int getState() { return mState; } - - public void startService() { + + /** + * This method is only overwriten because to catch the exception + * which is not specified in {@link javax.management.j2ee.StateManageable + * StateManageable} interface. + **/ + public void start() + { try { - getServer().invoke( - mService, - "start", - new Object[] {}, - new String[] {} - ); + super.start(); } - catch( JMException jme ) { - //AS ToDo: later on we have to define what happens when service could not be started - jme.printStackTrace(); + catch( Exception e ) { + getLog().error( "start failed", e ); } } - + public void startRecursive() { // No recursive start here try { @@ -211,21 +211,6 @@ } } - public void stopService() { - try { - getServer().invoke( - mService, - "stop", - new Object[] {}, - new String[] {} - ); - } - catch( JMException jme ) { - //AS ToDo: later on we have to define what happens when service could not be started - jme.printStackTrace(); - } - } - // javax.management.j2ee.JDBCDataSource implementation ----------------- public ObjectName getJdbcDriver() @@ -272,21 +257,36 @@ // ServiceMBeanSupport overrides --------------------------------- - /** - * This method is only overwriten because to catch the exception - * which is not specified in {@link javax.management.j2ee.StateManageable - * StateManageable} interface. - **/ - public void start() - { + public void startService() { try { - super.start(); + getServer().invoke( + mService, + "start", + new Object[] {}, + new String[] {} + ); } - catch( Exception e ) { - getLog().error( "start failed", e ); + catch( JMException jme ) { + //AS ToDo: later on we have to define what happens when service could not be started + jme.printStackTrace(); } } - + + public void stopService() { + try { + getServer().invoke( + mService, + "stop", + new Object[] {}, + new String[] {} + ); + } + catch( JMException jme ) { + //AS ToDo: later on we have to define what happens when service could not be started + jme.printStackTrace(); + } + } + // java.lang.Object overrides ------------------------------------ public String toString() { 1.8 +2 -2 jboss/src/main/org/jboss/management/j2ee/SingleJBossServerManagement.java Index: SingleJBossServerManagement.java =================================================================== RCS file: /cvsroot/jboss/jboss/src/main/org/jboss/management/j2ee/SingleJBossServerManagement.java,v retrieving revision 1.7 retrieving revision 1.8 diff -u -r1.7 -r1.8 --- SingleJBossServerManagement.java 2002/01/03 04:00:59 1.7 +++ SingleJBossServerManagement.java 2002/01/17 21:57:27 1.8 @@ -23,7 +23,7 @@ * Represents the single JBoss server management domain * * @author <a href="mailto:[EMAIL PROTECTED]">Andreas Schaefer</a>. - * @version $Revision: 1.7 $ + * @version $Revision: 1.8 $ * * <p><b>Revisions:</b> * @@ -46,7 +46,7 @@ public SingleJBossServerManagement() throws MalformedObjectNameException, InvalidParentException { - super( "SingleJBoss" ); + super( "jboss.management.single" ); } // -------------------------------------------------------------------------
_______________________________________________ Jboss-development mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-development