public interface ConfigLoaderMBean
{
}
import javax.management.MBeanRegistration;
import javax.management.MBeanServer;
import javax.management.ObjectName;
import javax.security.auth.login.LoginContext;
public class ConfigLoader implements ConfigLoaderMBean, MBeanRegistration
{
// MBeanRegistration implementation ------------------------------
public ObjectName preRegister(MBeanServer server, ObjectName name)
throws Exception
{
LoginContext = new LoginContext("other");
String OBJECT_NAME = ":service=ConfigLoader";
return name == null ? new ObjectName(OBJECT_NAME) : name;
}
public void postRegister(Boolean registrationDone)
{
}
public void preDeregister() throws Exception
{
}
public void postDeregister()
{
}
}
----- Original Message -----
From: "Alex Radka" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, May 31, 2001 1:13 PM
Subject: RE: [JBoss-user] JBoss 2.2.2 Release available
>
> >> 1) Initialization not thread safe (I know this is a problem with JAAS,
> but
> >> did you include a workaround).
> >No, its simple to workaround this using an mbean.
>
> Any chance I could get an example.....
>
> Just to make sure we are talking about the same thing, the workaround you
> speak of will fix the problem you refer to in:
> http://www.mail-archive.com/jboss-user%40lists.sourceforge.net/msg04879.html
>
> Thanks,
> Alex
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user