[jboss-user] [JBoss Seam] - Re: Basic Seam questions

lightbulb432 do-not-reply at jboss.com
Thu Dec 14 20:55:37 EST 2006


That works, thanks.

1) I've left my destroy() method as in the example from the previous post. What I don't understand, though, is don't @Remove and @End conflict in any way? It seems like if @End is called, the conversation ends, and if @Remove is called, then the SFSB is removed? But I never call @Remove...

The Seam tutorial says SFSB must have an @Destroy @Remove method...but it seems like @Remove does one thing and @Destroy does another. Why must they both be defined on the same method?

2) When using conversations, is it required to use a stateful session bean as opposed to stateless? What about an extended persistence context as opposed to a transaction-scoped one?

3) From the earlier posts about the Seam-Managed Persistence Context, how do I use it? What should I set @PersistenceContext(type=???????) to?

4) Is there a way to catch any exception from an action method and return a certain string, such as "failure"? I could place a catch block inside every action method, but that seems like a pain. 

Is there some way to specify (through XML or annotations) that if a certain or any exception is thrown, that you simply return a certain value from the action method?

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

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994096



More information about the jboss-user mailing list