Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Where are ejb home methods defined

 
Karthik Guru
Ranch Hand
Posts: 1209
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just came up with this :-) not sure if you guys w'd find it helpful.
We have:
PersonRemote
PersonRemoteHome
PersonBean
Interface PersonRemoteHome extends EJBHome{
public PersonRemote create() throws RE;
public PersonRemote findByPrimaryKey(String key) throws RE;
public void getThisWorkDone(String var1,int var2) throws RE;
}
Where w'd you define the implementation for
getThisWorkDone()? give the method signature.
 
Andres Gonzalez
Ranch Hand
Posts: 1561
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd say that getThisWorkDone should go In the bean implementation.... and if you're getting something from that method, it should not be void ...
public void getThisWorkDone(String var1,int var2)
right?
 
Andrew Perepelytsya
Ranch Hand
Posts: 93
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please note there are some conventions for naming the home methods implementations. Thus to arouse your researching interest: EJB 2.0 Spec, section 10.6.6, page 193
good luck
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic