<?xml version="1.0"?>
    <!--
        Licensed to the Apache Software Foundation (ASF) under one or
        more contributor license agreements. See the NOTICE file
        distributed with this work for additional information regarding
        copyright ownership. The ASF licenses this file to you under the
        Apache License, Version 2.0 (the "License"); you may not use
        this file except in compliance with the License. You may obtain
        a copy of the License at
        http://www.apache.org/licenses/LICENSE-2.0 Unless required by
        applicable law or agreed to in writing, software distributed
        under the License is distributed on an "AS IS" BASIS, WITHOUT
        WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
        See the License for the specific language governing permissions
        and limitations under the License.
    -->
<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_0.xsd"
  version="3.0">

  <enterprise-beans>
    <session>
      <ejb-name>DispatchedGreeterBean</ejb-name>
      <home>demo.ejb.GreeterHome</home>
      <remote>demo.ejb.GreeterRemote</remote>
      <local-home>demo.ejb.GreeterLocalHome</local-home>
      <local>demo.ejb.GreeterLocal</local>
      <ejb-class>demo.ejb.GreeterBean</ejb-class>
      <session-type>Stateless</session-type>
      <transaction-type>Container</transaction-type>
    </session>

    <message-driven>
      <ejb-name>GreeterEndpointActivator</ejb-name>
      <ejb-class>org.apache.cxf.jca.inbound.DispatchMDBMessageListenerImpl</ejb-class>
      <messaging-type>org.apache.cxf.jca.inbound.DispatchMDBMessageListener</messaging-type>
      <transaction-type>Bean</transaction-type>

      <activation-config>
        <!-- display name-->
        <activation-config-property>
          <activation-config-property-name>
            DisplayName
          </activation-config-property-name>
          <activation-config-property-value>
            DispatchedGreeterEndpoint
          </activation-config-property-value>
        </activation-config-property>
        <!-- service endpoint interface -->
        <activation-config-property>
          <activation-config-property-name>
            serviceInterfaceClass
          </activation-config-property-name>
          <activation-config-property-value>
            org.apache.hello_world_soap_http.Greeter
          </activation-config-property-value>
        </activation-config-property>
        <!-- address -->
        <activation-config-property>
          <activation-config-property-name>
            address
          </activation-config-property-name>
          <activation-config-property-value>
            http://localhost:9999/GreeterBean
          </activation-config-property-value>
        </activation-config-property>
        <!-- targetBeanJndiName -->
        <activation-config-property>
          <activation-config-property-name>
            targetBeanJndiName
          </activation-config-property-name>
          <activation-config-property-value>
            java:comp/env/DispatchedGreeterLocalHome
          </activation-config-property-value>
        </activation-config-property>
      </activation-config>

      <ejb-local-ref>
        <ejb-ref-name>DispatchedGreeterLocalHome</ejb-ref-name>
        <ejb-ref-type>Session</ejb-ref-type>
        <local-home>demo.ejb.GreeterLocalHome</local-home>
        <local>demo.ejb.GreeterLocal</local>
        <ejb-link>DispatchedGreeterBean</ejb-link>
      </ejb-local-ref>
    </message-driven>

  </enterprise-beans>
</ejb-jar>
