Logger is a RemoteObject
| public Logger() throws SmileException {
| // me registro en JNDI
| try {
| EJBUtil.setResource(this, Logger.JNDI_NAME);
| System.out.println("Logger registrado");
| } catch (NamingException e) {
| e.printStackTrace();
| throw new SmileException("Couldn't bind to the Naming
service");
| }
| }
|
EJBUtil.setResource() will bind the resource (this instance of logger) to
"rmi:/Smile/Logger" (in this example). It will check for an existing context.
If there's none, it will create a InitialContext.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3875058#3875058
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3875058
-------------------------------------------------------
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://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user