A coworker suggested that I post a code snippet for context.
| Hashtable env = new Hashtable();
| env.put(Context.PROVIDER_URL, "remoteserver");
| InitialContext initialContext = new InitialContext(env);
| try
| {
| Object objRef = initialContext.lookup("my/Workspace");
| return (ejb.WorkspaceHome)
javax.rmi.PortableRemoteObject.narrow(objRef, ejb.WorkspaceHome.class);
| }
| finally
| {
| initialContext.close();
| }
|
Simple stuff. It's XDoclet generated an worked just fine before upgrading.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3866953#3866953
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3866953
-------------------------------------------------------
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