~ubuntu-branches/ubuntu/quantal/netbeans/quantal

« back to all changes in this revision

Viewing changes to j2ee/ejbcore/src/org/netbeans/modules/j2ee/ejbcore/resources/templates/EJB30MessageDrivenQueueEjbClass.template

  • Committer: Bazaar Package Importer
  • Author(s): Marek Slama
  • Date: 2008-01-29 14:11:22 UTC
  • Revision ID: james.westby@ubuntu.com-20080129141122-fnzjbo11ntghxfu7
Tags: upstream-6.0.1
ImportĀ upstreamĀ versionĀ 6.0.1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
<#assign licenseFirst = "/*">
 
2
<#assign licensePrefix = " * ">
 
3
<#assign licenseLast = " */">
 
4
<#include "../../Licenses/license-${project.license}.txt">
 
5
 
 
6
package ${package};
 
7
 
 
8
import javax.ejb.ActivationConfigProperty;
 
9
import javax.ejb.MessageDriven;
 
10
import javax.jms.Message;
 
11
import javax.jms.MessageListener;
 
12
 
 
13
/**
 
14
 *
 
15
 * @author ${user}
 
16
 */
 
17
@MessageDriven(mappedName = "${messageDestinationName}", activationConfig =  {
 
18
        @ActivationConfigProperty(propertyName = "acknowledgeMode", propertyValue = "Auto-acknowledge"),
 
19
        @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue")
 
20
    })
 
21
public class ${name} implements MessageListener {
 
22
    
 
23
    public ${name}() {
 
24
    }
 
25
 
 
26
    public void onMessage(Message message) {
 
27
    }
 
28
    
 
29
}