fine! thanx again for your help. now i know how to write
a plug-in for jboss :-)
i really like this approach since it makes the jboss server
very extendible. as far as i know no other ejb server provides
such a cool plug-in architecture.
yours,
lars
> Right. This is the JMX name of your *administrable service* (remember
> that your stuff will be in two parts: the "public" service that you're
> providing, and the administrable part that runs the service)
>
> > i guess the code might look something like to following:
> >
> > public ObjectName preRegister(MBeanServer server, ObjectName name)
> > throws Exception
> > {
> > ...
> > new InitialContext().bind("java:/MyServer", myServer);
> > return new ObjectName(":service=MyServer");
> > }
>
> Yes, something like that.
>
> I actually prefer this:
> ... preRegister(..)
> {
> ...
> return name == null? new ObjectName(":service=MyServer") : name;
> }
>
> i.e. if the user has configured a name explicitly in jboss.conf (for
> whatever reason), then use that. Otherwise provide a reasonable default.
>
> /Rickard
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]