Results 1 to 3 of 3

Thread: local EJB and glassfish

  1. #1
    Join Date
    Jun 2008
    Posts
    16

    Default 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. #2
    Join Date
    Jun 2008
    Posts
    16

    Default

    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.

  3. #3
    Join Date
    Apr 2009
    Posts
    5

    Default

    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

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •