users@glassfish.java.net

Re: EJB Timer on cluster

From: Marina Vatkina <Marina.Vatkina_at_Sun.COM>
Date: Fri, 11 Dec 2009 17:53:40 -0800

Check that your datasource is enabled in the cluster.

-marina

glassfish_at_javadesktop.org wrote:
> Hello,
>
> I'm trying to use the timer service in a clustered application.
> I've used the following article to configure the timer service:
> http://programmaremobile.blogspot.com/2009/02/clustering-and-ejb-timer-eng.html
>
> I've used a postgresql database and created a XADataSource for the connection pool (org.postgresql.xa.PGXADataSource).
> Then I configured the ejb timer in the cluster config to use that datasource and restarted the node-agent and the domain.
>
> Then I start the timer using:
>
> [i]@Resource
> private SessionContext context;
>
> private void startNextTimer()
> {
> context.getTimerService().createTimer(10000, "NotificationTimer");
> }[/i]
>
> But then I got following exception:
> javax.ejb.EJBException: EJB Timer service not available
>
> But I can't find any log entry that says something about why the service is not available
> [Message sent by forum member 'dh2k7' ]
>
> http://forums.java.net/jive/thread.jspa?messageID=376105
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_glassfish.dev.java.net
> For additional commands, e-mail: users-help_at_glassfish.dev.java.net
>
>