It means you JMX object name is bad. The name is
jboss.security:service=JaasSecurityManager
not
jboss.security.service=JaasSecurityManager
xxxxxxxxxxxxxxxxxxxxxxxx
Scott Stark
Chief Technology Officer
JBoss Group, LLC
xxxxxxxxxxxxxxxxxxxxxxxx
----- Original Message -----
From: "kiuma" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Wednesday, May 28, 2003 5:10 AM
Subject: [JBoss-user] mbean access from session bean help
> Hello, I ahve this method:
>
> * @ejb.env-entry
> * name="jaasMgrName"
> * value="jboss.security.service=JaasSecurityManager"
> * @ejb.env-entry
> * name="securityDomain"
> * value="progettoblu"
>
> public Collection getLoggedUsers()
> throws RemoteException
> {
> try {
> InitialContext ic = new InitialContext();
> String securityDomain =
> (String)ic.lookup("java:comp/env/securityDomain");
> String jaasMgrName =
> (String)ic.lookup("java:comp/env/jaasMgrName");
>
> MBeanServer server =
> (MBeanServer)MBeanServerFactory.findMBeanServer(null).get(0);
>
> ObjectName jaasMgr = new ObjectName(jaasMgrName);
> Object params[] = {securityDomain};
> String signature[] = {"java.lang.String"};
> List result = (List)server.invoke(jaasMgr,
> "getAuthenticationCachePrincipals", params,
> signature);
> return result;
> } catch (Exception e) {
> throw new RemoteException( e.getMessage() );
> }
> }
>
> the invoke method generates:
>
> 14:04:28,854 INFO [STDOUT] UserControlSessionBean.ejbCreate()
> 14:04:28,867 WARN [RequestProcessor] Unhandled Exception thrown: class
> java.rmi.RemoteException
> 14:04:28,887 WARN [jbossweb] WARNING: Exception for
> /progettoblu/userMonitorAction.do: java.rmi.RemoteException: missing domain
>
> Why missing domain? What does it mean?
>
> Thanks,
> kiuma.
>
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: ObjectStore.
> If flattening out C++ or Java code to make your application fit in a
> relational database is painful, don't do it! Check out ObjectStore.
> Now part of Progress Software. http://www.objectstore.net/sourceforge
> _______________________________________________
> JBoss-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-user
>
-------------------------------------------------------
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user