Parent Directory | Revision Log
Enable EJB code - and update deployment descriptor to JEE6 / servlet 3.0
1 | package dk.thoerup.asyncsamples; |
2 | |
3 | import javax.ejb.Asynchronous; |
4 | import javax.ejb.LocalBean; |
5 | import javax.ejb.Stateless; |
6 | |
7 | /** |
8 | * Session Bean implementation class AsyncEjb - please not that @Asynchronous requires the full jeee profile (it's not included in web profile) |
9 | */ |
10 | |
11 | @LocalBean |
12 | @Stateless(name="Example", mappedName="ejb/SimpleBeanJNDI") |
13 | public class AsyncEjb { |
14 | |
15 | /** |
16 | * Default constructor. |
17 | */ |
18 | public AsyncEjb() { |
19 | // TODO Auto-generated constructor stub |
20 | } |
21 | |
22 | @Asynchronous |
23 | public void doWork() { |
24 | DummyWork.doWork(); |
25 | } |
26 | |
27 | } |
ViewVC Help | |
Powered by ViewVC 1.1.20 |