[jboss-user] [JBoss/Spring Integration] - Re: Chicken-Egg with PersistenceAnnotationBeanPostProcessor

Saish do-not-reply at jboss.com
Tue Jul 15 14:01:34 EDT 2008


Realized I was somewhat think in my snippit, "the WAR stopped working properly".  What happened there was that beanRefContext.xml could no longer locate the ApplicationContext mounted by the Spring Deployer.  (JNDI javax.naming.NamingException).  So, I attempted to add a dependency within the jboss-web.deployer (to have a dependency on the Spring deployer), and at that point, the WAR would not load.  There were no errors, but localhost:8080 never returned anything.

So, in an ideal world:

1.  Load EJB JPA entities managed by JBoss and bind EntityManagerFactory to JNDI.

2.  Load the EAR ApplicationContext and bind to JNDI via Spring JBoss Deployer

3.  Finally load the WAR so that context.ear in beanRefContext.xml finds the JNDI ApplicationContext.

Saish

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

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



More information about the jboss-user mailing list