This content has been marked as final.
Show 6 replies
-
1. Re: JBoss 6.0.0.final lookup 2.1 Entity Bean from java:comp/env returns EJBHome instead of EJBLocalHome
jaikiran Sep 30, 2011 2:52 AM (in response to subversion)1 of 1 people found this helpfulLooks like a bug. Can you try removing that ejb-link element in the web.xml and instead using a jboss-web.xml to point the ejb-local-ref to the jndi-name of the local interface?
-
2. Re: JBoss 6.0.0.final lookup 2.1 Entity Bean from java:comp/env returns EJBHome instead of EJBLocalHome
subversion Sep 30, 2011 7:26 AM (in response to jaikiran)Thank you for reply.
Still works in the same way: properly in 6.0...CR1 and returns remote-home in 6.1.0.
I moved references from web.xml to the
app.ear/web.war/WEB-INF/jboss-web.xml
<jboss-web>
<ejb-local-ref>
...
-
3. Re: JBoss 6.0.0.final lookup 2.1 Entity Bean from java:comp/env returns EJBHome instead of EJBLocalHome
jaikiran Sep 30, 2011 7:31 AM (in response to subversion)Please post the exact configuration in that jboss-web.xml. Did you point to the jndi-name?
-
4. Re: JBoss 6.0.0.final lookup 2.1 Entity Bean from java:comp/env returns EJBHome instead of EJBLocalHome
subversion Sep 30, 2011 8:50 AM (in response to jaikiran)<?xml version="1.0" encoding="UTF-8"?> <jboss-web> <resource-ref> <res-ref-name>jdbc/ServerSideDataSource</res-ref-name> <res-type>javax.sql.DataSource</res-type> <jndi-name>java:/app-DataSource</jndi-name> </resource-ref> <ejb-local-ref> <ejb-ref-name>ejb/Faculty</ejb-ref-name> <ejb-ref-type>Entity</ejb-ref-type> <local-home>com.ecwo.project2002.server.domain.localeDictionary.faculty.FacultyLocalHome</local-home> <local>com.ecwo.project2002.server.domain.localeDictionary.faculty.FacultyLocal</local> <ejb-link>FacultyBean</ejb-link> </ejb-local-ref> <ejb-local-ref> .... </ejb-local-ref> </jboss-web>
-
5. Re: JBoss 6.0.0.final lookup 2.1 Entity Bean from java:comp/env returns EJBHome instead of EJBLocalHome
jaikiran Oct 1, 2011 3:32 AM (in response to subversion)I meant, change it to:
<?xml version="1.0" encoding="UTF-8"?> <jboss-web> <resource-ref> <res-ref-name>jdbc/ServerSideDataSource</res-ref-name> <res-type>javax.sql.DataSource</res-type> <jndi-name>java:/app-DataSource</jndi-name> </resource-ref> <ejb-local-ref> <ejb-ref-name>ejb/Faculty</ejb-ref-name> <ejb-ref-type>Entity</ejb-ref-type> <local-home>com.ecwo.project2002.server.domain.localeDictionary.faculty.FacultyLocalHome</local-home> <local>com.ecwo.project2002.server.domain.localeDictionary.faculty.FacultyLocal</local> <!-- Remove the ejb-link and point to the jndi name of the local interface of the bean --> <local-jndi-name>the-jndi-name</local-jndi-name> </ejb-local-ref> ...
-
6. Re: JBoss 6.0.0.final lookup 2.1 Entity Bean from java:comp/env returns EJBHome instead of EJBLocalHome
subversion Oct 4, 2011 5:06 PM (in response to jaikiran)Yes! It works. Thank you so much. Sorry for the late reply.
<?xml version="1.0" encoding="UTF-8"?> <jboss-web> <resource-ref> <res-ref-name>jdbc/ServerSideDataSource</res-ref-name> <res-type>javax.sql.DataSource</res-type> <jndi-name>java:/app-DataSource</jndi-name> </resource-ref> <ejb-local-ref> <ejb-ref-name>ejb/Faculty</ejb-ref-name> <ejb-ref-type>Entity</ejb-ref-type> <local-home>com.ecwo.project2002.server.domain.localeDictionary.faculty.FacultyLocalHome</local-home> <local>com.ecwo.project2002.server.domain.localeDictionary.faculty.FacultyLocal</local> <local-jndi-name>com.ecwo.project2002.server.domain.localeDictionary.faculty.FacultyLocalHome</local-jndi-name> </ejb-local-ref> ...