anonymous wrote : Unfortuneatly currently you cannot use the same object outjected many times
Actually you can do this, its fine, you just have to explicit the scope: @In @Out(scope=SESSION) | private User assignedUser; An object can be bound to as many context variables as you like. No problem. The only limitation is that it will only be *automatically instantiated* for the context variable that matches the @Name annotation of the component. So if "assignedUser" is not the @Name of User, you have to instantiate it yourself and bind it to the context variable yourself. Does this make sense? Note that there is a user-written patch in CVS to allow an @Roles annotation that will removed even this limitation. It sounds like the original question is a request for the @Roles stuff. Perhaps I'll apply that patch before releasing beta2. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3919322#3919322 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3919322 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642 _______________________________________________ JBoss-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jboss-user
