Jul 4th, 2008, 04:41 AM
local EJB and glassfish
Hello everybody, sorry for my bad english.
I am actually trying to access local EJBs with Spring. My application is running under glassfish.
When I don't use Spring, the @EJB annotation allows me to access them. But apparently, I have not this comportment when my classes are loaded by Spring (I really don't understand why). So I try to acccess them by using the <jee:local-slsb> tab, and for the jndi-name, I have tried "java:comp/env/XX" and "XX" where XX is the mapped name of the EJB (@Stateless ( name="...", mappedName = "XX").
I just precise that I have no problem to access remote EJB on glassfish with this method.
But for local ones, I have a javax.naming.NameNotFoundException. I don't find any solution.
Does someone have already had this problem and knows how to solve it?
Or just any suggestion?
Thanks in advance.
Jul 4th, 2008, 09:42 AM
Finally, it's ok now, and I don't know why.
I suppose there were a character error in my "java:comp/env/..." jndi name, or I had to redeploy my app for a reason or another...
Don't really understand, but it's ok now.
Apr 23rd, 2009, 01:43 PM
could you please post your complete spring <jee:local-slsb .../> tag as well as your local session-bean?
i am using glassfish v21 and i try to use local slsb in my spring-bean.