This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java and have Dr. Raoul-Gabriel Urma & Richard Warburton on-line!
See this thread for details.
Win a copy of Real-World Software Development: A Project-Driven Guide to Fundamentals in Java this week in the Agile and Other Processes forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Liutauras Vilda
  • Knute Snortum
  • Bear Bibeault
Sheriffs:
  • Devaka Cooray
  • Jeanne Boyarsky
  • Junilu Lacar
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Carey Brown
  • salvin francis
Bartenders:
  • Tim Holloway
  • Piet Souris
  • Frits Walraven

LocalHome

 
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.
 
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
 
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
 
If I'd had more time, I would have written a shorter letter. -T.S. Eliot such a short, tiny ad:
Java file APIs (DOC, XLS, PDF, and many more)
https://products.aspose.com/total/java
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!