[JBoss Seam] - Asynchronous call before App Startup
by damatrix
Hi,
I'm using JBoss Seam 1.2.1.GA. I've been trying to start an asynchronous process that send out notifications of an event in emaisl immediately the application starts up. This event may have already been configured during a previous run of the application.
The asyncrhronuous method also needs to have access to an EntityManager to read the details of the event and to a facelet-configured email template.
The problem is i don't know how to automatically invoke the asynchronous method before the first user even logs in and what scope to outject the list of recepients and data so that the email template can send it.
I've tried @Startup and @Scope(APPLICATION) but the contexts are not configured at that stage so i get a null pointer.
Any ideas?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067426#4067426
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067426
18Â years, 9Â months
[JBoss Messaging] - Detected failure on control connection
by bob_walker99
Can someone offer an explanation of what exactly is happening when I get this error:
org.jboss.remoting.transport.bisocket.BisocketServerInvoker$ControlMonitorTimerTask@20dbb1: detected failure on control connection Thread[control: S
ocket[addr=/127.0.0.1,port=3160,localport=2999],5,main]: requesting new control connection
I'm seeing it a lot, but the only references I can find on the forums are these:
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4055249#4055249
http://jira.jboss.org/jira/browse/JBREM-725
These don't seem to be the same case - I'm not seeing the NPE, and it isn't a server/client restart issue for me.
I'm using AS 4.2.0 with JBM 1.4.0 CR1, (but it also happened in 1.3.0 GA and I'm currently running my tests on an XP box with JDK 1.6.0_02. I replaced jboss remoting with the 2.2.0 SP1 version, to no avail.
I can't recreate it consistently in a test case (but it does happen intermittently in the tests I've written) but it happens a lot in (what would be) my production code (if it worked..). If it is something I am doing incorrectly, I need to understand what this is, but I'm at a loss where to look.
Help?
Sorry if this belongs on the remoting forums, let me know and I'll repost if necessary.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4067421#4067421
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4067421
18Â years, 9Â months