I have an MBean that runs within JBoss, and extends
java.rmi.server.UnicastRemoteObject.  I'd like to make it available to
RMI clients outside JBoss.  I haven't found anything specifically about
this in the JBoss documentation, but the Administration and Development
Guide gives me the impression that the JBoss NamingService MBean acts as
a kind of built-in RMI registry, since it seems to provide this service
automatically for EJBs.  Questions:

1. Can I indeed register my UnicastRemoteObject with the JBoss
NamingService, so remote clients can use it via RMI?  If so, what API
should I use in order to register it: java.rmi.Naming, or a JBoss class?
(If not, do I need to run 'rmiregistry' alongside JBoss?)

2. How should clients obtain a reference to the object?  (By doing a
traditional RMI lookup using java.rmi.Naming?  By doing a JNDI lookup in
the JBoss naming service, and then using PortableRemoteObject.narrow()
on the reference returned?)

Benjamin Geer
Misys Intl. Banking Systems


-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to