Java Mailing List Archive

http://www.junlu.com/

Home » Home (12/2007) » JBoss User Help »

[jboss-user] [JBoss Seam] - Passivation

scott.stark@jboss.org

2007-05-03


Hi,

in my stateful session beans I use field declarations like:


| Preferences preferences = Preferences.userRoot();
| SecureRandom secureRandom = new SecureRandom();
|

Both are not serializable, which makes me wonder whether or not I should declare them @Transient?

Will the fields/variables be null after passivation/activation?

Then I use static fields in my entity beans like:


| public final static Pattern pattern = Pattern.compile("(\\w+://)([^/]+)(/?.*)");
|

Is that ok?

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4042911#4042911

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4042911
_______________________________________________
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user
©2008 junlu.com - Jax Systems, LLC, U.S.A.