[jboss-user] [JBoss Seam] - Injecting EJB3 into a POJO

jarkko@jab.fi do-not-reply at jboss.com
Thu Dec 14 21:08:36 EST 2006


Hello,
 I don't quite recall this stuff correctly but is it possible to inject (either @In or @EJB) SFSB into a plain java class? Or is there just something wrong with the syntax?



  | @Name("dragDropBean")
  | @Scope(value = ScopeType.SESSION)
  | public class DragDropBean implements Renderable {
  | 
  | 	@In
  | 	KohdeEditorBean kohdeEditor;
  | 
  |         // or 
  |         @EJB
  |         KohdeEditorBean kohdeEditor;
  | 
  | }
  | 
  | @Name("kohdeEditor")
  | @Stateful
  | @Scope(value = ScopeType.SESSION)
  | public class KohdeEditorBean extends StatefullBaseAction implements KohdeEditor {
  | 
  | }
  | 



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

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



More information about the jboss-user mailing list