what r the method in the home interface

Discussions

EJB programming & troubleshooting: what r the method in the home interface

  1. what r the method in the home interface (2 messages)

    Hi
    what r the method in the home interface,
    i know that there r create, find and remove method
    what does create method do, what does find method do,
    what does remove method do,

    when i am writing the session bean is it complusory to use all these methods,
    when i am writing the entity bean is it i should use all these methods.

    thankx
    satish
  2. what r the method in the home interface[ Go to top ]

    Hi Satish,
       Please go thru some good EJB book. The book i would recommend is Ed Roman's "Mastering Enterprise Jave Beans" which could be downloaded from this site. Go thru the first nine chapters to get the answers for ur questions.

    thanks...hasan
    (ahamed at aztec dot soft dot net)
  3. hi satish,
    Since it is a basic question that u've put, let me answer u in a simple way. yes u r correct that there are 3 methods in the home interface. In case of a session bean it is enough that u use create method. create method just initializes the bean in the container. it is upto u to use remove and the find method. the remove method removes the instance of the bean from the container. the find method is used to find the instance of the bean for ur use. in most cases the find method and remove method shall be used in entity beans.

    regards
    vijay
    vjwebmast@mailcity.com