|
1 |
| |
|
2 |
| |
|
3 |
| |
|
4 |
| |
|
5 |
| |
|
6 |
| |
|
7 |
| |
|
8 |
| |
|
9 |
| |
|
10 |
| |
|
11 |
| |
|
12 |
| |
|
13 |
| |
|
14 |
| |
|
15 |
| |
|
16 |
| |
|
17 |
| |
|
18 |
| |
|
19 |
| |
|
20 |
| |
|
21 |
| |
|
22 |
| |
|
23 |
| |
|
24 |
| |
|
25 |
| package org.objectweb.easybeans.tests.common.ejbs.mdb.containermanaged.basic; |
|
26 |
| |
|
27 |
| import javax.ejb.ActivationConfigProperty; |
|
28 |
| import javax.ejb.MessageDriven; |
|
29 |
| import javax.jms.Message; |
|
30 |
| import javax.jms.MessageListener; |
|
31 |
| |
|
32 |
| import org.objectweb.easybeans.tests.common.ejbs.entity.callbacklogger.CallbackType; |
|
33 |
| import org.objectweb.easybeans.tests.common.ejbs.stateless.containermanaged.callbacklogger.BaseInsertCallbackEvent; |
|
34 |
| import org.objectweb.easybeans.tests.common.jms.JMSManager; |
|
35 |
| |
|
36 |
| |
|
37 |
| |
|
38 |
| |
|
39 |
| |
|
40 |
| |
|
41 |
| |
|
42 |
| @MessageDriven(activationConfig = { |
|
43 |
| @ActivationConfigProperty(propertyName = "destination", propertyValue = JMSManager.DEFAULT_QUEUE), |
|
44 |
| @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"), |
|
45 |
| @ActivationConfigProperty(propertyName = "messageSelector", propertyValue = |
|
46 |
| "TYPE = 'org.objectweb.easybeans.tests.common.ejbs.mdb.containermanaged.basic.MDBQueue00'")}) |
|
47 |
| public class MDBQueue00 extends BaseInsertCallbackEvent implements MessageListener{ |
|
48 |
| |
|
49 |
| |
|
50 |
| |
|
51 |
| |
|
52 |
| public static final String MESSAGE_TYPE = "org.objectweb.easybeans.tests.common.ejbs.mdb.containermanaged.basic.MDBQueue00"; |
|
53 |
| |
|
54 |
| |
|
55 |
| |
|
56 |
| |
|
57 |
| |
|
58 |
1
| public void onMessage(final Message message) {
|
|
59 |
1
| super.log(MDBQueue00.class, CallbackType.ON_MESSAGE, MDBQueue00.class);
|
|
60 |
| } |
|
61 |
| |
|
62 |
| } |