2 Replies Latest reply on Apr 2, 2008 3:03 PM by Gunnar Meyer

    Using two beans in one conversation context

    Gunnar Meyer Newbie

      Hi everybody,

      I'm currently developing a wab application using Seam 1.2PATCH1 and JBoss AS 4.0.5.

      Because I want to use some of the code again at a later point, I want to put parts of it in an external Java Bean. Currently I'm trying to use two Conversation scoped Beans, UserDetailsAction and ContractManagementAction.
      UserDetailsAction is supposed to use some of the methods in ContractManagementAction. Unfortunatly I cannot figure out how I can get an instance of ContractManagementAction in a way that I can use the current PersistanceContext and context variables. If I just instantiate it with new ContractManagementAction() it will throw an NullPointerException as soon as I want to use the EntityManager.

      Can anyone tell me how to accomplish this?