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?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3867123#3867123
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3867123
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click
_______________________________________________
JBoss-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jboss-user