[jboss-user] [JBoss Seam] - Passivation

toni do-not-reply at jboss.com
Thu May 3 12:56:23 EDT 2007


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



More information about the jboss-user mailing list