Hi Dain

I don't know what this is all about but what you
want would looks like this:

 ObjectName lServer = null;
 try {
    Set lServers = pServer.queryNames(
       new ObjectName(
          J2EEManagedObject.getDomainName() + ":" +
          J2EEManagedObject.TYPE + "=" + J2EEServer.J2EE_TYPE + "," +
          "*"
       ),
       null
    );
    if( lServers.isEmpty() ) {
        lLog.error( "Could not locate JSR-77 Server: " + pName );
    }
    lServer = lServers.iterator().next();
 }
 catch( Exception e ) {
    lLog.error( "Could not locate JSR-77 Server: " + pName, e );
 }

I personally don't see what you gain because now you have the
SAME message at two different places just for the sake of it.

>From the JSR-77 implementation I can assume that there is
always a server available and if not then it is an exceptional
case.

Because your arguments are not correct I will leave it as
it is.

Andy




-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to