My question is what ways can the MBean that I have created be accessed (both 
remotely and locally).  I understand I can acess it using:
RMIAdaptor/MBeanServerInvocationHandler, 
MBeanServer/MBeanServerInvocationHandler but am concerened that if I start 
embedding this type of call in my EJB then I will have non-portable code(?) or 
at least code that is not commonly used (ie most EJB developers I know aren't 
familiar with it).

Therefore I started to think about adding some of the objects wrapped by the 
MBean to the JNDI tree (like the supplied uuid-generator), but came across the 
problem that they are not serializable (and I wouldprefer not to chnage the 
doomdark code).   When investigating the possiblity of using the 
NonSerializableFactory I read the warning that this will not be accessible 
remotely.

Also, I have looked at the code for the supplied uuid-generator and unless I am 
mistaken, the factory is not behaving like a factory (apart from returning an 
instance with different parameter, but not a different type). For example, if 
you use the HiLoKeyGeneratorFactory it always gives you back a 
HiLoKeyGenerator. I was expecting one factory that gave back the required type 
of KeyGenerator.


I would like to integrate the doomdark uuid generator, but wish to do so in the 
best possible way.

Many thanks for you comments so far.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3858006#3858006

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3858006


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. 
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to