wood burning stoves 2.0*
The moose likes EJB Certification (SCBCD/OCPJBCD) and the fly likes run a bean by hand Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Certification » EJB Certification (SCBCD/OCPJBCD)
Bookmark "run a bean by hand" Watch "run a bean by hand" New topic
Author

run a bean by hand

Mihai Radulescu
Ranch Hand

Joined: Sep 18, 2003
Posts: 916

Hi

I try to run a bean by hand but from some reasons I don't get any results.
I use the tutorial from

http://www.webagesolutions.com/knowledgebase/javakb/jkb005/index.html


in short, I have :
  • a Remote interface
  • a Stateless session bean (which implements this interface)
  • a Main class which use the InitialContext to get the bean.



  • the bean is deployed in a glassfist in the domain1/autodeploy

    but with all of this I still get an Exception a javax.naming.NameNotFoundException: BidBean not found

    The call code looks like :



    this code runs outside of container.

    What I do here wrong ?


    Regards,
    M
    [ August 26, 2008: Message edited by: Mihai Radulescu ]

    SCJP, SCJD, SCWCD, OCPJBCD
    Sergio Tridente
    Ranch Hand

    Joined: Mar 22, 2007
    Posts: 329

    Please, post your bean and interface's code.


    SCJP 1.4 (88%) - SCJP 5.0 Upgrade (93%) - SCWCD 1.4 (97%) - SCBCD 5.0 (98%)
    Mihai Radulescu
    Ranch Hand

    Joined: Sep 18, 2003
    Posts: 916

    the interface is :


    and the bean is :



    P.S.

    the code is working, was my mistake - I copied in the wrong location.
    [ August 27, 2008: Message edited by: Mihai Radulescu ]
     
     
    subject: run a bean by hand
     
    Similar Threads
    Development Environment?
    what tools and software needed to run EJB & JPQL
    EJB 3.0 in Action examples in Eclipse
    Server For EJB
    exception in first ejb 3.1 program on NetBean 6.1