Skip to main content

Error Redeploying EJB Timer on Glassfish 3.1.1

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
joseguerra
Offline
Joined: 2011-01-14

Hi,

I have a sort of weird error when I try to redeploy an EJB Timer. I mean, I can deploy the timer application with no problem, and it works, but when I attempt to redeploy the EJB, Glassfish comes out with the error and I can't redeploy the application and thus I have to undeploy the ear and deploy the EJB again. Does anyone know about a similar problem?

Thanks

@Stateless
public class Timer1 {
</pre>
<pre>    /**

     * Default constructor.
     */
    public Timer1() {
        // TODO Auto-generated constructor stub
    }

@SuppressWarnings("unused")
@Schedule(second="*/10", minute="*", hour="8-23", dayOfWeek="Mon-Fri",
      dayOfMonth="*", month="*", year="*", info="MyTimer")
    private void scheduledTimeout(final Timer t) {
        System.out.println("@Schedule called at: " + new java.util.Date());
    }
}

Regards

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
joseguerra
Offline
Joined: 2011-01-14

I found out that keeping the session between redeploys it works.