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

when ejbRemove is called?  RSS feed

 
AmitKumar Verma
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When ejbRemove is called in case of entity beans, is it necessary to call
ctx.getPrimaryKey() to get the primary key for deleting the records.
Cant we use the instance fields(one or some of which are primary key to the table) present in the bean in the delete SQL statement.
 
Lasse Koskela
author
Sheriff
Posts: 11962
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If your bean is BMP, you can just use the instance fields.
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In CMP container does the job for you.
Originally posted by Lasse Koskela:
If your bean is BMP, you can just use the instance fields.


[ August 13, 2003: Message edited by: Pradeep Bhat ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!