[jboss-user] [EJB 3.0] - Re: Cannot get my first EJB 3.0 to work!!!
ALRubinger
do-not-reply at jboss.com
Tue Aug 29 14:33:32 EDT 2006
Just a quick glance, but this stands out...
anonymous wrote : Count obj = (Count)ctx.lookup("CountingBean");
...and your JNDI tree shows you:
anonymous wrote : +- CountingBean (class: org.jnp.interfaces.NamingContext)
| | +- remote (class: java.lang.Object)
| | +- remoteStatefulProxyFactory (proxy: $Proxy72 implements interface org.jboss.ejb3.ProxyFactory)
Your proxy should be stored under "CountingBean/remote". So try:
Count obj = (Count)ctx.lookup("CountingBean/remote");
Don't know if you've seen the EJB3 Trailblazer yet, but if not, it's really a great starting point with working examples for simple EJB3s:
http://trailblazer.demo.jboss.com/EJB3Trail/serviceobjects/slsb/index.html
S,
ALR
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3968187#3968187
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3968187
More information about the jboss-user
mailing list