Announcement Announcement Module
Collapse
No announcement yet.
local EJB and glassfish Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • 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.

  • #2
    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.

    Comment


    • #3
      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.

      thanks.
      regards
      tim

      Comment

      Working...
      X