users@glassfish.java.net

ejb3 Timer Serializable

From: <glassfish_at_javadesktop.org>
Date: Fri, 07 Aug 2009 09:10:44 PDT

In my Stateless bean, I have a method marked with @Timeout where I perform activities based on the timer expired.

 @Timeout
    public void onExpiration(Timer timer)
   {
}

I see this in the logs and want to know if there is any way to avoid it.

<The Remote interface method: 'public abstract void com.loyalty.scheduler.ejb.SchedulerIntf.onExpiration(javax.ejb.Timer)' in EJB 'SchedulerEJB' contains a parameter of type: 'javax.ejb.Timer' which is not Serializable. Though the EJB 'SchedulerEJB' has call-by-reference set to false, this parameter is not Serializable and hence will be passed by reference. A parameter can be passed using call-by-value only if the parameter type is Serializable.>

thanks
shyamala.
[Message sent by forum member 'shyamals' (shyamals)]

http://forums.java.net/jive/thread.jspa?messageID=359455