I just added an @RaiseEvent annotation. So you could write:
@RaiseEvent("selectDataSource")
public String selectDataSource()
| {
| log.info("get datasource: #0 for #{user.username}",
dataSource.getId());
| dataSource = em.find(DataSource.class, dataSource.getId());
| log.info("got datasource: #0 for #{user.username}",
dataSource.getName());
| return "datasource";
| }
To solve your problem.
Of course, another solution would be to use
Contexts.getSessionContext().set("dataSource", dataSource) instead of
outjection.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3975354#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...