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?
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
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
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
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
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
___
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
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