java - ear deployed successfully but context missing in jboss as 7 -


i migrating application oc4j app server jboss as7 app server, ear involves 3 ejb jars in 1 consist persistence.xml , using eclipse link. 2 jars not contain persistence.xml showing when trying context using below code:

    final hashtable<string, object> jndiproperties = new hashtable<string, object>();     jndiproperties.put(context.url_pkg_prefixes,             "org.jboss.ejb.client.naming");     jndiproperties.put(context.initial_context_factory,             initialcontextfactory.class.getname());     jndiproperties.put(context.provider_url, "remote://127.0.0.1:4447");     jndiproperties.put(initialcontext.security_principal, "admin");     jndiproperties.put(initialcontext.security_credentials, "password-1234");     jndiproperties             .put("jboss.naming.client.connect.options.org.xnio.options.sasl_policy_noanonymous",                     false);     jndiproperties             .put("jboss.naming.client.connect.options.org.xnio.options.sasl_policy_noplaintext",                     false);     jndiproperties             .put("jboss.naming.client.connect.options.org.xnio.options.sasl_disallowed_mechanisms",                     "jboss-local-user");      initialcontext context = new initialcontext( jndiproperties);      namingenumeration contextlist = context.list("testapp");      while (contextlist.hasmore())      {         nameclasspair cont=(nameclasspair) contextlist.next();         system.out.println(cont);       } 

however not getting context of jar file contains persistance.xml. here session beans in 3 jars defined in ejb-jar.xml.

what possible reasons of not getting context of 3rd jar?


Comments

Popular posts from this blog

facebook - android ACTION_SEND to share with specific application only -

python - Creating a new virtualenv gives a permissions error -

javascript - cocos2d-js draw circle not instantly -