File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Architect Certification (SCEA/OCMJEA) and the fly likes states of stateful session bean Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Professional Certification » Architect Certification (SCEA/OCMJEA)
Reply Bookmark "states of stateful session bean " Watch "states of stateful session bean " New topic
Author

states of stateful session bean

Timber Lee
Ranch Hand

Joined: Oct 14, 2002
Posts: 157
Hi, I have some questions about how to classify state fields of stateful session bean, please clear it for me or recommend some articles for me, thank in dvance.
how many type of state fields are in stateful session bean? what need to be serialized when passivating ?


SCJP<br />SCWCD<br />SCEA
Shankar Ranganathan
Ranch Hand

Joined: Sep 19, 2001
Posts: 71
Non Transient fields will be passivated. You can download ejb1.1 specification from sun site.


Shankar<br />Post mock questions in<br /><a href="http://groups.yahoo.com/group/scea_mock" target="_blank" rel="nofollow">http://groups.yahoo.com/group/scea_mock</a>
Timber Lee
Ranch Hand

Joined: Oct 14, 2002
Posts: 157
what are non-transient and non-serializable fields?
Rama Raghavan
Ranch Hand

Joined: Aug 22, 2001
Posts: 116
Kinda lost with your question(s), BUT -
If you want to know about different states of the stateful session bean lifecycle, then "Mastering EJB" by Ed Roman is your best resource.
Thomas Hofmann
Ranch Hand

Joined: Nov 23, 2002
Posts: 72

what are non-transient and non-serializable fields?

A transient instance variable in SFSB can be declared as follows:

In this case the state of wouldn't be wirtten to disk if the SFSB is poing to be passivated.
Only serializable variables can be passivated (written to disk). All basic Java types (int, short, boolean) and all custom classes that implement the marker interface
are serializable.
Thomas
 
IntelliJ Java IDE
 
subject: states of stateful session bean
 
Threads others viewed
Stateful Session bean and Session
New to EJB.. Session Bean
EJB
Statefule session Bean
How does stateful session bean store its state?
IntelliJ Java IDE