[jboss-user] [EJB 3.0] - Re: remove method functionality in CMP Bean
itsme
do-not-reply at jboss.com
Fri Jun 6 03:57:09 EDT 2008
Hi,
I think you are looking for
public void ejbRemove()
for CMP Entity Beans in EJB2.x style. While you are calling the reove method on the entity bean itself, there is no need to pass in a identifier.
When calling remove via a session facade you can either first call findByPrimaryKey(id) and then call remove on that bean (has all of its ejb overhead while loading the entity from database just to remove it) or you delete it by sending an sql string right to the database direct from session facade (what prevents you from loading the entity). Then this method is a facade method that needs to be declared on the (Local/Remote) Interface of the session facade.
Hope this helps
\sandor\
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4156210#4156210
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4156210
More information about the jboss-user
mailing list