-
1. Re: MDB attempting to raise an event - No Application Context active
svadu May 26, 2008 2:08 AM (in response to akearns1)Looks similar to JBSEAM-2286
-
2. Re: MDB attempting to raise an event - No Application Context active
akearns1 May 26, 2008 3:16 AM (in response to akearns1)Thanks, but I looked at the other postings, I did not see anything that solved the problem.
I was able to get past the
No Application Context active
by:adding the following to components.xml
<component class="org.jboss.seam.remoting.messaging.SubscriptionRegistry" installed="true"> <property name="allowedTopics">myTopic</property> </component>
2) adding @name to the MDB
Now the code should be raising an event that is caught by another component.
There are no exceptions thrown.
-
3. Re: MDB attempting to raise an event - No Application Context active
akearns1 May 26, 2008 6:53 PM (in response to akearns1)I downloaded and tried my application with the latest 2.0.2.GA; I do not see a difference, I was using 2.1.0.A1
I am using jboss-4.2.2.GAI believe there is something incorrect with the state of my MDB. It acts like I instantiated another version of my seam app. Within my MDB I generate an event that is caught within an application scoped bean; that bean send another event to a page scoped bean. It works differently depended on where I initiate
the event from.From Web page - click a link - generate the event handled by application scoped bean
From MDB - onMessage - generate the event handled by the application scoped bean
In either case the application scoped bean genrates another event that is caught by a page scoped bean.
In first case I see the event caught by page scoped bean.
In second case I do not, it is caught by the application scoped but not the page scoped.The MDB bean, application and page scoped beans are in the same jar. I have a polling service that generates the JMS message, that is in a sar. These two files and the .war are in the .ear
What I am trying to do is get the data that is polled delivered to one or more users viewing that device.
Any help would be appreciated. Thanks.
-
4. Re: MDB attempting to raise an event - No Application Context active
pmuir May 29, 2008 4:55 PM (in response to akearns1)The PAGE scope isn't active during calls originated via an MDB.
-
5. Re: MDB attempting to raise an event - No Application Context active
akearns1 May 29, 2008 5:11 PM (in response to akearns1)I am trying to get an alert shown to all logged in users, is there a way that I can do this?
The alert is generated by the server and is not reaction to something the user did.
Thanks