This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

run a bean by hand

 
Mihai Radulescu
Ranch Hand
Posts: 918
IntelliJ IDE Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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 ]
     
    Sergio Tridente
    Ranch Hand
    Posts: 329
    Java Linux Oracle
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    Please, post your bean and interface's code.
     
    Mihai Radulescu
    Ranch Hand
    Posts: 918
    IntelliJ IDE Java Linux
    • Mark post as helpful
    • send pies
    • Quote
    • Report post to moderator
    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 ]
     
    • Post Reply
    • Bookmark Topic Watch Topic
    • New Topic