kiuma wrote:
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
