This content has been marked as final.
Show 2 replies
-
1. Re: Exception while invoking home.create method of EJB1.1 on JBoss 7.1.1
jaysensharma Apr 15, 2015 3:52 AM (in response to jboss234)Looks like you are using Remoting based Client rather than using the EJBClientContext based API so you should not use the "ejb:" prefix before the JNDI name so can you try the following:
Hashtable<String, String> env = new Hashtable<String, String>(); env.put("java.naming.factory.initial", "org.jboss.naming.remote.client.InitialContextFactory"); // New InitialContextFactory env.put("java.naming.provider.url", "remote://localhost:4447"); env.put("jboss.naming.client.ejb.context", "true"); env.put("jboss.naming.client.connect.options.org.xnio.Options.SASL_POLICY_NOPLAINTEXT", "false"); env.put(Context.SECURITY_PRINCIPAL, "ejbUser"); // ApplicationRealm User env.put(Context.SECURITY_CREDENTIALS, "ejbPassword"); InitialContext context = new InitialContext(env); Object objref = context.lookup("PatientInfoEAR/PatientInfoEJB//PatientEJB!"+interfaceName);
AS 7.1.1 is too old. Better if you try the later versions of it.
-
2. Re: Exception while invoking home.create method of EJB1.1 on JBoss 7.1.1
jboss234 Apr 30, 2015 3:57 PM (in response to jaysensharma)Thanks for reply,
From the http://jbossas.jboss.org/downloads/ download page I can see JBoss AS 7.1.1.Final as the latest application server.
where can I find later JBoss AS versions.
Thanks,