Kalde local bean istedet for remote?
I nedestående kode kaldes en remote bean hvordan kaldes en local bean?try
{
System.setProperty("java.naming.factory.initial", "org.jnp.interfaces.NamingContextFactory");
System.setProperty("java.naming.factory.url.pkgs", "org.jnp.interfaces");
System.setProperty("java.naming.provider.url", "localhost:1099");
Context ctx = new InitialContext();
Object temp = ctx.lookup("ejb/File");
fileLocalHome = (FileLocalHome) PortableRemoteObject.narrow(temp, FileLocalHome.class);
} catch (ClassCastException e)
{
e.printStackTrace();
}
catch (NamingException e)
{
e.printStackTrace();
}
