• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

deploy the bean

 
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

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.
 
Soman Singh
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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 ..
 
Soman Singh
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Lasse Koskela
author
Posts: 11962
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
 
reply
    Bookmark Topic Watch Topic
  • New Topic