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

Apache CXF example source code file (ejb-jar.xml)

This example Apache CXF 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 - Apache CXF tags/keywords

apache, apache, asf, asf, dispatchedgreeterendpoint, displayname, is, license, license, of, see, see, version, you

The Apache CXF ejb-jar.xml source code

<?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
      <home>demo.ejb.GreeterHome
      <remote>demo.ejb.GreeterRemote
      <local-home>demo.ejb.GreeterLocalHome
      <local>demo.ejb.GreeterLocal
      <ejb-class>demo.ejb.GreeterBean
      <session-type>Stateless
      <transaction-type>Container
    </session>

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

      <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-type>Session
        <local-home>demo.ejb.GreeterLocalHome
        <local>demo.ejb.GreeterLocal
        <ejb-link>DispatchedGreeterBean
      </ejb-local-ref>
    </message-driven>

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

Other Apache CXF examples (source code examples)

Here is a short list of links related to this Apache CXF ejb-jar.xml source code file:

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

#1 New Release!

FP Best Seller

 

new blog posts

 

Copyright 1998-2024 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.