Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Problem in Container Managed Bean  RSS feed

 
sachin sachdeva
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi To all
Is any body can tell me that what is the return type of ejbCreate()
method in the case of CMP
in the some examples it is given as String or Primary Key Class and as a return statement they are returning null.
But in EdRoman it is given as void.
Pls tell me the answer with reason
Thanx in Advanve
 
Madhu Juneja
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In case of CMP the return type of ejbCreate in the bean class should be the Primary-key class as per ejb 1.1 specs unlike in ejb 1.0 the return type was void. Refer page 168 of O'reilly 2nd Edition.
As Ed roman book and Oreilly first edition correspond to ejb1.0 hence the examples in these books would have void.
HTH
 
sachin sachdeva
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Madhu
can u give me ur mail id if u dont mind i am having some more issues in the programs to be discussed.
 
Madhu Juneja
Ranch Hand
Posts: 176
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I visit javaranch more often (on an everyday basis) than checking mails. I check mails probably once a week or so. And moreover posting your queries here will be more beneficial to all at javaranch. My mail id is myjavaindia@yahoo.com
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!