User: schaefera
Date: 01/12/09 22:27:49
Modified: src/main/org/jboss/test/management/test
JSR77SpecUnitTestCase.java
Log:
Adjusted the jsr77.jar to the newest release of the JSR-77 spec. (2001/12/06)
and also made the necessary changes to our implementation. All necessary
add ons are in but not all unnecessary methods are out. Therefore is also
a problem with method conflicts from JSR-77 and ServiceMBeanSupport which
must be fixed later (by converting to DynamicMBeans).
Revision Changes Path
1.2 +5 -5
jbosstest/src/main/org/jboss/test/management/test/JSR77SpecUnitTestCase.java
Index: JSR77SpecUnitTestCase.java
===================================================================
RCS file:
/cvsroot/jboss/jbosstest/src/main/org/jboss/test/management/test/JSR77SpecUnitTestCase.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -u -r1.1 -r1.2
--- JSR77SpecUnitTestCase.java 2001/12/09 05:01:43 1.1
+++ JSR77SpecUnitTestCase.java 2001/12/10 06:27:49 1.2
@@ -35,7 +35,7 @@
* These test the basic JSR-77 handling and access.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Andreas Schaefer</a>.
- * @version $Revision: 1.1 $
+ * @version $Revision: 1.2 $
*
* <p><b>Revisions:</b>
*
@@ -114,14 +114,14 @@
Management lManagement = getManagementEJB();
Set lNames = lManagement.queryNames(
new ObjectName(
- lManagement.getDefaultDomain() + ":type=J2EEManagement,*"
+ lManagement.getDefaultDomain() + ":type=J2EEDomain,*"
)
);
if( lNames.isEmpty() ) {
- fail( "Could not found JSR-77 root object of type 'J2EEManagement'" );
+ fail( "Could not found JSR-77 root object of type 'J2EEDomain'" );
}
if( lNames.size() > 1 ) {
- fail( "Found more than one JSR-77 root objects of type 'J2EEManagement'" );
+ fail( "Found more than one JSR-77 root objects of type 'J2EEDomain'" );
}
ObjectName lManagementDomain = (ObjectName) lNames.iterator().next();
getLog().debug( "+++ testGetManagementDomain, root: " + lManagementDomain );
@@ -255,7 +255,7 @@
Exception
{
getLog().debug("+++ getManagementEJB()");
- Object lObject = getInitialContext().lookup( "ejb/mgmt/J2EEManagement" );
+ Object lObject = getInitialContext().lookup( "ejb/mgmt/J2EEDomain" );
ManagementHome lHome = (ManagementHome) PortableRemoteObject.narrow(
lObject,
ManagementHome.class
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development