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

Glassfish example source code file (ejb-jar.xml)

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

cddl, copyright, expression, gpl, gpl, league, license, license, player, player, string, team, team, version

The Glassfish ejb-jar.xml source code

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
<!--

    DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS HEADER.

    Copyright (c) 2010 Oracle and/or its affiliates. All rights reserved.

    The contents of this file are subject to the terms of either the GNU
    General Public License Version 2 only ("GPL") or the Common Development
    and Distribution License("CDDL") (collectively, the "License").  You
    may not use this file except in compliance with the License.  You can
    obtain a copy of the License at
    https://glassfish.dev.java.net/public/CDDL+GPL_1_1.html
    or packager/legal/LICENSE.txt.  See the License for the specific
    language governing permissions and limitations under the License.

    When distributing the software, include this License Header Notice in each
    file and include the License file at packager/legal/LICENSE.txt.

    GPL Classpath Exception:
    Oracle designates this particular file as subject to the "Classpath"
    exception as provided by Oracle in the GPL Version 2 section of the License
    file that accompanied this code.

    Modifications:
    If applicable, add the following below the License Header, with the fields
    enclosed by brackets [] replaced by your own identifying information:
    "Portions Copyright [year] [name of copyright owner]"

    Contributor(s):
    If you wish your version of this file to be governed by only the CDDL or
    only the GPL Version 2, indicate your decision by adding "[Contributor]
    elects to include this software in this distribution under the [CDDL or GPL
    Version 2] license."  If you don't indicate a single choice of license, a
    recipient has the option to distribute your version of this file under
    either the CDDL, the GPL Version 2 or to extend the choice of license to
    its licensees as provided above.  However, if you add GPL Version 2 code
    and therefore, elected the GPL Version 2 license, then the option applies
    only if the new code is made subject to such option by the copyright
    holder.

-->

<ejb-jar>
  <display-name>RosterEJBJAR
  <enterprise-beans>
    <session>
      <display-name>RosterEJB
      <ejb-name>RosterEJB
      <local-home>roster.RosterHome
      <local>roster.Roster
      <ejb-class>roster.RosterBean
      <session-type>Stateful
      <transaction-type>Container
      <ejb-local-ref>
        <ejb-ref-name>ejb/SimpleLeague
        <ejb-ref-type>Entity
        <local-home>team.LocalLeagueHome
        <local>team.LocalLeague
        <ejb-link>LeagueEJB
      </ejb-local-ref>
      <ejb-local-ref>
        <ejb-ref-name>ejb/SimpleTeam
        <ejb-ref-type>Entity
        <local-home>team.LocalTeamHome
        <local>team.LocalTeam
        <ejb-link>TeamEJB
      </ejb-local-ref>
      <ejb-local-ref>
        <ejb-ref-name>ejb/SimplePlayer
        <ejb-ref-type>Entity
        <local-home>team.LocalPlayerHome
        <local>team.LocalPlayer
        <ejb-link>PlayerEJB
      </ejb-local-ref>
    </session>
    <entity>
      <display-name>LeagueEJB
      <ejb-name>LeagueEJB
      <local-home>team.LocalLeagueHome
      <local>team.LocalLeague
      <ejb-class>team.LeagueBean
      <persistence-type>Container
      <prim-key-class>java.lang.String
      <reentrant>False
      <cmp-version>2.x
      <abstract-schema-name>League
      <cmp-field>
        <description>no description
        <field-name>leagueId
      </cmp-field>
      <cmp-field>
        <description>no description
        <field-name>name
      </cmp-field>
      <cmp-field>
        <description>no description
        <field-name>sport
      </cmp-field>
      <primkey-field>leagueId
      <security-identity>
        <description>
        <use-caller-identity>
      </security-identity>
      <query>
        <description>
        <query-method>
          <method-name>findAll
          <method-params />
        </query-method>
        <ejb-ql>select object(l) from League l
      </query>
      <query>
        <description>
        <query-method>
          <method-name>findByName
          <method-params>
            <method-param>java.lang.String
          </method-params>
        </query-method>
        <ejb-ql>select object(l) from League l where l.name = ?1
      </query>
      <query>
        <description>Selector returning SET
        <query-method>
          <method-name>ejbSelectTeamsCity
          <method-params>
            <method-param>team.LocalLeague
          </method-params>
        </query-method>
        <ejb-ql>select distinct t.city from Team t where t.league = ?1
      </query>
      <query>
        <description>Selector single object LocalInterface
        <query-method>
          <method-name>ejbSelectTeamByCity
          <method-params>
            <method-param>java.lang.String
          </method-params>
        </query-method>
        <result-type-mapping>Local
        <ejb-ql>select distinct Object(t) from League l, in(l.teams) as t where t.city = ?1
      </query>
      <query>
        <description>Selector single object String
        <query-method>
          <method-name>ejbSelectTeamsNameByCity
          <method-params>
            <method-param>java.lang.String
          </method-params>
        </query-method>
        <ejb-ql>select distinct t.name from League l, in(l.teams) as t where t.city = ?1
      </query>
      <query>
        <description>Selector returning Set using multiple collection declarations
        <query-method>
          <method-name>ejbSelectPlayersByLeague
          <method-params>
            <method-param>team.LocalLeague
          </method-params>
        </query-method>
        <result-type-mapping>Local
        <ejb-ql>select Object(p) from League l, in(l.teams) as t, in(t.players) p where l = ?1
      </query>
    </entity>
    <entity>
      <display-name>TeamEJB
      <ejb-name>TeamEJB
      <local-home>team.LocalTeamHome
      <local>team.LocalTeam
      <ejb-class>team.TeamBean
      <persistence-type>Container
      <prim-key-class>java.lang.String
      <reentrant>False
      <cmp-version>2.x
      <abstract-schema-name>Team
      <cmp-field>
        <description>no description
        <field-name>name
      </cmp-field>
      <cmp-field>
        <description>no description
        <field-name>teamId
      </cmp-field>
      <cmp-field>
        <description>no description
        <field-name>city
      </cmp-field>
      <primkey-field>teamId
      <security-identity>
        <description>
        <use-caller-identity>
      </security-identity>
      <query>
        <description>
        <query-method>
          <method-name>findAll
          <method-params />
        </query-method>
        <ejb-ql>select object(t) from Team t
      </query>
      <query>
        <description>
        <query-method>
          <method-name>findByPlayerAndLeague
          <method-params>
            <method-param>team.LocalPlayer
            <method-param>team.LocalLeague
          </method-params>
        </query-method>
        <ejb-ql>select object(t) from Team t, in(t.players) as p where p = ?1 and t.league = ?2
      </query>
      <query>
        <description>Selector single object int
        <query-method>
          <method-name>ejbSelectSalaryOfPlayerInTeam
          <method-params>
            <method-param>team.LocalTeam
            <method-param>java.lang.String
          </method-params>
        </query-method>
        <ejb-ql>select p.salary from Team t, in(t.players) as p where t = ?1 and p.name = ?2
      </query>
      <query>
        <description>Selector single object String with CONCAT
        <query-method>
          <method-name>ejbSelectByNameWithCONCAT
          <method-params>
            <method-param>java.lang.String
            <method-param>java.lang.String
          </method-params>
        </query-method>
        <ejb-ql>select t.name from Team t where t.name = CONCAT(?1, ?2) 
      </query>
      <query>
        <description>Selector single object String with SUBSTRING
        <query-method>
          <method-name>ejbSelectByNameSubstring
          <method-params>
            <method-param>java.lang.String
          </method-params>
        </query-method>
        <ejb-ql>select t.name from Team t where t.name = SUBSTRING(?1, 5, 5)
      </query>
      <query>
        <description>Selector single object String with LOCATE
        <query-method>
          <method-name>ejbSelectNameLocate
          <method-params>
            <method-param>java.lang.String
          </method-params>
        </query-method>
        <ejb-ql>select distinct t.name from Team t where LOCATE(?1, t.name) > 0 AND LOCATE(?1, t.name) < LENGTH(t.name)
      </query>      
    </entity>
    <entity>
      <display-name>PlayerEJB
      <ejb-name>PlayerEJB
      <local-home>team.LocalPlayerHome
      <local>team.LocalPlayer
      <ejb-class>team.PlayerBean
      <persistence-type>Container
      <prim-key-class>java.lang.String
      <reentrant>False
      <cmp-version>2.x
      <abstract-schema-name>Player
      <cmp-field>
        <description>no description
        <field-name>position
      </cmp-field>
      <cmp-field>
        <description>no description
        <field-name>playerId
      </cmp-field>
      <cmp-field>
        <description>no description
        <field-name>name
      </cmp-field>
      <cmp-field>
        <description>no description
        <field-name>salary
      </cmp-field>
      <primkey-field>playerId
      <security-identity>
        <description>
        <use-caller-identity>
      </security-identity>
      <query>
        <description>
        <query-method>
          <method-name>findNotOnTeam
          <method-params />
        </query-method>
        <ejb-ql>select object(p) from Player p 
where p.teams is empty</ejb-ql>
      </query>
      <query>
        <description>
        <query-method>
          <method-name>findAll
          <method-params />
        </query-method>
        <ejb-ql>select object(p) from Player p
      </query>
      <query>
        <description>
        <query-method>
          <method-name>findBySport
          <method-params>
            <method-param>java.lang.String
          </method-params>
        </query-method>
        <ejb-ql>select distinct object(p) from Player p,
in (p.teams) as t
where t.league.sport = ?1</ejb-ql>
      </query>
      <query>
        <description>
        <query-method>
          <method-name>ejbSelectSports
          <method-params>
            <method-param>team.LocalPlayer
          </method-params>
        </query-method>
        <ejb-ql>select distinct t.league.sport
from Player p, in (p.teams) as t
where p = ?1</ejb-ql>
      </query>
      <query>
        <description>
        <query-method>
          <method-name>findBySalaryRange
          <method-params>
            <method-param>double
            <method-param>double
          </method-params>
        </query-method>
        <ejb-ql>select distinct object(p) from Player p
where p.salary between ?1 and ?2</ejb-ql>
      </query>
      <query>
        <description>
        <query-method>
          <method-name>findByHigherSalary
          <method-params>
            <method-param>java.lang.String
          </method-params>
        </query-method>
        <ejb-ql>select distinct object(p1)
from Player p1, Player p2
where p1.salary > p2.salary and
p2.name = ?1</ejb-ql>
      </query>
      <query>
        <description>
        <query-method>
          <method-name>findByCity
          <method-params>
            <method-param>java.lang.String
          </method-params>
        </query-method>
        <ejb-ql>select distinct object(p) from Player p,
in (p.teams) as t
where t.city = ?1</ejb-ql>
      </query>
      <query>
        <description>
        <query-method>
          <method-name>findByPositionAndName
          <method-params>
            <method-param>java.lang.String
            <method-param>java.lang.String
          </method-params>
        </query-method>
        <ejb-ql>select distinct object(p) from Player p
where p.position = ?1 and p.name = ?2</ejb-ql>
      </query>
      <query>
        <description>
        <query-method>
          <method-name>findByLeague
          <method-params>
            <method-param>team.LocalLeague
          </method-params>
        </query-method>
        <ejb-ql>select distinct object(p) from Player p,
in (p.teams) as t
where t.league = ?1</ejb-ql>
      </query>
      <query>
        <description>
        <query-method>
          <method-name>ejbSelectLeagues
          <method-params>
            <method-param>team.LocalPlayer
          </method-params>
        </query-method>
        <result-type-mapping>Local
        <ejb-ql>select distinct t.league
from Player p, in (p.teams) as t
where p = ?1</ejb-ql>
      </query>
      <query>
        <description>
        <query-method>
          <method-name>findByPosition
          <method-params>
            <method-param>java.lang.String
          </method-params>
        </query-method>
        <ejb-ql>select distinct object(p) from Player p
where p.position = ?1</ejb-ql>
      </query>
      <query>
        <description>
        <query-method>
          <method-name>findByTest
          <method-params>
            <method-param>java.lang.String
            <method-param>java.lang.String
            <method-param>java.lang.String
          </method-params>
        </query-method>
        <ejb-ql>select distinct object(p) from Player p
where p.name = ?1</ejb-ql>
      </query>
      <query>
        <description>Finder using the IN Expression
        <query-method>
          <method-name>findByPositionsGoalkeeperOrDefender
          <method-params/>
        </query-method>
        <ejb-ql>select object(p) from Player p where p.position IN ('goalkeeper', 'defender')
      </query>
      <query>
        <description>Finder using the LIKE Expression
        <query-method>
          <method-name>findByNameEndingWithON
          <method-params/>
        </query-method>
        <ejb-ql>select object(p) from Player p where p.name LIKE '%on'
      </query>
      <query>
        <description>Finder using the IS NULL Expression
        <query-method>
          <method-name>findByNullName
          <method-params/>
        </query-method>
        <ejb-ql>select object(p) from Player p where p.name IS NULL
      </query>
      <query>
        <description>Finder using the MEMBER OF Expression
        <query-method>
          <method-name>findByTeam
          <method-params>
            <method-param>team.LocalTeam
          </method-params>
        </query-method>
        <ejb-ql>select object(p) from Player p where ?1 MEMBER p.teams
      </query>
      <query>
        <description>Finder using the ABS function
        <query-method>
          <method-name>findBySalarayWithArithmeticFunctionABS
          <method-params>
            <method-param>double
          </method-params>
        </query-method>
        <ejb-ql>select object(p) from Player p where p.salary = ABS(?1)
      </query>
      <query>
        <description>Finder using the SQRT function
        <query-method>
          <method-name>findBySalarayWithArithmeticFunctionSQRT
          <method-params>
            <method-param>double
          </method-params>
        </query-method>
        <ejb-ql>select object(p) from Player p where p.salary = SQRT(?1)
      </query>      
    </entity>
  </enterprise-beans>
  <relationships>
    <description>League-Team
    <ejb-relation>
      <description>Team To Player
      <ejb-relation-name>
      <ejb-relationship-role>
        <ejb-relationship-role-name>TeamEJB
        <multiplicity>Many
        <relationship-role-source>
          <ejb-name>TeamEJB
        </relationship-role-source>
        <cmr-field>
          <cmr-field-name>players
          <cmr-field-type>java.util.Collection
        </cmr-field>
      </ejb-relationship-role>
      <ejb-relationship-role>
        <ejb-relationship-role-name>PlayerEJB
        <multiplicity>Many
        <relationship-role-source>
          <ejb-name>PlayerEJB
        </relationship-role-source>
        <cmr-field>
          <cmr-field-name>teams
          <cmr-field-type>java.util.Collection
        </cmr-field>
      </ejb-relationship-role>
    </ejb-relation>
    <ejb-relation>
      <description>League-Team
      <ejb-relation-name>
      <ejb-relationship-role>
        <ejb-relationship-role-name>LeagueEJB
        <multiplicity>One
        <relationship-role-source>
          <ejb-name>LeagueEJB
        </relationship-role-source>
        <cmr-field>
          <cmr-field-name>teams
          <cmr-field-type>java.util.Collection
        </cmr-field>
      </ejb-relationship-role>
      <ejb-relationship-role>
        <ejb-relationship-role-name>TeamEJB
        <multiplicity>Many
        <cascade-delete />
        <relationship-role-source>
          <ejb-name>TeamEJB
        </relationship-role-source>
        <cmr-field>
          <cmr-field-name>league
        </cmr-field>
      </ejb-relationship-role>
    </ejb-relation>
  </relationships>
  <assembly-descriptor>
    <method-permission>
      <unchecked />
      <method>
        <ejb-name>LeagueEJB
        <method-intf>LocalHome
        <method-name>remove
        <method-params>
          <method-param>java.lang.Object
        </method-params>
      </method>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>Local
        <method-name>getSport
        <method-params />
      </method>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>Local
        <method-name>dropTeam
        <method-params>
          <method-param>team.LocalTeam
        </method-params>
      </method>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>Local
        <method-name>getEJBLocalHome
        <method-params />
      </method>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>LocalHome
        <method-name>create
        <method-params>
          <method-param>java.lang.String
          <method-param>java.lang.String
          <method-param>java.lang.String
        </method-params>
      </method>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>Local
        <method-name>getName
        <method-params />
      </method>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>LocalHome
        <method-name>findByPrimaryKey
        <method-params>
          <method-param>java.lang.String
        </method-params>
      </method>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>Local
        <method-name>getLeagueId
        <method-params />
      </method>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>Local
        <method-name>getTeams
        <method-params />
      </method>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>Local
        <method-name>addTeam
        <method-params>
          <method-param>team.LocalTeam
        </method-params>
      </method>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>Local
        <method-name>getPrimaryKey
        <method-params />
      </method>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>Local
        <method-name>remove
        <method-params />
      </method>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>Local
        <method-name>isIdentical
        <method-params>
          <method-param>javax.ejb.EJBLocalObject
        </method-params>
      </method>
    </method-permission>
    <method-permission>
      <unchecked />
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>getCopyOfPlayers
        <method-params />
      </method>
      <method>
        <ejb-name>TeamEJB
        <method-intf>LocalHome
        <method-name>remove
        <method-params>
          <method-param>java.lang.Object
        </method-params>
      </method>
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>getLeague
        <method-params />
      </method>
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>getEJBLocalHome
        <method-params />
      </method>
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>dropPlayer
        <method-params>
          <method-param>team.LocalPlayer
        </method-params>
      </method>
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>getTeamId
        <method-params />
      </method>
      <method>
        <ejb-name>TeamEJB
        <method-intf>LocalHome
        <method-name>create
        <method-params>
          <method-param>java.lang.String
          <method-param>java.lang.String
          <method-param>java.lang.String
        </method-params>
      </method>
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>getPlayers
        <method-params />
      </method>
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>addPlayer
        <method-params>
          <method-param>team.LocalPlayer
        </method-params>
      </method>
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>getName
        <method-params />
      </method>
      <method>
        <ejb-name>TeamEJB
        <method-intf>LocalHome
        <method-name>findByPrimaryKey
        <method-params>
          <method-param>java.lang.String
        </method-params>
      </method>
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>getPrimaryKey
        <method-params />
      </method>
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>getCity
        <method-params />
      </method>
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>remove
        <method-params />
      </method>
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>isIdentical
        <method-params>
          <method-param>javax.ejb.EJBLocalObject
        </method-params>
      </method>
    </method-permission>
    <method-permission>
      <unchecked />
      <method>
        <ejb-name>PlayerEJB
        <method-intf>Local
        <method-name>getPrimaryKey
        <method-params />
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>Local
        <method-name>getTeams
        <method-params />
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>remove
        <method-params>
          <method-param>java.lang.Object
        </method-params>
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findByPosition
        <method-params>
          <method-param>java.lang.String
        </method-params>
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findBySport
        <method-params>
          <method-param>java.lang.String
        </method-params>
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findAll
        <method-params />
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>Local
        <method-name>getEJBLocalHome
        <method-params />
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findByPositionAndName
        <method-params>
          <method-param>java.lang.String
          <method-param>java.lang.String
        </method-params>
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>Local
        <method-name>getName
        <method-params />
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findByPrimaryKey
        <method-params>
          <method-param>java.lang.String
        </method-params>
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findNotOnTeam
        <method-params />
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>Local
        <method-name>isIdentical
        <method-params>
          <method-param>javax.ejb.EJBLocalObject
        </method-params>
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>create
        <method-params>
          <method-param>java.lang.String
          <method-param>java.lang.String
          <method-param>java.lang.String
          <method-param>double
        </method-params>
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>Local
        <method-name>getPlayerId
        <method-params />
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>Local
        <method-name>getSalary
        <method-params />
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findBySalaryRange
        <method-params>
          <method-param>double
          <method-param>double
        </method-params>
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>Local
        <method-name>getPosition
        <method-params />
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>Local
        <method-name>remove
        <method-params />
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findByCity
        <method-params>
          <method-param>java.lang.String
        </method-params>
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findByHigherSalary
        <method-params>
          <method-param>java.lang.String
        </method-params>
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findByTest
        <method-params>
          <method-param>java.lang.String
          <method-param>java.lang.String
          <method-param>java.lang.String
        </method-params>
      </method>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findByLeague
        <method-params>
          <method-param>team.LocalLeague
        </method-params>
      </method>
    </method-permission>
    <container-transaction>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>LocalHome
        <method-name>remove
        <method-params>
          <method-param>java.lang.Object
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>Local
        <method-name>getSport
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>Local
        <method-name>dropTeam
        <method-params>
          <method-param>team.LocalTeam
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>LocalHome
        <method-name>create
        <method-params>
          <method-param>java.lang.String
          <method-param>java.lang.String
          <method-param>java.lang.String
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>Local
        <method-name>getName
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>LocalHome
        <method-name>findByPrimaryKey
        <method-params>
          <method-param>java.lang.String
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>Local
        <method-name>addTeam
        <method-params>
          <method-param>team.LocalTeam
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>Local
        <method-name>getTeams
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>Local
        <method-name>getLeagueId
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>LeagueEJB
        <method-intf>Local
        <method-name>remove
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>getCopyOfPlayers
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>TeamEJB
        <method-intf>LocalHome
        <method-name>remove
        <method-params>
          <method-param>java.lang.Object
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>getLeague
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>dropPlayer
        <method-params>
          <method-param>team.LocalPlayer
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>getTeamId
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>TeamEJB
        <method-intf>LocalHome
        <method-name>create
        <method-params>
          <method-param>java.lang.String
          <method-param>java.lang.String
          <method-param>java.lang.String
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>getName
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>addPlayer
        <method-params>
          <method-param>team.LocalPlayer
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>getPlayers
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>TeamEJB
        <method-intf>LocalHome
        <method-name>findByPrimaryKey
        <method-params>
          <method-param>java.lang.String
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>getCity
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>TeamEJB
        <method-intf>Local
        <method-name>remove
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>Local
        <method-name>getTeams
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>remove
        <method-params>
          <method-param>java.lang.Object
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findByPosition
        <method-params>
          <method-param>java.lang.String
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findBySport
        <method-params>
          <method-param>java.lang.String
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findAll
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findByPositionAndName
        <method-params>
          <method-param>java.lang.String
          <method-param>java.lang.String
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>Local
        <method-name>getName
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findByPrimaryKey
        <method-params>
          <method-param>java.lang.String
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findNotOnTeam
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>create
        <method-params>
          <method-param>java.lang.String
          <method-param>java.lang.String
          <method-param>java.lang.String
          <method-param>double
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>Local
        <method-name>getPlayerId
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>Local
        <method-name>getSports
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>Local
        <method-name>getSalary
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>Local
        <method-name>getLeagues
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findBySalaryRange
        <method-params>
          <method-param>double
          <method-param>double
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>Local
        <method-name>getPosition
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findByCity
        <method-params>
          <method-param>java.lang.String
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findByHigherSalary
        <method-params>
          <method-param>java.lang.String
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>Local
        <method-name>remove
        <method-params />
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findByTest
        <method-params>
          <method-param>java.lang.String
          <method-param>java.lang.String
          <method-param>java.lang.String
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
    <container-transaction>
      <method>
        <ejb-name>PlayerEJB
        <method-intf>LocalHome
        <method-name>findByLeague
        <method-params>
          <method-param>team.LocalLeague
        </method-params>
      </method>
      <trans-attribute>Required
    </container-transaction>
  </assembly-descriptor>
</ejb-jar>

Other Glassfish examples (source code examples)

Here is a short list of links related to this Glassfish 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.