David Connell

Greenhorn
+ Follow
since Feb 18, 2005
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by David Connell

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!
16 years ago