Ok, I've spent 3 hours in the doc, google and here trying to figure out what I've done wrong here and I really 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>
com.rlsworx.billing.interfaces.DailyBillingCycleHome
com.rlsworx.billing.interfaces.DailyBillingCycle
</ejb-ref>
</application-client>
---------------------
- jboss.xml (frag) -
...
<ejb-name>DailyBillingCycle</ejb-name>
<jndi-name>ejb/billing/DailyBillingCycle</jndi-name>
<method-attributes>
</method-attributes>
...
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?