You can find the full source code for this website in the Seam package in the directory /examples/wiki. It is licensed under the LGPL.
| Online: | 27 Members of 4063 |
| Forum: Seam Users |
09. Jul 2008, 00:13 CET | Link |
Hi,
I'm working with Weblogic 10 with Seam 2.0.2 GA and I need to start a job after Seam startup. I used the annotation @Observer("org.jboss.seam.postInitialization") on a method that calls another method that has the annotation @Asynchronous. It works perfecty on JBoss 4.2.1 GA.
I tried the three options that Seam has:
When I start Weblogic the method with the @Observer("org.jboss.seam.postInitialization") annotation is executed, but the one with @Asynchronous is never executed.
I know that used to have a problem in using Weblogic with Seam due to varargs. And the problem was specifically involving asynchronous calls. I thought that it was solved on Seam 2.0.2 GA.
Does any one have any idea how to solve this problem?
Fábio.
are you actually using EJB3 timer or quartz timer in your codebase or not?
I'm using Quartz.
I tried all 3 options that Seam has: ScheduledThreadPoolExecutor (default), EJB timer service and Quartz.
I added the proper lines on components.xml for each case. My first idea was to use Quartz, but as it didn't work so I tried the others.
with JBoss 4.2.1.GA, this is how I'm using EJB timer/quartz:
<event type="org.jboss.seam.postInitialization"> <action execute="#{controller.scheduleTimer}"/> </event> <mail:mail-session host="localhost" port="2525" username="test" password="test" /> <!-- Install the QuartzDispatcher --> <async:quartz-dispatcher/> <!-- Install the EJB timer service --> <!-- <async:timer-service-dispatcher /> -->Do you get any errors or warnings in the various weblogic logs? I would expect something if Quartz is just not running or call is not being made? Especially if the same works fine in JBoss. You may need to route system.out to the logs from the weblogic admin console.
Could you show some more of your config, and how you are using it?
-Jay
- Mike Rowe - Dirty Jobs
Blog: http://in.relation.to/Bloggers/Jay