• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

LocalHome

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic