Hi All, I have a form that has two fields. I have the Entity Bean that gets the data for the fields. Now if remove one of the fields from the form, where should I make the changes so that I need not deploy the bean again. Thanks, soman
I have a form that has two fields. I have the Entity Bean that gets the data for the fields. Now if remove one of the fields from the form, where should I make the changes so that I need not deploy the bean again.
How about not changing anything? Just don't use all the methods that the entity bean provides.
Hi Lasse, The bean has not be deployed and thats fixed. If its CMP Bean, then I can change the descriptor file by removing the <cmp-field> tag. What I mean is if I remove those tags from this file the bean shall still call the fields from the create(). Like I am not sure about the answer.
But if its is a BMP then I can comment or remove the ejbCreate method. But this has to be compiled and re-deployed again which I don't want. So how should I proceed. I guess I am clear .. If not I shall explain again. Thanks ..
Joined: Sep 02, 2003
Ok something more ... In the first instance I created the Bean and its has the ejbCreate(). Now if I remove a field the how should I do it ?? wether its bmp or cmp. So in case, any changes made to the bean shall need a compilation and re-deplyment. So my point was there should be no re-deployment.
Joined: Jan 23, 2002
If you remove the cmp-field element for a field from your deployment descriptor, it is very likely that your appserver won't generate the concrete methods for you -- leading to a fatal error regarding your build process. I can see two options: 1) Don't change anything but tell the "client" not to use a particular method 2) Change everything as even a partial (code) change would require redeployment