Embedded Glassfish - EJB 3.1 - @Schedule

897 Views Asked by At

I am new to Java EE 6 and working on getting a number of demo applications running finally.

I have an application scoped bean that has a @Schedule annotation on it that should in theory trigger that method every minute. However, that method doesn't appear to ever be invoked. It simply writes to the logs that it was called.

Can I use EJB3.1 on embedded glassfish? Do I need to do anything special to make it work?

Walter

1

There are 1 best solutions below

1
On BEST ANSWER

(...) However, that method doesn't appear to ever be invoked. It simply writes to the logs that it was called.

Hmm... What?

Can I use EJB3.1 on embedded glassfish? Do I need to do anything special to make it work?

Embedded GlassFish is like a full GlassFish, there are no restrictions. So you can use EJB 3.1 with the full Java EE profile imeplementation and you can use EJB 3.1 Lite with the Web Profile implementation. I'm not sure @Schedule is part of EJB 3.1 Lite tough.