0 Replies Latest reply on Aug 18, 2008 11:10 PM by Miloslav Vlach

    PersistenceManager is null

    Miloslav Vlach Novice
      Hi,

      I have a POJO component named WorkflowProcessor. This bean is initialized in components.xml and when this component is created I not get entityManager instance. Know somebody why ?

      In components.xml
      `
      <component name="workflowProcessor" class="WorkflowProcessorImpl">
              <property name="workflowComponentNames">
                      <value>simpleWorkflow</value>
                      <value>fullWorkflow</value>
              </property>
      </component>
      `

      In  WorkflowProcessorImpl.java

      `
              @In
              EntityManager entityManager;
      `

      I have to say that in other class previous code works good.

      I think there is problem with hot deploy, because if I have this class in /action (hot deplyable directory) the classloader couldn't found this class. Now, I have moved this class to the /model directory.

      Know somebody where is problem ?

      Thanks Mila