• 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
  • Ron McLeod
  • Junilu Lacar
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • Jeanne Boyarsky
  • Rob Spoor
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • Carey Brown
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • fred rosenberger
  • salvin francis

JBOSS JNDI Lookup from Standalone Client

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Ok, I've spent 3 hours trying to figure out what I've done wrong here and I need some help....

I'm trying to write a standalone client that accesses a SessionBean in JBoss 4.0.1. I'm hitting it fine from embedded Tomcat but can't seem to get the incantation right from the standalone client. I'm using the 'Getting Started' guide from docs.jboss.org but I'm just missing some connection somewhere....

I've written the following config components:

-------------------
- jndi.properties -

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=jnp://localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming.client
j2ee.clientName=daily-cycle

--------------------
- jboss-client.xml -

<jboss-client>
<jndi-name>daily-cycle</jndi-name>
<ejb-ref>
<ejb-ref-name>ejb/DailyBillingCycle</ejb-ref-name>
<jndi-name>ejb/billing/DailyBillingCycle</jndi-name>
</ejb-ref>
</jboss-client>


--------------------------
- application-client.xml -
<application-client>
<display-name>DailyBillingCycle</display-name>
<ejb-ref>
<ejb-ref-name>ejb/DailyBillingCycle</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<home>com.rlsworx.billing.interfaces.DailyBillingCycleHome</home>
<remote>com.rlsworx.billing.interfaces.DailyBillingCycle</remote>
</ejb-ref>
</application-client>

---------------------
- jboss.xml (frag) -

...
<session>
<ejb-name>DailyBillingCycle</ejb-name>
<jndi-name>ejb/billing/DailyBillingCycle</jndi-name>

<method-attributes>
</method-attributes>
</session>
...

I've compiled everything and deployed everything and I keep getting:

--> javax.naming.NameNotFoundException: daily-cycle not bound


Can someone please tell me what's missing (or misplaced) here?

Thanks!
 
Ranch Hand
Posts: 35
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
hi man ...

from the details u have given here only one thing pops up in my mind .. your error message is NameNotFound for daily-cycle but in the jboss.xml file this jndi name is not there .... i think u are looking for the wrong jndi name ....

this is what i have to say .....

regards
Naren
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic