• 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

Change Stateful session bean to stateless

 
Greenhorn
Posts: 13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi All

I am a newbie to EJB programming and I am wondering if the following can be done with session beans...

Can we change already created and deployed stateless session bean to a stateful session bean by just changing the deployment descriptor (ejb-jar.xml) and re-deploying it again or do we have to to create the bean from scratch again incase we have to change it.

Similarly, can we change an already created and deployed statefulsession bean to a stateless session bean by changing the deployment descriptor and re-deploying the bean.

Thanks

S Deshmukh
 
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
assuming that you are aware of their differences (eg. remove() shud be called explicitly for SFSB to end the session), i guess changing the descriptors and redeploying should do.
 
Ranch Hand
Posts: 452
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I think if you are converting stateful session bean into stateless than you have to make sure that the create method doesn't take any parameters. As create() method of Stateless session bean can't take any arguments
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic