schedule « ejb « Java Enterprise Q&A

Home
Java Enterprise Q&A
1.activemq
2.Ant
3.aspectj
4.axis
5.cxf
6.deploy
7.Development
8.ear
9.eclipse
10.ehcache
11.ejb
12.flex
13.grails
14.jax
15.jaxb
16.JBoss
17.jbpm
18.jdo
19.jersey
20.jetty
21.jms
22.jmx
23.jndi
24.junit
25.ldap
26.Library
27.log4j
28.netbeans
29.osgi
30.playframework
31.portlet
32.quartz
33.rabbitmq
34.restful
35.security
36.Session
37.soap
38.tapestry
39.Web Service
40.weblogic
41.websphere
42.wicket
43.workflow
44.wsdl
Java Enterprise Q&A » ejb » schedule 

1. EJB 3.1 timer rollback exception    stackoverflow.com

I've been getting a load of rollbackexception when calling some SELECT JPQL or namedqueries from a Singleton. The Singleton as one method with the @Schedule annotation calling the some others db query ...

2. Can the EJB 3.1 @Schedule be configured outside of the application code?    stackoverflow.com

How can I configure a schedule intervals: @Schedule(persistent=true, minute="*", second="*/5", hour="*") outside of the application code?

  1. How can I configure it in ejb-jar.xml?
  2. Can I configure it outside the application (kind of properties file)?

3. Using @RunAs in my EJB Schedulers    stackoverflow.com

I have many EJBs with my business methods. These methods use @RolesAllowed annotation to check if user can execute this method. So I have an EJB Scheduler that calls these EJB methods. ...

4. @Schedule methods in EJBs aren't executing after Exceptions    stackoverflow.com

I've got a method in a Java EE6 Singleton Session Bean which is called by a @Schedule(...) timer every 30 seconds. This works as expected until an exception is thrown and ...

5. @Schedule annotation in Java EE    stackoverflow.com

I use the following annotation to call a stateless session bean once a 5 minutes:

@Schedule(second = "0", minute = "0/5", hour = "*")
I works as expected, except it stops itself after ...

6. Have an EJB schedule tasks with "crontab syntax"    stackoverflow.com

I am trying to figure out the possibilities I have to solve the following problem. a) I want to have a database table that uses "crontab syntax" to schedule tasks, the structure ...

7. Why is Jboss passing null Timer object to method annotated with @Timeout?    stackoverflow.com

I have a stateless bean which manages my timer service:

@Stateless
@Depends("jboss.ha:service=HASingletonDeployer,type=Barrier")
public class TimerManagerBean implements ITimerManagerLocal {

private static final Logger log = Logger.getLogger(TimerManagerBean.class);
private @Resource
SessionContext ctx;

private @EJB ISomeEjbLocal someEjb;

public void scheduleTimer(long initialDuration, long intervalDuration, ...

8. EJB stateless - Private members initialisation    stackoverflow.com

I'm new to EJB and I'm facing my first problem. I'm trying to use an @Schedule method contained in a Stateless EJB. I'd like this method to use a private member ...

9. How to I make this Timer Service Class handle the "change in scheduled time"?    stackoverflow.com

Sample Code:

@Singleton @Startup public class EBlastScheduler {
@Resource
TimerService timerService;
EBlastScheduler what = new EBlastScheduler();
@PostConstruct
public void initialize(){
   if (timerService.getTimers() != null) {
     ...

10. Can I be sure that a SLSB which created a Timer will be handling its timeout (Java EE 5)?    stackoverflow.com

In Java EE 5, when using timers and the timer service, who handles the timeout invocation?
Can I be sure that the stateless session bean which created the timer wil be the ...

java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.