[jboss-user] [JBoss Seam] - Workaround to

rmemoria do-not-reply at jboss.com
Sun Nov 19 18:55:45 EST 2006


Hi,

SEAM is really a great framework, and its conversation model solves a lot of implementation issues I've faced in web development. Because of that and other features I decided to start a project using SEAM.

But now in the very beginning of the development phase I can't move forward because the already known bug Could not register Syncronization.

The procedures to rise it's error is very simple. Basically I have a @statefull session bean and a @In anotation to inject a context component from the previous statefull session bean, like that:

anonymous wrote : @Stateful
  | @Name("EditUser")
  | public class EditUserBean implements EditUser {
  |     
  |     @In(create=true)
  |     User user;
  | ..
  | ..

This is a bean to handle the edition of the user's attributes. It is injected from the following session bean: (which is the one used in the page to select a user from the list)

anonymous wrote : @Stateful
  | @Name("users")
  | public class UsersBean implements Users {
  | 
  | 	@DataModel
  | 	private List userList;
  | 	
  | 	@DataModelSelection
  | 	@Out(required=false)
  | 	private User user;
  |   ..
  |   ..

If I remove the @In(create=true) annotation from the EditUserBean the error doesn't occur, but the user selected is obviously not injected.

I'm using JBOSS 4.0.4GA and SEAM 1.0.1GA.

I've updated my libs to EJB 3.0 RC9 but I'm still having the same problem.

Does anyone know a workaround to this problem or I'll have to wait for the release of another version of EJB/JBOSS AS?

Regards,
Ricardo

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

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



More information about the jboss-user mailing list