[jboss-user] [JBoss Seam] - Re: EntityManager not injected in onMessage method

2008-02-17 Thread [EMAIL PROTECTED]
You need to apply the Seam interceptors to your invocation properly - this would normally be done by making your Seam component an MDB. Otherwise, you need to make JMS call a proxy or something and set up Seam contexts and interception. View the original post : http://www.jboss.com/index.html?

[jboss-user] [JBoss Seam] - Re: EntityManager not injected in onMessage method

2008-02-13 Thread rmcalderero
As a workaround, we have brought our code reading from the queue out of the onMessage method, an put it inside another asynchronous method periodically executed (quartz). And now the entity manager is correctly being injected and we can merge our object. @Asynchronous | public v

[jboss-user] [JBoss Seam] - Re: EntityManager not injected in onMessage method

2008-02-11 Thread rmcalderero
I tried adding manually the dependency on the entity manager in the listener class, but got the same exception... In component: @Name("servicioResultados") | @Scope(APPLICATION) | @Startup(depends={"em"}) | public class ServicioResultados implements MessageListener { | . The exceptio

[jboss-user] [JBoss Seam] - Re: EntityManager not injected in onMessage method

2008-02-10 Thread gsegura
Maybe this could this be associated with the lifecycle of the MDB being dependent on seam: http://www.jboss.org/?module=bb&op=viewtopic&t=100946 I'll appreciate if you post back if this is the case, because I'm also about to implement a configuration similiar to yours. View the original post

[jboss-user] [JBoss Seam] - Re: EntityManager not injected in onMessage method

2008-02-10 Thread rmcalderero
We have not used any datasource.xml so far. Below the persistence.xml | http://java.sun.com/xml/ns/persistence"; | xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; | xsi:schemaLocation="http://java.sun.com/xml/ns/persistence http://java.sun.com/xml/ns/persi

[jboss-user] [JBoss Seam] - Re: EntityManager not injected in onMessage method

2008-02-10 Thread nickarls
How does your persistence.xml and datasource xml look like? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128172#4128172 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4128172 ___

[jboss-user] [JBoss Seam] - Re: EntityManager not injected in onMessage method

2008-02-10 Thread rmcalderero
No. The configuration we used is copied from the jpa example of the booking application. Something like this: Components.xml | . | | | | | | .. And as i said, this is been working correctly so far for our application. View the original p

[jboss-user] [JBoss Seam] - Re: EntityManager not injected in onMessage method

2008-02-09 Thread monkeyden
Have you configured it in components.xml? Does the "persistence-unit-jndi-name" in components.xml match "jboss.entity.manager.factory.jndi.name" in persistence.xml? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4128101#4128101 Reply to the post : http://w