Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

LocalHome  RSS feed

 
Maxim Suponya
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,
i have orion 2.0.1 and CMP entity bean with interfaces:
Property.java
PropertyHome.java
PropertyLocal.java
PropertyLocalHome.java
PropertyBean.java
PropertyPK.java
i also have this lines in my ejb-jar.xml
<display-name>Property</display-name>
<ejb-name>Property</ejb-name>
<home>com.gidnet.obe.ejb.PropertyHome</home> <remote>com.gidnet.obe.ejb.Property</remote>
<local-home>com.gidnet.obe.ejb.PropertyLocalHome</local-home> <local>com.gidnet.obe.ejb.PropertyLocal</local>
<ejb-class>com.gidnet.obe.ejb.PropertyBean</ejb-class>
<persistence-type>Container</persistence-type>
<prim-key-class>com.gidnet.obe.ejb.PropertyPK</prim-key-class>
<reentrant>False</reentrant>
<cmp-version>2.x</cmp-version>
<abstract-schema-name>Property</abstract-schema-name>
.
.
.
when i try to get remote home object from client:
Object propertyHome = context.lookup("java:comp/env/ejb/PropertyHome");
it works just fine.
when i try to get local home object from client:
Object propertyLocalHome = context.lookup("java:comp/env/ejb/PropertyLocalHome");
i get an exception:
Unable to get home interface: javax.naming.NameNotFoundException: ejb/PropertyLocalHome not found in obe/My app name, bound values are: ejb/PropertyHome, ejb/XMLTransactionManagerHome
No local home interfaces has been bound why?
Please help.
Thank you.
 
Maxim Suponya
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Question's closed, just had to specify <ejb-local-ref>... but thanks anyway.
 
sameerleekha
Greenhorn
Posts: 26
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
The exception u are getting is NameNotFoundException. This means that your JNDI-Name for the localhome interface is not properly bound.
Check for the same name u are querying for and the name u have provided for the jndi-lookup.
sameer
 
Bolaji Titiloye
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
:roll: hello i just wanna let you guys kno0w what a wonderful site you have here and that you enlighten we upcoming IT proffessionals alot kudos thanks tytyloye@yahoo.com
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!