alvinalexander.com | career | drupal | java | mac | mysql | perl | scala | uml | unix  

Java EE 6 example source code file (ejb-jar.xml)

This example Java EE 6 source code file (ejb-jar.xml) is included in the DevDaily.com "Java Source Code Warehouse" project. The intent of this project is to help you "Learn Java by Example" TM.

Java - Java EE 6 tags/keywords

all, copyright, inc, microsystems, microsystems, sun, sun, use, use, utf-8, utf-8

The Java EE 6 ejb-jar.xml source code

<?xml version="1.0" encoding="UTF-8"?>

<!--
 Copyright 2004-2009 Sun Microsystems, Inc.  All rights reserved.
 Use is subject to license terms.
-->
<ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"  xsi:schemaLocation="http://java.sun.com/xml/ns/javaee  http://java.sun.com/xml/ns/javaee/ejb-jar_3_1.xsd" version="3.1">
  <display-name>JavaMailMDB
  <enterprise-beans>
    <message-driven>
      <display-name>JavaMailMDB
      <ejb-name>JavaMailMDB
      <ejb-class>samples.connectors.mailconnector.ejb.mdb.JavaMailMessageBean
      <messaging-type>samples.connectors.mailconnector.api.JavaMailMessageListener
      <transaction-type>Container
      <activation-config>
        <activation-config-property>
	   <activation-config-property-name>serverName
	   <activation-config-property-value>localhost
        </activation-config-property>
        <activation-config-property>
           <activation-config-property-name>userName
	   <activation-config-property-value>joe
        </activation-config-property>
        <activation-config-property>
	   <activation-config-property-name>password
	   <activation-config-property-value>joe
        </activation-config-property>
        <activation-config-property>
          <activation-config-property-name>protocol
	  <activation-config-property-value>imap
        </activation-config-property>
        <activation-config-property>
	  <activation-config-property-name>folderName
	  <activation-config-property-value>INBOX
        </activation-config-property>
        <activation-config-property>
	  <activation-config-property-name>interval
	  <activation-config-property-value>30
        </activation-config-property>
      </activation-config>
      <resource-ref>
        <res-ref-name>TheMailSession
        <res-type>javax.mail.Session
        <res-auth>Container
        <res-sharing-scope>Shareable
      </resource-ref>
    </message-driven>   
  </enterprise-beans>
  <assembly-descriptor>
    <container-transaction>
      <method>
        <ejb-name>JavaMailMDB
        <method-name>onMessage
        <method-params>
          <method-param>javax.mail.Message
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
  </assembly-descriptor>
</ejb-jar>

Other Java EE 6 examples (source code examples)

Here is a short list of links related to this Java EE 6 ejb-jar.xml source code file:

... this post is sponsored by my books ...

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2021 Alvin Alexander, alvinalexander.com
All Rights Reserved.

A percentage of advertising revenue from
pages under the /java/jwarehouse URI on this website is
paid back to open source projects.