Shouldn't there be a comma between Single and j2eeType?
Thanks for answering. I thought this was the user not the dev list. Sorry for cluttering, but since I've started might as well keep going. Here is the output of the ObjectName.
20:04:52,428 INFO [STDOUT] DEBUG - jboss.management.single:J2EEServer=Single,j2eeType=J2EEApplication,name=A0.ear
p.s. Any chance that I can get this question moved to the user list :->
This does work and I did have a comma in the earObjectName both times.
Set set = server.queryNames( earObjectName, null );
for( Iterator it = set.iterator(); it.hasNext(); )
foundEar = true;