Skip to Content.
Sympa Menu

notify-dpml - svn commit: r1523 - in development/laboratory/planet: components/transitionmachine components/transitionmachine/basic/src/main/net/dpml/transitionmachine/basic components/transitionmachine/demo/trafficlight components/transitionmachine/demo/trafficlight/src/main/net/dpml/transitionmachine/trafficlight j2ee j2ee/petstore-1.3.1 j2ee/petstore-1.3.1/components j2ee/petstore-1.3.1/components/customer j2ee/petstore-1.3.1/components/customer/src j2ee/petstore-1.3.1/components/customer/src/com j2ee/petstore-1.3.1/components/customer/src/com/sun j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/account j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/account/ejb j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/ejb j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/profile j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/profile/ejb

notify-dpml AT lists.ibiblio.org

Subject: DPML Notify

List archive

Chronological Thread  
  • From: niclas AT netcompartner.com
  • To: notify-dpml AT lists.ibiblio.org
  • Subject: svn commit: r1523 - in development/laboratory/planet: components/transitionmachine components/transitionmachine/basic/src/main/net/dpml/transitionmachine/basic components/transitionmachine/demo/trafficlight components/transitionmachine/demo/trafficlight/src/main/net/dpml/transitionmachine/trafficlight j2ee j2ee/petstore-1.3.1 j2ee/petstore-1.3.1/components j2ee/petstore-1.3.1/components/customer j2ee/petstore-1.3.1/components/customer/src j2ee/petstore-1.3.1/components/customer/src/com j2ee/petstore-1.3.1/components/customer/src/com/sun j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/account j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/account/ejb j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/ejb j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/profile j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/profile/ejb
  • Date: Tue, 18 Jan 2005 13:50:37 +0100

Author: niclas
Date: Tue Jan 18 13:50:36 2005
New Revision: 1523

Added:

development/laboratory/planet/components/transitionmachine/basic/src/main/net/dpml/transitionmachine/basic/TransitionComponent.java
(contents, props changed)
development/laboratory/planet/j2ee/
development/laboratory/planet/j2ee/petstore-1.3.1/
development/laboratory/planet/j2ee/petstore-1.3.1/components/
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/build.xml
(contents, props changed)

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/account/

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/account/ejb/

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/account/ejb/AccountEJB.java
(contents, props changed)

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/account/ejb/AccountLocal.java
(contents, props changed)

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/account/ejb/AccountLocalHome.java
(contents, props changed)

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/ejb/

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/ejb/CustomerEJB.java
(contents, props changed)

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/ejb/CustomerLocal.java
(contents, props changed)

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/ejb/CustomerLocalHome.java
(contents, props changed)

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/profile/

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/profile/ejb/

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/profile/ejb/ProfileEJB.java
(contents, props changed)

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/profile/ejb/ProfileInfo.java
(contents, props changed)

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/profile/ejb/ProfileLocal.java
(contents, props changed)

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/profile/ejb/ProfileLocalHome.java
(contents, props changed)

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/ejb-jar-manifest.mf

development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/ejb-jar.xml
(contents, props changed)
Modified:

development/laboratory/planet/components/transitionmachine/basic/src/main/net/dpml/transitionmachine/basic/StateImpl.java

development/laboratory/planet/components/transitionmachine/basic/src/main/net/dpml/transitionmachine/basic/TransitionImpl.java

development/laboratory/planet/components/transitionmachine/demo/trafficlight/build.xml

development/laboratory/planet/components/transitionmachine/demo/trafficlight/src/main/net/dpml/transitionmachine/trafficlight/TrafficLight.java
development/laboratory/planet/components/transitionmachine/index.xml
Log:
Added customer EJB from PetStore demo, as material to discuss EJB support in
Magic.

Modified:
development/laboratory/planet/components/transitionmachine/basic/src/main/net/dpml/transitionmachine/basic/StateImpl.java
==============================================================================
---
development/laboratory/planet/components/transitionmachine/basic/src/main/net/dpml/transitionmachine/basic/StateImpl.java
(original)
+++
development/laboratory/planet/components/transitionmachine/basic/src/main/net/dpml/transitionmachine/basic/StateImpl.java
Tue Jan 18 13:50:36 2005
@@ -56,7 +56,6 @@
public class StateImpl
implements State
{
-
private String m_identity;

public StateImpl( Parameters params )

Added:
development/laboratory/planet/components/transitionmachine/basic/src/main/net/dpml/transitionmachine/basic/TransitionComponent.java
==============================================================================
--- (empty file)
+++
development/laboratory/planet/components/transitionmachine/basic/src/main/net/dpml/transitionmachine/basic/TransitionComponent.java
Tue Jan 18 13:50:36 2005
@@ -0,0 +1,150 @@
+
+package net.dpml.transitionmachine.basic;
+
+import java.util.Locale;
+import java.util.ResourceBundle;
+import java.util.ArrayList;
+import net.dpml.context.Context;
+import net.dpml.context.ContextException;
+import net.dpml.service.ServiceException;
+import net.dpml.service.ServiceManager;
+import net.dpml.transitionmachine.Transition;
+import net.dpml.transitionmachine.State;
+import net.dpml.transitionmachine.TransitionMachine;
+import net.dpml.transitionmachine.TransitionRule;
+import net.dpml.transitionmachine.TransitionListener;
+
+/**
+ * @metro.component name="transition" lifestyle="transient" collection="hard"
+ * @metro.service type="net.dpml.transitionmachine.Transition"
+ */
+public class TransitionComponent implements Transition
+{
+ private State m_beginState;
+ private State m_endState;
+ private String m_identity;
+ private TransitionRule m_Rule;
+ private ArrayList m_listeners;
+
+ /**
+ * @param man The ServiceManager for this component.
+ * @param params Parameters for this component.
+ *
+ * @throws ParameterException if a "identity" parameter is not
specified, which is used as key
+ * in ResourceBundle lookups.
+ * @throws ServiceException if the "begin" and "end" StateImpl
dependencies can not be
+ * satisfied.
+ *
+ * @metro.entry key="urn:metro:name"
+ * type="java.lang.String"
+ * @metro.dependency key="begin" type="net.dpml.transitionmachine.State"
+ * @metro.dependency key="end" type="net.dpml.transitionmachine.State"
+ * @metro.dependency key="sm"
type="net.dpml.transitionmachine.TransitionMachine"
+ * @metro.dependency key="rule"
type="net.dpml.transitionmachine.TransitionRule"
+ */
+ public TransitionComponent( ServiceManager man, Context ctx )
+ throws ContextException, ServiceException
+ {
+ m_identity = (String) ctx.get( "urn:metro:name" );
+ State beginState = (State) man.lookup( "begin" );
+ m_beginState = beginState;
+ State endState = (State) man.lookup( "end" );
+ m_endState = endState;
+ TransitionMachine sm = (TransitionMachine) man.lookup( "sm" );
+ sm.addTransition( this );
+ m_Rule = (TransitionRule) man.lookup( "rule" );
+
+ m_listeners = new ArrayList();
+ }
+
+ public TransitionRule getTransitionRule()
+ {
+ return m_Rule;
+ }
+
+ public State getBeginState()
+ {
+ return m_beginState;
+ }
+
+ public State getEndState()
+ {
+ return m_endState;
+ }
+
+ public String getIdentity()
+ {
+ return m_identity;
+ }
+
+ public String getName( Locale locale )
+ {
+ ResourceBundle bundle = ResourceBundle.getBundle(
TransitionMachine.BUNDLE_NAME, locale );
+ return bundle.getString( m_identity + ".name" );
+ }
+
+ public String getDescription( Locale locale )
+ {
+ ResourceBundle bundle = ResourceBundle.getBundle(
TransitionMachine.BUNDLE_NAME, locale );
+ return bundle.getString( m_identity + ".description" );
+ }
+
+ public void addTransitionListener( TransitionListener listener )
+ {
+ synchronized( m_listeners )
+ {
+ m_listeners.add( listener );
+ }
+ }
+
+ public void removeTransitionListener( TransitionListener listener )
+ {
+ synchronized( m_listeners )
+ {
+ m_listeners.add( listener );
+ }
+ }
+
+ public boolean equals( Object o )
+ {
+ if( this == o )
+ {
+ return true;
+ }
+ if( !( o instanceof Transition ) )
+ {
+ return false;
+ }
+
+ final Transition transition = (Transition) o;
+
+ if( ! m_beginState.equals( transition.getBeginState() ) )
+ {
+ return false;
+ }
+ if( ! m_endState.equals( transition.getEndState() ) )
+ {
+ return false;
+ }
+ if( ! m_identity.equals( transition.getIdentity() ) )
+ {
+ return false;
+ }
+
+ return true;
+ }
+
+ public int hashCode()
+ {
+ int result;
+ result = m_beginState.hashCode();
+ result = ( result >>> 11 ) + m_endState.hashCode();
+ result = ( result >>> 17 ) + m_identity.hashCode();
+ return result;
+ }
+
+ public String toString()
+ {
+ return "transition[" + m_identity +"]";
+ }
+}

Modified:
development/laboratory/planet/components/transitionmachine/basic/src/main/net/dpml/transitionmachine/basic/TransitionImpl.java
==============================================================================
---
development/laboratory/planet/components/transitionmachine/basic/src/main/net/dpml/transitionmachine/basic/TransitionImpl.java
(original)
+++
development/laboratory/planet/components/transitionmachine/basic/src/main/net/dpml/transitionmachine/basic/TransitionImpl.java
Tue Jan 18 13:50:36 2005
@@ -4,79 +4,25 @@
import java.util.Locale;
import java.util.ResourceBundle;
import java.util.ArrayList;
-import net.dpml.parameters.ParameterException;
-import net.dpml.parameters.Parameters;
-import net.dpml.service.ServiceException;
-import net.dpml.service.ServiceManager;
+
+import net.dpml.exception.NullArgumentException;
+
import net.dpml.transitionmachine.Transition;
import net.dpml.transitionmachine.State;
import net.dpml.transitionmachine.TransitionMachine;
import net.dpml.transitionmachine.TransitionRule;
import net.dpml.transitionmachine.TransitionListener;

-/**
- * This class represents each StateImpl internal in the TransitionMachine.
- * <p/>
- * <p/>
- * Each StateImpl is defined as a Metro component, and has an Identity
(machine readable), a Name
- * and a Description, which are both human-readable in the caller's Locale.
</p>
- * <p/>
- * The Name and Description is read from the java.util.ResourceBundle named
- * "net.dpml.transitionmachine.Resources", and can be either a properties
file, or a
- * net.dpml.i18n.BundleHandler. </p>
- * <p/>
- * For each "identity", i.e. each StateImpl, you need to have two resource
strings, with the same
- * name as the identity, prepended with ".name" and ".description"
respectively. Example; </p>
- * <code><pre>
- * reset.name=Reset
- * reset.description=Resets Error conditions back to Normal state.
- * startprint.name=Start Printing
- * startprint.description=Printing process is started.
- * finishedprint.name=Print Finished
- * finishedprint.description=Printing has finished, and it will return to
normal state.
- * </pre></code>
- *
- * @metro.component name="transition" lifestyle="transient" collection="hard"
- * @metro.service type="net.dpml.transitionmachine.Transition"
- */
-public class TransitionImpl implements Transition
+public class TransitionImpl
+ implements Transition
{
private State m_beginState;
private State m_endState;
- private String m_Identity;
+ private String m_identity;
private TransitionRule m_Rule;
private ArrayList m_listeners;

- /**
- * @param man The ServiceManager for this component.
- * @param params Parameters for this component.
- *
- * @throws ParameterException if a "identity" parameter is not
specified, which is used as key
- * in ResourceBundle lookups.
- * @throws ServiceException if the "begin" and "end" StateImpl
dependencies can not be
- * satisfied.
- * @metro.dependency key="begin" type="net.dpml.transitionmachine.State"
- * @metro.dependency key="end" type="net.dpml.transitionmachine.State"
- * @metro.dependency key="sm"
type="net.dpml.transitionmachine.TransitionMachine"
- * @metro.dependency key="rule"
type="net.dpml.transitionmachine.TransitionRule"
- */
- public TransitionImpl( ServiceManager man, Parameters params )
- throws ParameterException, ServiceException
- {
- String identity = params.getParameter( "identity" );
- m_Identity = identity;
- State beginState = (State) man.lookup( "begin" );
- m_beginState = beginState;
- State endState = (State) man.lookup( "end" );
- m_endState = endState;
- TransitionMachine sm = (TransitionMachine) man.lookup( "sm" );
- sm.addTransition( this );
- m_Rule = (TransitionRule) man.lookup( "rule" );
-
- m_listeners = new ArrayList();
- }
-
- /**
+ /*
* Non-Metro constructor.
*
* @param beginState The StateImpl from which this Transition starts at.
@@ -87,19 +33,19 @@
{
if( beginState == null )
{
- throw new NullPointerException( "Null arguments not allowed:
beginState" );
+ throw new NullArgumentException( "beginState" );
}
if( endState == null )
{
- throw new NullPointerException( "Null arguments not allowed:
endState" );
+ throw new NullArgumentException( "endState" );
}
if( identity == null )
{
- throw new NullPointerException( "Null arguments not allowed:
identity" );
+ throw new NullArgumentException( "identity" );
}
m_beginState = beginState;
m_endState = endState;
- m_Identity = identity;
+ m_identity = identity;
}

public TransitionRule getTransitionRule()
@@ -119,19 +65,19 @@

public String getIdentity()
{
- return m_Identity;
+ return m_identity;
}

public String getName( Locale locale )
{
ResourceBundle bundle = ResourceBundle.getBundle(
TransitionMachine.BUNDLE_NAME, locale );
- return bundle.getString( m_Identity + ".name" );
+ return bundle.getString( m_identity + ".name" );
}

public String getDescription( Locale locale )
{
ResourceBundle bundle = ResourceBundle.getBundle(
TransitionMachine.BUNDLE_NAME, locale );
- return bundle.getString( m_Identity + ".description" );
+ return bundle.getString( m_identity + ".description" );
}

public void addTransitionListener( TransitionListener listener )
@@ -156,22 +102,22 @@
{
return true;
}
- if( !( o instanceof TransitionImpl ) )
+ if( !( o instanceof Transition ) )
{
return false;
}

- final TransitionImpl transition = (TransitionImpl) o;
+ final Transition transition = (Transition) o;

- if( !m_beginState.equals( transition.m_beginState ) )
+ if( !m_beginState.equals( transition.getBeginState() ) )
{
return false;
}
- if( !m_endState.equals( transition.m_endState ) )
+ if( !m_endState.equals( transition.getEndState() ) )
{
return false;
}
- if( !m_Identity.equals( transition.m_Identity ) )
+ if( !m_identity.equals( transition.getIdentity() ) )
{
return false;
}
@@ -184,7 +130,12 @@
int result;
result = m_beginState.hashCode();
result = ( result >>> 11 ) + m_endState.hashCode();
- result = ( result >>> 17 ) + m_Identity.hashCode();
+ result = ( result >>> 17 ) + m_identity.hashCode();
return result;
}
+
+ public String toString()
+ {
+ return "transition[" + m_identity +"]";
+ }
}

Modified:
development/laboratory/planet/components/transitionmachine/demo/trafficlight/build.xml
==============================================================================
---
development/laboratory/planet/components/transitionmachine/demo/trafficlight/build.xml
(original)
+++
development/laboratory/planet/components/transitionmachine/demo/trafficlight/build.xml
Tue Jan 18 13:50:36 2005
@@ -15,7 +15,7 @@

<x:component name="runner"
class="net.dpml.transitionmachine.trafficlight.demo.TrafficLight" />

- <x:component name="machine"
class="net.dpml.transitionmachine.basic.TransitionMachineImpl" >
+ <x:component name="machine"
class="net.dpml.transitionmachine.basic.TransitionMachineImpl"
activation="false" >
<x:dependencies>
<x:dependency key="red-to-green" source="transition-red-to-green"
/>
<x:dependency key="green-to-yellow"
source="transition-green-to-yellow" />
@@ -63,49 +63,49 @@
</x:parameters>
</x:component>

- <x:component name="transition-red-to-green"
class="net.dpml.transitionmachine.basic.TransitionImpl" >
+ <x:component name="transition-red-to-green"
class="net.dpml.transitionmachine.basic.TransitionComponent" >
<x:dependencies>
<x:dependency key="begin" source="state-red" />
<x:dependency key="end" source="state-green" />
</x:dependencies>
</x:component>

- <x:component name="transition-red-to-redyellow"
class="net.dpml.transitionmachine.basic.TransitionImpl" >
+ <x:component name="transition-red-to-redyellow"
class="net.dpml.transitionmachine.basic.TransitionComponent" >
<x:dependencies>
<x:dependency key="begin" source="state-red" />
<x:dependency key="end" source="state-redyellow" />
</x:dependencies>
</x:component>

- <x:component name="transition-yellow-to-red"
class="net.dpml.transitionmachine.basic.TransitionImpl" >
+ <x:component name="transition-yellow-to-red"
class="net.dpml.transitionmachine.basic.TransitionComponent" >
<x:dependencies>
<x:dependency key="begin" source="state-yellow" />
<x:dependency key="end" source="state-red" />
</x:dependencies>
</x:component>

- <x:component name="transition-green-to-yellow"
class="net.dpml.transitionmachine.basic.TransitionImpl" >
+ <x:component name="transition-green-to-yellow"
class="net.dpml.transitionmachine.basic.TransitionComponent" >
<x:dependencies>
<x:dependency key="begin" source="state-green" />
<x:dependency key="end" source="state-yellow" />
</x:dependencies>
</x:component>

- <x:component name="transition-green-to-greenyellow"
class="net.dpml.transitionmachine.basic.TransitionImpl" >
+ <x:component name="transition-green-to-greenyellow"
class="net.dpml.transitionmachine.basic.TransitionComponent" >
<x:dependencies>
<x:dependency key="begin" source="state-green" />
<x:dependency key="end" source="state-greenyellow" />
</x:dependencies>
</x:component>

- <x:component name="transition-greenyellow-to-red"
class="net.dpml.transitionmachine.basic.TransitionImpl" >
+ <x:component name="transition-greenyellow-to-red"
class="net.dpml.transitionmachine.basic.TransitionComponent" >
<x:dependencies>
<x:dependency key="begin" source="state-greenyellow" />
<x:dependency key="end" source="state-red" />
</x:dependencies>
</x:component>

- <x:component name="transition-redyellow-to-green"
class="net.dpml.transitionmachine.basic.TransitionImpl" >
+ <x:component name="transition-redyellow-to-green"
class="net.dpml.transitionmachine.basic.TransitionComponent" >
<x:dependencies>
<x:dependency key="begin" source="state-redyellow" />
<x:dependency key="end" source="state-green" />

Modified:
development/laboratory/planet/components/transitionmachine/demo/trafficlight/src/main/net/dpml/transitionmachine/trafficlight/TrafficLight.java
==============================================================================
---
development/laboratory/planet/components/transitionmachine/demo/trafficlight/src/main/net/dpml/transitionmachine/trafficlight/TrafficLight.java
(original)
+++
development/laboratory/planet/components/transitionmachine/demo/trafficlight/src/main/net/dpml/transitionmachine/trafficlight/TrafficLight.java
Tue Jan 18 13:50:36 2005
@@ -98,7 +98,7 @@
t = (Transition) man.lookup( "greenyellow-to-red" );
m_swedishTransitions.add( t );

- international();
+ setType( true );
}

private TrafficLight()

Modified: development/laboratory/planet/components/transitionmachine/index.xml
==============================================================================
--- development/laboratory/planet/components/transitionmachine/index.xml
(original)
+++ development/laboratory/planet/components/transitionmachine/index.xml
Tue Jan 18 13:50:36 2005
@@ -62,9 +62,11 @@
</info>
<dependencies>
<include key="dpml-activity-api" />
+ <include key="dpml-context-api" />
<include key="dpml-parameters-api" />
<include key="dpml-service-api" />
<include key="dpml-transitionmachine-api" />
+ <include key="dpml-util-exception" />
</dependencies>
<plugins>
<include key="dpml-meta-tools"/>

Added:
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/build.xml
==============================================================================
--- (empty file)
+++
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/build.xml
Tue Jan 18 13:50:36 2005
@@ -0,0 +1,167 @@
+<?xml version="1.0"?>
+
+<!--
+ Copyright 2002 Sun Microsystems, Inc. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ - Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ - Redistribution in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ Neither the name of Sun Microsystems, Inc. or the names of
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ This software is provided "AS IS," without a warranty of any
+ kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
+ WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
+ EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES
+ SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
+ DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
+ OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
+ FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
+ PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
+ LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE SOFTWARE,
+ EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+ You acknowledge that Software is not designed, licensed or intended
+ for use in the design, construction, operation or maintenance of
+ any nuclear facility.
+-->
+
+
+<!-- =================================================================== -->
+<!-- $Id: build.xml,v 1.11.2.3.4.6 2002/06/21 02:13:04 inder Exp $
-->
+<!-- =================================================================== -->
+
+<project name="customer" default="core" basedir=".">
+
+ <target name="init">
+ <!-- include user specific build properties first -->
+ <property file="${user.home}/petstore.properties"/>
+ <!-- include top-level common properties -->
+ <property file="../../../build.properties"/>
+
+ <!-- The customeroot directory of the workspace -->
+ <property name="customer.home" value=".."/>
+ <property name="component.contactinfo.home" value="../../contactinfo"/>
+ <property name="component.creditcard.home" value="../../creditcard"/>
+
+ <!-- The destination directory for the build -->
+ <property name="customer.build" value="${customer.home}/build"/>
+ <property name="customer.buildjardir" value="${customer.build}/ejbjar"/>
+
+ <property name="customer.src" value="${customer.home}/src"/>
+
+ <!-- The destination directory for all the compiled classes. -->
+ <property name="customer.classbindir" value="${customer.build}/classes"/>
+
+ <!-- The destination directory for all the javadocs. -->
+ <property name="customer.javadocs.dir"
value="${customer.build}/docs/api"/>
+
+ <!-- The classpath for J2EE classes. -->
+ <property name="j2ee.classpath"
value="${j2ee.home}/lib/j2ee.jar:${j2ee.home}/lib/locale"/>
+
+ <!-- The classpath used for building the workspace. -->
+ <property name="customer.classpath"
value="${customer.classbindir}:${j2ee.classpath}"/>
+
+ <property name="customer.ejbjar"
value="${customer.build}/customer-ejb.jar"/>
+
+ <property name="customer.client.ejbjar"
value="${customer.build}/customer-ejb-client.jar"/>
+ </target>
+
+ <target name="compile" depends="init">
+ <mkdir dir="${customer.classbindir}"/>
+ <copy todir="${customer.classbindir}">
+ <fileset dir="${component.contactinfo.home}/build/classes"/>
+ </copy>
+ <copy todir="${customer.classbindir}">
+ <fileset dir="${component.creditcard.home}/build/classes"/>
+ </copy>
+ <javac srcdir="${customer.src}"
+ debug="${javac.debug}"
+ destdir="${customer.classbindir}"
+ classpath="${customer.classpath}"
+ includes="com/**"/>
+ </target>
+
+ <target name="components" depends="init">
+ <ant dir="${component.contactinfo.home}/src" target="core"/>
+ <ant dir="${component.creditcard.home}/src" target="core"/>
+ </target>
+
+ <target name="ejbjar" depends="compile">
+ <mkdir dir="${customer.buildjardir}/META-INF"/>
+ <copy todir="${customer.buildjardir}">
+ <fileset dir="${customer.classbindir}"/>
+ </copy>
+ <copy file="ejb-jar.xml"
tofile="${customer.buildjardir}/META-INF/ejb-jar.xml"/>
+ <delete file="${customer.ejbjar}" quiet="true"/>
+ <jar jarfile="${customer.ejbjar}" basedir="${customer.buildjardir}"
manifest="ejb-jar-manifest.mf"/>
+ <delete dir="${customer.buildjardir}"/>
+ </target>
+
+ <target name="ejbclientjar" depends="init">
+ <mkdir dir="${customer.buildjardir}"/>
+ <copy todir="${customer.buildjardir}">
+ <fileset dir="${customer.classbindir}"/>
+ </copy>
+ <!-- Get rid of the EJB Impl Class -->
+ <delete
file="${customer.buildjardir}/com/sun/j2ee/blueprints/customer/ejb/CustomerEJB.class"/>
+ <delete
file="${customer.buildjardir}/com/sun/j2ee/blueprints/customer/account/ejb/AccountEJB.class"/>
+ <delete
file="${customer.buildjardir}/com/sun/j2ee/blueprints/customer/profile/ejb/ProfileEJB.class"/>
+ <delete
file="${customer.buildjardir}/com/sun/j2ee/blueprints/address/ejb/AddressEJB.class"/>
+ <delete
file="${customer.buildjardir}/com/sun/j2ee/blueprints/creditcard/ejb/CreditCardEJB.class"/>
+ <delete
file="${customer.buildjardir}/com/sun/j2ee/blueprints/contactinfo/ejb/ContactInfoEJB.class"/>
+ <delete file="${customer.client.ejbjar}" quiet="true"/>
+ <jar jarfile="${customer.client.ejbjar}"
basedir="${customer.buildjardir}"/>
+ <delete dir="${customer.buildjardir}"/>
+ </target>
+
+ <target name="clean" depends="init">
+ <delete dir="${customer.build}"/>
+ <ant dir="${component.contactinfo.home}/src" target="clean"/>
+ <ant dir="${component.creditcard.home}/src" target="clean"/>
+ </target>
+
+ <target name="docs" depends="init, core">
+ <mkdir dir="${customer.javadocs.dir}"/>
+ <javadoc packagenames="com.sun.j2ee.blueprints.*"
+ destdir="${customer.javadocs.dir}"
+ author="false" version="true" use="true"
+ windowtitle="Customer Component API"
+ doctitle="Customer Component"
+ bottom="Copyright &#169; 2001 Sun Microsystems Inc. All Rights
Reserved.">
+ <classpath>
+ <pathelement path="${j2ee.home}/lib/j2ee.jar"/>
+ <pathelement path="${component.contactinfo.home}/build/classes"/>
+ <pathelement path="${component.creditcard.home}/build/classes"/>
+ <pathelement path="${customer.classbindir}"/>
+ </classpath>
+ <sourcepath>
+ <pathelement path="${component.contactinfo.home}/src"/>
+ <pathelement path="${component.creditcard.home}/src"/>
+ <pathelement path="${customer.src}"/>
+ </sourcepath>
+ </javadoc>
+ </target>
+
+ <target name="banner">
+ <echo>+---------------------------------------+</echo>
+ <echo>+ Building Customer Component +</echo>
+ <echo>+---------------------------------------+</echo>
+ </target>
+
+ <target name="core" depends="components, banner, compile, ejbjar,
ejbclientjar" />
+ <target name="all" depends="core, docs" />
+
+</project>
+

Added:
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/account/ejb/AccountEJB.java
==============================================================================
--- (empty file)
+++
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/account/ejb/AccountEJB.java
Tue Jan 18 13:50:36 2005
@@ -0,0 +1,115 @@
+/*
+ * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * - Redistribution in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any
+ * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
+ * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
+ * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES
+ * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
+ * DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
+ * OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
+ * FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
+ * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
+ * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * You acknowledge that Software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of
+ * any nuclear facility.
+ */
+
+package com.sun.j2ee.blueprints.customer.account.ejb;
+
+import javax.ejb.EntityContext;
+import javax.ejb.RemoveException;
+import javax.ejb.CreateException;
+import javax.naming.NamingException;
+import javax.naming.InitialContext;
+
+import com.sun.j2ee.blueprints.contactinfo.ejb.ContactInfoLocal;
+import com.sun.j2ee.blueprints.contactinfo.ejb.ContactInfoLocalHome;
+import com.sun.j2ee.blueprints.creditcard.ejb.CreditCardLocal;
+import com.sun.j2ee.blueprints.creditcard.ejb.CreditCardLocalHome;
+
+public abstract class AccountEJB implements javax.ejb.EntityBean {
+
+ private EntityContext context = null;
+
+ // getters and setters for CMP fields
+ //====================================
+ public abstract String getStatus();
+ public abstract void setStatus(String status);
+
+ // CMR fields
+ //============
+ public abstract ContactInfoLocal getContactInfo();
+ public abstract void setContactInfo(ContactInfoLocal contactInfo);
+
+ public abstract CreditCardLocal getCreditCard();
+ public abstract void setCreditCard(CreditCardLocal creditCard);
+
+ // EJB create method
+ //===================
+ public Object ejbCreate(String status, ContactInfoLocal contactInfo,
CreditCardLocal creditCard) throws CreateException {
+ setStatus(status);
+ return null;
+ }
+
+ public Object ejbCreate(String status) throws CreateException {
+ setStatus(status);
+ return null;
+ }
+
+ public void ejbPostCreate(String status) throws CreateException {
+ setStatus(status);
+ try {
+ InitialContext ic = new InitialContext();
+ ContactInfoLocalHome cih = (ContactInfoLocalHome)
ic.lookup("java:comp/env/ejb/ContactInfo");
+ ContactInfoLocal contactInfo = cih.create();
+ setContactInfo(contactInfo);
+ CreditCardLocalHome cch = (CreditCardLocalHome)
ic.lookup("java:comp/env/ejb/CreditCard");
+ CreditCardLocal creditCard = cch.create();
+ setCreditCard(creditCard);
+ } catch (javax.naming.NamingException ne) {
+ throw new CreateException("ContactInfoEJB error: naming
exception looking up contact info or credit card");
+ }
+
+ }
+
+ public void ejbPostCreate(String status, ContactInfoLocal contactInfo,
CreditCardLocal creditCard) throws CreateException {
+ setContactInfo(contactInfo);
+ setCreditCard(creditCard);
+ }
+
+
+ // Misc Method
+ //=============
+ public void setEntityContext(EntityContext c) {
+ context = c;
+ }
+ public void unsetEntityContext() {
+ context = null;
+ }
+ public void ejbRemove() throws RemoveException { }
+ public void ejbActivate() { }
+ public void ejbPassivate() { }
+ public void ejbStore() { }
+ public void ejbLoad() { }
+}

Added:
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/account/ejb/AccountLocal.java
==============================================================================
--- (empty file)
+++
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/account/ejb/AccountLocal.java
Tue Jan 18 13:50:36 2005
@@ -0,0 +1,54 @@
+
+/*
+ * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * - Redistribution in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any
+ * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
+ * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
+ * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES
+ * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
+ * DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
+ * OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
+ * FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
+ * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
+ * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * You acknowledge that Software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of
+ * any nuclear facility.
+ */
+
+package com.sun.j2ee.blueprints.customer.account.ejb;
+
+import com.sun.j2ee.blueprints.contactinfo.ejb.ContactInfoLocal;
+import com.sun.j2ee.blueprints.creditcard.ejb.CreditCardLocal;
+
+public interface AccountLocal extends javax.ejb.EJBLocalObject {
+
+ public String getStatus();
+ public void setStatus(String status);
+
+ public CreditCardLocal getCreditCard();
+ public void setCreditCard(CreditCardLocal card);
+
+ public ContactInfoLocal getContactInfo();
+ public void setContactInfo(ContactInfoLocal contactInfo);
+}

Added:
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/account/ejb/AccountLocalHome.java
==============================================================================
--- (empty file)
+++
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/account/ejb/AccountLocalHome.java
Tue Jan 18 13:50:36 2005
@@ -0,0 +1,57 @@
+/*
+ * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * - Redistribution in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any
+ * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
+ * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
+ * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES
+ * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
+ * DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
+ * OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
+ * FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
+ * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
+ * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * You acknowledge that Software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of
+ * any nuclear facility.
+ */
+
+package com.sun.j2ee.blueprints.customer.account.ejb;
+
+import javax.ejb.CreateException;
+import javax.ejb.FinderException;
+
+import com.sun.j2ee.blueprints.contactinfo.ejb.ContactInfoLocal;
+import com.sun.j2ee.blueprints.creditcard.ejb.CreditCardLocal;
+
+public interface AccountLocalHome extends javax.ejb.EJBLocalHome {
+
+ public static final String Active = "active";
+ public static final String Disabled = "disabled";
+
+ public AccountLocal create(String status) throws CreateException;
+
+ public AccountLocal create(String status, ContactInfoLocal contactInfo,
+ CreditCardLocal creditCard) throws CreateException;
+
+ public AccountLocal findByPrimaryKey(Object key) throws FinderException;
+}

Added:
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/ejb/CustomerEJB.java
==============================================================================
--- (empty file)
+++
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/ejb/CustomerEJB.java
Tue Jan 18 13:50:36 2005
@@ -0,0 +1,102 @@
+/*
+ * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * - Redistribution in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any
+ * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
+ * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
+ * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES
+ * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
+ * DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
+ * OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
+ * FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
+ * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
+ * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * You acknowledge that Software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of
+ * any nuclear facility.
+ */
+
+package com.sun.j2ee.blueprints.customer.ejb;
+
+import javax.ejb.EntityContext;
+import javax.ejb.RemoveException;
+import javax.ejb.CreateException;
+import javax.naming.NamingException;
+import javax.naming.InitialContext;
+
+import com.sun.j2ee.blueprints.customer.account.ejb.AccountLocal;
+import com.sun.j2ee.blueprints.customer.account.ejb.AccountLocalHome;
+import com.sun.j2ee.blueprints.customer.profile.ejb.ProfileLocal;
+import com.sun.j2ee.blueprints.customer.profile.ejb.ProfileLocalHome;
+
+public abstract class CustomerEJB implements javax.ejb.EntityBean {
+
+ private EntityContext context = null;
+
+ // getters and setters for CMP fields
+ //====================================
+ public abstract String getUserId();
+ public abstract void setUserId(String userId);
+
+ // CMR Fields
+ public abstract AccountLocal getAccount();
+ public abstract void setAccount(AccountLocal account);
+
+ public abstract ProfileLocal getProfile();
+ public abstract void setProfile(ProfileLocal profile);
+
+ // EJB create method
+ //===================
+ public String ejbCreate(String userId) throws CreateException {
+ setUserId(userId);
+ return null;
+ }
+
+ public void ejbPostCreate(String userId) throws CreateException {
+ try {
+ InitialContext ic = new InitialContext();
+ AccountLocalHome alh = (AccountLocalHome)
ic.lookup("java:comp/env/ejb/Account");
+ AccountLocal account = alh.create(AccountLocalHome.Active);
+ setAccount(account);
+
+ ProfileLocalHome plh = (ProfileLocalHome)
ic.lookup("java:comp/env/ejb/Profile");
+ ProfileLocal profile =
plh.create(ProfileLocalHome.DefaultPreferredLanguage,
+ ProfileLocalHome.DefaultFavoriteCategory,
ProfileLocalHome.DefaultMyListPreference,
+ ProfileLocalHome.DefaultBannerPreference);
+ setProfile(profile);
+ } catch (NamingException ne) {
+ throw new CreateException ("could not lookup ejb. Exception is "
+ ne.getMessage());
+ }
+ }
+
+ // Misc Method
+ //=============
+ public void setEntityContext(EntityContext c) {
+ context = c;
+ }
+ public void unsetEntityContext() { }
+ public void ejbRemove() throws RemoveException { }
+ public void ejbActivate() { }
+ public void ejbPassivate() { }
+ public void ejbStore() { }
+ public void ejbLoad() { }
+}

Added:
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/ejb/CustomerLocal.java
==============================================================================
--- (empty file)
+++
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/ejb/CustomerLocal.java
Tue Jan 18 13:50:36 2005
@@ -0,0 +1,50 @@
+/*
+ * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * - Redistribution in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any
+ * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
+ * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
+ * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES
+ * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
+ * DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
+ * OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
+ * FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
+ * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
+ * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * You acknowledge that Software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of
+ * any nuclear facility.
+ */
+
+package com.sun.j2ee.blueprints.customer.ejb;
+
+import com.sun.j2ee.blueprints.customer.account.ejb.AccountLocal;
+import com.sun.j2ee.blueprints.customer.profile.ejb.ProfileLocal;
+
+public interface CustomerLocal extends javax.ejb.EJBLocalObject {
+
+ public String getUserId();
+
+ public AccountLocal getAccount();
+ public ProfileLocal getProfile();
+}
+

Added:
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/ejb/CustomerLocalHome.java
==============================================================================
--- (empty file)
+++
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/ejb/CustomerLocalHome.java
Tue Jan 18 13:50:36 2005
@@ -0,0 +1,52 @@
+/*
+ * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * - Redistribution in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any
+ * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
+ * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
+ * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES
+ * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
+ * DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
+ * OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
+ * FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
+ * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
+ * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * You acknowledge that Software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of
+ * any nuclear facility.
+ */
+
+package com.sun.j2ee.blueprints.customer.ejb;
+
+import javax.ejb.CreateException;
+import javax.ejb.FinderException;
+
+import java.util.Collection;
+
+public interface CustomerLocalHome extends javax.ejb.EJBLocalHome {
+
+ public CustomerLocal create(String userId) throws CreateException;
+
+ public CustomerLocal findByPrimaryKey(String userId) throws
FinderException;
+
+ public Collection findAllCustomers() throws FinderException;
+}

Added:
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/profile/ejb/ProfileEJB.java
==============================================================================
--- (empty file)
+++
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/profile/ejb/ProfileEJB.java
Tue Jan 18 13:50:36 2005
@@ -0,0 +1,92 @@
+/*
+ * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * - Redistribution in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any
+ * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
+ * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
+ * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES
+ * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
+ * DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
+ * OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
+ * FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
+ * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
+ * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * You acknowledge that Software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of
+ * any nuclear facility.
+ */
+
+package com.sun.j2ee.blueprints.customer.profile.ejb;
+
+import javax.ejb.EntityContext;
+import javax.ejb.RemoveException;
+import javax.ejb.CreateException;
+import javax.naming.NamingException;
+import javax.naming.InitialContext;
+
+public abstract class ProfileEJB implements javax.ejb.EntityBean {
+
+ private EntityContext context = null;
+
+ // getters and setters for CMP fields
+ //====================================
+ public abstract String getPreferredLanguage();
+ public abstract void setPreferredLanguage(String preferredLanguage);
+
+ public abstract String getFavoriteCategory();
+ public abstract void setFavoriteCategory(String category);
+
+ public abstract boolean getMyListPreference();
+ public abstract void setMyListPreference(boolean myListPreference);
+
+ public abstract boolean getBannerPreference();
+ public abstract void setBannerPreference(boolean bannerPreference);
+
+ // EJB create method
+ //===================
+ public Object ejbCreate(String preferredLanguage, String
favoriteCategory,
+ boolean myListPreference, boolean bannerPreference) throws
CreateException {
+ setPreferredLanguage(preferredLanguage);
+ setFavoriteCategory(favoriteCategory);
+ setMyListPreference(myListPreference);
+ setBannerPreference(bannerPreference);
+ return null;
+ }
+
+ // Misc Method
+ //=============
+ public void ejbPostCreate(String preferredLanguage, String
favoriteCategory,
+ boolean myListPreference, boolean bannerPreference) throws
CreateException {
+ }
+
+ public void setEntityContext(EntityContext c) {
+ context = c;
+ }
+ public void unsetEntityContext() {
+ context = null;
+ }
+ public void ejbRemove() throws RemoveException { }
+ public void ejbActivate() { }
+ public void ejbPassivate() { }
+ public void ejbStore() { }
+ public void ejbLoad() { }
+}

Added:
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/profile/ejb/ProfileInfo.java
==============================================================================
--- (empty file)
+++
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/profile/ejb/ProfileInfo.java
Tue Jan 18 13:50:36 2005
@@ -0,0 +1,81 @@
+/*
+ * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * - Redistribution in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any
+ * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
+ * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
+ * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES
+ * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
+ * DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
+ * OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
+ * FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
+ * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
+ * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * You acknowledge that Software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of
+ * any nuclear facility.
+ */
+
+package com.sun.j2ee.blueprints.customer.profile.ejb;
+
+public class ProfileInfo implements java.io.Serializable {
+
+ private String defaultPreferredLanguage = null;
+ private String defaultFavoriteCategory = null;
+ private boolean defaultMyListPreference = false;
+ private boolean defaultBannerPreference = false;
+
+ public ProfileInfo( String defaultPreferredLanguage,
+ String defaultFavoriteCategory,
+ boolean defaultMyListPreference,
+ boolean defaultBannerPreference) {
+
+ this.defaultPreferredLanguage = defaultPreferredLanguage;
+ this.defaultFavoriteCategory = defaultFavoriteCategory;
+ this.defaultMyListPreference = defaultMyListPreference;
+ this.defaultBannerPreference = defaultBannerPreference;
+ }
+
+ public String getPreferredLanguage() {
+ return defaultPreferredLanguage;
+ }
+
+ public String getFavoriteCategory() {
+ return defaultFavoriteCategory;
+ }
+
+ public boolean getBannerPreference() {
+ return defaultBannerPreference;
+ }
+
+ public boolean getMyListPreference() {
+ return defaultMyListPreference;
+ }
+
+ public String toString() {
+ return "ProfileInfo[defaultPreferredLanguage=" +
defaultPreferredLanguage + ", " +
+ "defaultFavoriteCategory=" + defaultFavoriteCategory + ", " +
+ "defaultMyListPreference=" + defaultMyListPreference + ", " +
+ "defaultBannerPreference=" + defaultBannerPreference +
+ "]";
+ }
+}

Added:
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/profile/ejb/ProfileLocal.java
==============================================================================
--- (empty file)
+++
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/profile/ejb/ProfileLocal.java
Tue Jan 18 13:50:36 2005
@@ -0,0 +1,68 @@
+
+/*
+ * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * - Redistribution in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any
+ * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
+ * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
+ * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES
+ * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
+ * DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
+ * OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
+ * FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
+ * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
+ * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * You acknowledge that Software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of
+ * any nuclear facility.
+ */
+
+package com.sun.j2ee.blueprints.customer.profile.ejb;
+
+public interface ProfileLocal extends javax.ejb.EJBLocalObject {
+ /**
+ * Gets the language preference for this user.
+ * @return the language preference for this user
+ */
+ public String getPreferredLanguage();
+ public void setPreferredLanguage(String preferredLanguage);
+ /**
+ * Gets the favorite product category for this user.
+ * @return the favorite pet category for this user
+ */
+ public String getFavoriteCategory();
+ public void setFavoriteCategory(String category);
+
+ /**
+ * Gets whether this user has enabled/disabled the my list option.
+ * @return the my list option - enabled/disabled
+ */
+ public boolean getMyListPreference();
+ public void setMyListPreference(boolean myListPreference);
+
+ /**
+ * Gets whether this user has enabled/disabled the banner option.
+ * @return the banner option - enabled/disabled
+ */
+ public boolean getBannerPreference();
+ public void setBannerPreference(boolean bannerPreference);
+}

Added:
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/profile/ejb/ProfileLocalHome.java
==============================================================================
--- (empty file)
+++
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/profile/ejb/ProfileLocalHome.java
Tue Jan 18 13:50:36 2005
@@ -0,0 +1,53 @@
+/*
+ * Copyright 2002 Sun Microsystems, Inc. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ *
+ * - Redistribution in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in
+ * the documentation and/or other materials provided with the
+ * distribution.
+ *
+ * Neither the name of Sun Microsystems, Inc. or the names of
+ * contributors may be used to endorse or promote products derived
+ * from this software without specific prior written permission.
+ *
+ * This software is provided "AS IS," without a warranty of any
+ * kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
+ * WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
+ * FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
+ * EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES
+ * SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
+ * DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
+ * OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
+ * FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
+ * PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
+ * LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE SOFTWARE,
+ * EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+ *
+ * You acknowledge that Software is not designed, licensed or intended
+ * for use in the design, construction, operation or maintenance of
+ * any nuclear facility.
+ */
+
+package com.sun.j2ee.blueprints.customer.profile.ejb;
+
+import javax.ejb.CreateException;
+import javax.ejb.FinderException;
+
+public interface ProfileLocalHome extends javax.ejb.EJBLocalHome {
+ public static final String DefaultPreferredLanguage = "en_US";
+ public static final String DefaultFavoriteCategory = null;
+ public static final boolean DefaultMyListPreference = true;
+ public static final boolean DefaultBannerPreference = true;
+
+ public ProfileLocal create(String preferredLanguage, String
favoriteCategory,
+ boolean myListPreference, boolean bannerPreference) throws
CreateException;
+
+ public ProfileLocal findByPrimaryKey(Object key) throws FinderException;
+}

Added:
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/ejb-jar-manifest.mf
==============================================================================
--- (empty file)
+++
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/ejb-jar-manifest.mf
Tue Jan 18 13:50:36 2005
@@ -0,0 +1,2 @@
+Manifest-Version: 1.0
+Class-Path: xmldocuments.jar servicelocator.jar

Added:
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/ejb-jar.xml
==============================================================================
--- (empty file)
+++
development/laboratory/planet/j2ee/petstore-1.3.1/components/customer/src/ejb-jar.xml
Tue Jan 18 13:50:36 2005
@@ -0,0 +1,1494 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+ Copyright 2002 Sun Microsystems, Inc. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+
+ - Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+
+ - Redistribution in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in
+ the documentation and/or other materials provided with the
+ distribution.
+
+ Neither the name of Sun Microsystems, Inc. or the names of
+ contributors may be used to endorse or promote products derived
+ from this software without specific prior written permission.
+
+ This software is provided "AS IS," without a warranty of any
+ kind. ALL EXPRESS OR IMPLIED CONDITIONS, REPRESENTATIONS AND
+ WARRANTIES, INCLUDING ANY IMPLIED WARRANTY OF MERCHANTABILITY,
+ FITNESS FOR A PARTICULAR PURPOSE OR NON-INFRINGEMENT, ARE HEREBY
+ EXCLUDED. SUN AND ITS LICENSORS SHALL NOT BE LIABLE FOR ANY DAMAGES
+ SUFFERED BY LICENSEE AS A RESULT OF USING, MODIFYING OR
+ DISTRIBUTING THE SOFTWARE OR ITS DERIVATIVES. IN NO EVENT WILL SUN
+ OR ITS LICENSORS BE LIABLE FOR ANY LOST REVENUE, PROFIT OR DATA, OR
+ FOR DIRECT, INDIRECT, SPECIAL, CONSEQUENTIAL, INCIDENTAL OR
+ PUNITIVE DAMAGES, HOWEVER CAUSED AND REGARDLESS OF THE THEORY OF
+ LIABILITY, ARISING OUT OF THE USE OF OR INABILITY TO USE SOFTWARE,
+ EVEN IF SUN HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES.
+
+ You acknowledge that Software is not designed, licensed or intended
+ for use in the design, construction, operation or maintenance of
+ any nuclear facility.
+-->
+
+
+<!DOCTYPE ejb-jar PUBLIC '-//Sun Microsystems, Inc.//DTD Enterprise
JavaBeans 2.0//EN' 'http://java.sun.com/dtd/ejb-jar_2_0.dtd'>
+
+<ejb-jar>
+ <display-name>CustomerJAR</display-name>
+ <enterprise-beans>
+ <entity>
+ <display-name>CustomerEB</display-name>
+ <ejb-name>CustomerEJB</ejb-name>
+
<local-home>com.sun.j2ee.blueprints.customer.ejb.CustomerLocalHome</local-home>
+ <local>com.sun.j2ee.blueprints.customer.ejb.CustomerLocal</local>
+ <ejb-class>com.sun.j2ee.blueprints.customer.ejb.CustomerEJB</ejb-class>
+ <persistence-type>Container</persistence-type>
+ <prim-key-class>java.lang.String</prim-key-class>
+ <reentrant>False</reentrant>
+ <cmp-version>2.x</cmp-version>
+ <abstract-schema-name>Customer</abstract-schema-name>
+ <cmp-field>
+ <description>no description</description>
+ <field-name>userId</field-name>
+ </cmp-field>
+ <primkey-field>userId</primkey-field>
+ <ejb-local-ref>
+ <ejb-ref-name>ejb/Profile</ejb-ref-name>
+ <ejb-ref-type>Entity</ejb-ref-type>
+
<local-home>com.sun.j2ee.blueprints.customer.profile.ejb.ProfileLocalHome</local-home>
+
<local>com.sun.j2ee.blueprints.customer.profile.ejb.ProfileLocal</local>
+ <ejb-link>ProfileEJB</ejb-link>
+ </ejb-local-ref>
+ <ejb-local-ref>
+ <ejb-ref-name>ejb/Account</ejb-ref-name>
+ <ejb-ref-type>Entity</ejb-ref-type>
+
<local-home>com.sun.j2ee.blueprints.customer.account.ejb.AccountLocalHome</local-home>
+
<local>com.sun.j2ee.blueprints.customer.account.ejb.AccountLocal</local>
+ <ejb-link>AccountEJB</ejb-link>
+ </ejb-local-ref>
+ <security-identity>
+ <description></description>
+ <use-caller-identity></use-caller-identity>
+ </security-identity>
+ <query>
+ <description>EJBQL to find all Customers</description>
+ <query-method>
+ <method-name>findAllCustomers</method-name>
+ <!--method-intf>LocalHome</method-intf-->
+ <method-params />
+ </query-method>
+ <ejb-ql>Select OBJECT(a) From Customer a</ejb-ql>
+ </query>
+ </entity>
+ <entity>
+ <display-name>ProfileEB</display-name>
+ <ejb-name>ProfileEJB</ejb-name>
+
<local-home>com.sun.j2ee.blueprints.customer.profile.ejb.ProfileLocalHome</local-home>
+
<local>com.sun.j2ee.blueprints.customer.profile.ejb.ProfileLocal</local>
+
<ejb-class>com.sun.j2ee.blueprints.customer.profile.ejb.ProfileEJB</ejb-class>
+ <persistence-type>Container</persistence-type>
+ <prim-key-class>java.lang.Object</prim-key-class>
+ <reentrant>False</reentrant>
+ <cmp-version>2.x</cmp-version>
+ <abstract-schema-name>Profile</abstract-schema-name>
+ <cmp-field>
+ <description>no description</description>
+ <field-name>preferredLanguage</field-name>
+ </cmp-field>
+ <cmp-field>
+ <description>no description</description>
+ <field-name>myListPreference</field-name>
+ </cmp-field>
+ <cmp-field>
+ <description>no description</description>
+ <field-name>favoriteCategory</field-name>
+ </cmp-field>
+ <cmp-field>
+ <description>no description</description>
+ <field-name>bannerPreference</field-name>
+ </cmp-field>
+ <security-identity>
+ <description></description>
+ <use-caller-identity></use-caller-identity>
+ </security-identity>
+ </entity>
+ <entity>
+ <display-name>CreditCardEB</display-name>
+ <ejb-name>CreditCardEJB</ejb-name>
+
<local-home>com.sun.j2ee.blueprints.creditcard.ejb.CreditCardLocalHome</local-home>
+ <local>com.sun.j2ee.blueprints.creditcard.ejb.CreditCardLocal</local>
+
<ejb-class>com.sun.j2ee.blueprints.creditcard.ejb.CreditCardEJB</ejb-class>
+ <persistence-type>Container</persistence-type>
+ <prim-key-class>java.lang.Object</prim-key-class>
+ <reentrant>False</reentrant>
+ <cmp-version>2.x</cmp-version>
+ <abstract-schema-name>CreditCard</abstract-schema-name>
+ <cmp-field>
+ <description>no description</description>
+ <field-name>cardType</field-name>
+ </cmp-field>
+ <cmp-field>
+ <description>no description</description>
+ <field-name>expiryDate</field-name>
+ </cmp-field>
+ <cmp-field>
+ <description>no description</description>
+ <field-name>cardNumber</field-name>
+ </cmp-field>
+ <security-identity>
+ <description></description>
+ <use-caller-identity></use-caller-identity>
+ </security-identity>
+ </entity>
+ <entity>
+ <display-name>ContactInfoEB</display-name>
+ <ejb-name>ContactInfoEJB</ejb-name>
+
<local-home>com.sun.j2ee.blueprints.contactinfo.ejb.ContactInfoLocalHome</local-home>
+ <local>com.sun.j2ee.blueprints.contactinfo.ejb.ContactInfoLocal</local>
+
<ejb-class>com.sun.j2ee.blueprints.contactinfo.ejb.ContactInfoEJB</ejb-class>
+ <persistence-type>Container</persistence-type>
+ <prim-key-class>java.lang.Object</prim-key-class>
+ <reentrant>False</reentrant>
+ <cmp-version>2.x</cmp-version>
+ <abstract-schema-name>ContactInfo</abstract-schema-name>
+ <cmp-field>
+ <description>no description</description>
+ <field-name>familyName</field-name>
+ </cmp-field>
+ <cmp-field>
+ <description>no description</description>
+ <field-name>telephone</field-name>
+ </cmp-field>
+ <cmp-field>
+ <description>no description</description>
+ <field-name>givenName</field-name>
+ </cmp-field>
+ <cmp-field>
+ <description>no description</description>
+ <field-name>email</field-name>
+ </cmp-field>
+ <ejb-local-ref>
+ <ejb-ref-name>ejb/Address</ejb-ref-name>
+ <ejb-ref-type>Entity</ejb-ref-type>
+
<local-home>com.sun.j2ee.blueprints.address.ejb.AddressLocalHome</local-home>
+ <local>com.sun.j2ee.blueprints.address.ejb.AddressLocal</local>
+ <ejb-link>AddressEJB</ejb-link>
+ </ejb-local-ref>
+ <security-identity>
+ <description></description>
+ <use-caller-identity></use-caller-identity>
+ </security-identity>
+ </entity>
+ <entity>
+ <display-name>AddressEB</display-name>
+ <ejb-name>AddressEJB</ejb-name>
+
<local-home>com.sun.j2ee.blueprints.address.ejb.AddressLocalHome</local-home>
+ <local>com.sun.j2ee.blueprints.address.ejb.AddressLocal</local>
+ <ejb-class>com.sun.j2ee.blueprints.address.ejb.AddressEJB</ejb-class>
+ <persistence-type>Container</persistence-type>
+ <prim-key-class>java.lang.Object</prim-key-class>
+ <reentrant>False</reentrant>
+ <cmp-version>2.x</cmp-version>
+ <abstract-schema-name>Address</abstract-schema-name>
+ <cmp-field>
+ <description>no description</description>
+ <field-name>zipCode</field-name>
+ </cmp-field>
+ <cmp-field>
+ <description>no description</description>
+ <field-name>state</field-name>
+ </cmp-field>
+ <cmp-field>
+ <description>no description</description>
+ <field-name>streetName2</field-name>
+ </cmp-field>
+ <cmp-field>
+ <description>no description</description>
+ <field-name>streetName1</field-name>
+ </cmp-field>
+ <cmp-field>
+ <description>no description</description>
+ <field-name>country</field-name>
+ </cmp-field>
+ <cmp-field>
+ <description>no description</description>
+ <field-name>city</field-name>
+ </cmp-field>
+ <security-identity>
+ <description></description>
+ <use-caller-identity></use-caller-identity>
+ </security-identity>
+ </entity>
+ <entity>
+ <display-name>AccountEB</display-name>
+ <ejb-name>AccountEJB</ejb-name>
+
<local-home>com.sun.j2ee.blueprints.customer.account.ejb.AccountLocalHome</local-home>
+
<local>com.sun.j2ee.blueprints.customer.account.ejb.AccountLocal</local>
+
<ejb-class>com.sun.j2ee.blueprints.customer.account.ejb.AccountEJB</ejb-class>
+ <persistence-type>Container</persistence-type>
+ <prim-key-class>java.lang.Object</prim-key-class>
+ <reentrant>False</reentrant>
+ <cmp-version>2.x</cmp-version>
+ <abstract-schema-name>Account</abstract-schema-name>
+ <cmp-field>
+ <description>no description</description>
+ <field-name>status</field-name>
+ </cmp-field>
+ <ejb-local-ref>
+ <ejb-ref-name>ejb/CreditCard</ejb-ref-name>
+ <ejb-ref-type>Entity</ejb-ref-type>
+
<local-home>com.sun.j2ee.blueprints.creditcard.ejb.CreditCardLocalHome</local-home>
+ <local>com.sun.j2ee.blueprints.creditcard.ejb.CreditCardLocal</local>
+ <ejb-link>CreditCardEJB</ejb-link>
+ </ejb-local-ref>
+ <ejb-local-ref>
+ <ejb-ref-name>ejb/ContactInfo</ejb-ref-name>
+ <ejb-ref-type>Entity</ejb-ref-type>
+
<local-home>com.sun.j2ee.blueprints.contactinfo.ejb.ContactInfoLocalHome</local-home>
+
<local>com.sun.j2ee.blueprints.contactinfo.ejb.ContactInfoLocal</local>
+ <ejb-link>ContactInfoEJB</ejb-link>
+ </ejb-local-ref>
+ <security-identity>
+ <description></description>
+ <use-caller-identity></use-caller-identity>
+ </security-identity>
+ </entity>
+ </enterprise-beans>
+ <relationships>
+ <ejb-relation>
+ <ejb-relation-name></ejb-relation-name>
+ <ejb-relationship-role>
+ <ejb-relationship-role-name>CustomerEJB</ejb-relationship-role-name>
+ <multiplicity>One</multiplicity>
+ <relationship-role-source>
+ <ejb-name>CustomerEJB</ejb-name>
+ </relationship-role-source>
+ <cmr-field>
+ <cmr-field-name>account</cmr-field-name>
+ </cmr-field>
+ </ejb-relationship-role>
+ <ejb-relationship-role>
+ <ejb-relationship-role-name>AccountEJB</ejb-relationship-role-name>
+ <multiplicity>One</multiplicity>
+ <cascade-delete />
+ <relationship-role-source>
+ <ejb-name>AccountEJB</ejb-name>
+ </relationship-role-source>
+ </ejb-relationship-role>
+ </ejb-relation>
+ <ejb-relation>
+ <ejb-relation-name></ejb-relation-name>
+ <ejb-relationship-role>
+
<ejb-relationship-role-name>ContactInfoEJB</ejb-relationship-role-name>
+ <multiplicity>One</multiplicity>
+ <relationship-role-source>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ </relationship-role-source>
+ <cmr-field>
+ <cmr-field-name>address</cmr-field-name>
+ </cmr-field>
+ </ejb-relationship-role>
+ <ejb-relationship-role>
+ <ejb-relationship-role-name>AddressEJB</ejb-relationship-role-name>
+ <multiplicity>One</multiplicity>
+ <cascade-delete />
+ <relationship-role-source>
+ <ejb-name>AddressEJB</ejb-name>
+ </relationship-role-source>
+ </ejb-relationship-role>
+ </ejb-relation>
+ <ejb-relation>
+ <ejb-relation-name></ejb-relation-name>
+ <ejb-relationship-role>
+ <ejb-relationship-role-name>CustomerEJB</ejb-relationship-role-name>
+ <multiplicity>One</multiplicity>
+ <relationship-role-source>
+ <ejb-name>CustomerEJB</ejb-name>
+ </relationship-role-source>
+ <cmr-field>
+ <cmr-field-name>profile</cmr-field-name>
+ </cmr-field>
+ </ejb-relationship-role>
+ <ejb-relationship-role>
+ <ejb-relationship-role-name>ProfileEJB</ejb-relationship-role-name>
+ <multiplicity>One</multiplicity>
+ <cascade-delete />
+ <relationship-role-source>
+ <ejb-name>ProfileEJB</ejb-name>
+ </relationship-role-source>
+ </ejb-relationship-role>
+ </ejb-relation>
+ <ejb-relation>
+ <ejb-relation-name></ejb-relation-name>
+ <ejb-relationship-role>
+ <ejb-relationship-role-name>AccountEJB</ejb-relationship-role-name>
+ <multiplicity>One</multiplicity>
+ <relationship-role-source>
+ <ejb-name>AccountEJB</ejb-name>
+ </relationship-role-source>
+ <cmr-field>
+ <cmr-field-name>contactInfo</cmr-field-name>
+ </cmr-field>
+ </ejb-relationship-role>
+ <ejb-relationship-role>
+
<ejb-relationship-role-name>ContactInfoEJB</ejb-relationship-role-name>
+ <multiplicity>One</multiplicity>
+ <cascade-delete />
+ <relationship-role-source>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ </relationship-role-source>
+ </ejb-relationship-role>
+ </ejb-relation>
+ <ejb-relation>
+ <ejb-relation-name></ejb-relation-name>
+ <ejb-relationship-role>
+ <ejb-relationship-role-name>AccountEJB</ejb-relationship-role-name>
+ <multiplicity>One</multiplicity>
+ <relationship-role-source>
+ <ejb-name>AccountEJB</ejb-name>
+ </relationship-role-source>
+ <cmr-field>
+ <cmr-field-name>creditCard</cmr-field-name>
+ </cmr-field>
+ </ejb-relationship-role>
+ <ejb-relationship-role>
+
<ejb-relationship-role-name>CreditCardEJB</ejb-relationship-role-name>
+ <multiplicity>One</multiplicity>
+ <cascade-delete />
+ <relationship-role-source>
+ <ejb-name>CreditCardEJB</ejb-name>
+ </relationship-role-source>
+ </ejb-relationship-role>
+ </ejb-relation>
+ </relationships>
+ <assembly-descriptor>
+ <method-permission>
+ <unchecked />
+ <method>
+ <ejb-name>ProfileEJB</ejb-name>
+ <method-name>*</method-name>
+ </method>
+ </method-permission>
+ <method-permission>
+ <unchecked />
+ <method>
+ <ejb-name>AddressEJB</ejb-name>
+ <method-name>*</method-name>
+ </method>
+ </method-permission>
+ <method-permission>
+ <unchecked />
+ <method>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ <method-name>*</method-name>
+ </method>
+ </method-permission>
+ <method-permission>
+ <unchecked />
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-name>*</method-name>
+ </method>
+ </method-permission>
+ <method-permission>
+ <unchecked />
+ <method>
+ <ejb-name>CustomerEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>remove</method-name>
+ <method-params>
+ <method-param>java.lang.Object</method-param>
+ </method-params>
+ </method>
+ <method>
+ <ejb-name>CustomerEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getEJBLocalHome</method-name>
+ <method-params />
+ </method>
+ <method>
+ <ejb-name>CustomerEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getUserId</method-name>
+ <method-params />
+ </method>
+ <method>
+ <ejb-name>CustomerEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>findByPrimaryKey</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <method>
+ <ejb-name>CustomerEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>findAllCustomers</method-name>
+ <method-params />
+ </method>
+ <method>
+ <ejb-name>CustomerEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getProfile</method-name>
+ <method-params />
+ </method>
+ <method>
+ <ejb-name>CustomerEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>create</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <method>
+ <ejb-name>CustomerEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getAccount</method-name>
+ <method-params />
+ </method>
+ <method>
+ <ejb-name>CustomerEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getPrimaryKey</method-name>
+ <method-params />
+ </method>
+ <method>
+ <ejb-name>CustomerEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>remove</method-name>
+ <method-params />
+ </method>
+ <method>
+ <ejb-name>CustomerEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>isIdentical</method-name>
+ <method-params>
+ <method-param>javax.ejb.EJBLocalObject</method-param>
+ </method-params>
+ </method>
+ </method-permission>
+ <method-permission>
+ <unchecked />
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>remove</method-name>
+ <method-params>
+ <method-param>java.lang.Object</method-param>
+ </method-params>
+ </method>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setExpiryDate</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getExpiryDate</method-name>
+ <method-params />
+ </method>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getEJBLocalHome</method-name>
+ <method-params />
+ </method>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>findByPrimaryKey</method-name>
+ <method-params>
+ <method-param>java.lang.Object</method-param>
+ </method-params>
+ </method>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setCardType</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getPrimaryKey</method-name>
+ <method-params />
+ </method>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>remove</method-name>
+ <method-params />
+ </method>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>create</method-name>
+ <method-params />
+ </method>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setCardNumber</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getCardType</method-name>
+ <method-params />
+ </method>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getCardNumber</method-name>
+ <method-params />
+ </method>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>isIdentical</method-name>
+ <method-params>
+ <method-param>javax.ejb.EJBLocalObject</method-param>
+ </method-params>
+ </method>
+ </method-permission>
+ <method-permission>
+ <unchecked />
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>remove</method-name>
+ <method-params>
+ <method-param>java.lang.Object</method-param>
+ </method-params>
+ </method>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getContactInfo</method-name>
+ <method-params />
+ </method>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getEJBLocalHome</method-name>
+ <method-params />
+ </method>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getStatus</method-name>
+ <method-params />
+ </method>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>findByPrimaryKey</method-name>
+ <method-params>
+ <method-param>java.lang.Object</method-param>
+ </method-params>
+ </method>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>create</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+
<method-param>com.sun.j2ee.blueprints.contactinfo.ejb.ContactInfoLocal</method-param>
+
<method-param>com.sun.j2ee.blueprints.creditcard.ejb.CreditCardLocal</method-param>
+ </method-params>
+ </method>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setCreditCard</method-name>
+ <method-params>
+
<method-param>com.sun.j2ee.blueprints.creditcard.ejb.CreditCardLocal</method-param>
+ </method-params>
+ </method>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>create</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getCreditCard</method-name>
+ <method-params />
+ </method>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getPrimaryKey</method-name>
+ <method-params />
+ </method>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>remove</method-name>
+ <method-params />
+ </method>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setContactInfo</method-name>
+ <method-params>
+
<method-param>com.sun.j2ee.blueprints.contactinfo.ejb.ContactInfoLocal</method-param>
+ </method-params>
+ </method>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>isIdentical</method-name>
+ <method-params>
+ <method-param>javax.ejb.EJBLocalObject</method-param>
+ </method-params>
+ </method>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setStatus</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ </method-permission>
+ <container-transaction>
+ <method>
+ <ejb-name>CustomerEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getAccount</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CustomerEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getProfile</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CustomerEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>remove</method-name>
+ <method-params>
+ <method-param>java.lang.Object</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CustomerEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>remove</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CustomerEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>create</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CustomerEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>findByPrimaryKey</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CustomerEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>findAllCustomers</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CustomerEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getUserId</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ProfileEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>remove</method-name>
+ <method-params>
+ <method-param>java.lang.Object</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ProfileEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setPreferredLanguage</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ProfileEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getMyListPreference</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ProfileEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>findByPrimaryKey</method-name>
+ <method-params>
+ <method-param>java.lang.Object</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ProfileEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setMyListPreference</method-name>
+ <method-params>
+ <method-param>boolean</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ProfileEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getPreferredLanguage</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ProfileEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>create</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ <method-param>java.lang.String</method-param>
+ <method-param>boolean</method-param>
+ <method-param>boolean</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ProfileEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>remove</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ProfileEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getBannerPreference</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ProfileEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setBannerPreference</method-name>
+ <method-params>
+ <method-param>boolean</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ProfileEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getFavoriteCategory</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ProfileEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setFavoriteCategory</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>remove</method-name>
+ <method-params>
+ <method-param>java.lang.Object</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>remove</method-name>
+ <method-params>
+ <method-param>java.lang.Object</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getExpiryDate</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getExpiryMonth</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getExpiryYear</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setExpiryDate</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getData</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>findByPrimaryKey</method-name>
+ <method-params>
+ <method-param>java.lang.Object</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>create</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ <method-param>java.lang.String</method-param>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setCardType</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>remove</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>create</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getCardNumber</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setCardNumber</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getCardType</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>CreditCardEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getData</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>remove</method-name>
+ <method-params>
+ <method-param>java.lang.Object</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getTelephone</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setFamilyName</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getFamilyName</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setEmail</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>findByPrimaryKey</method-name>
+ <method-params>
+ <method-param>java.lang.Object</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setTelephone</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getGivenName</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getEmail</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setAddress</method-name>
+ <method-params>
+
<method-param>com.sun.j2ee.blueprints.address.ejb.AddressLocal</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>remove</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getAddress</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setGivenName</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getData</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>create</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ <method-param>java.lang.String</method-param>
+ <method-param>java.lang.String</method-param>
+ <method-param>java.lang.String</method-param>
+
<method-param>com.sun.j2ee.blueprints.address.ejb.AddressLocal</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>ContactInfoEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>create</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AddressEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getCountry</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AddressEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setStreetName2</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AddressEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setStreetName1</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AddressEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getZipCode</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AddressEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setState</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AddressEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getCity</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AddressEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>remove</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AddressEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setZipCode</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AddressEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getStreetName2</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AddressEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getStreetName1</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AddressEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setCountry</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AddressEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getState</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AddressEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setCity</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AddressEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getData</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AddressEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>create</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ <method-param>java.lang.String</method-param>
+ <method-param>java.lang.String</method-param>
+ <method-param>java.lang.String</method-param>
+ <method-param>java.lang.String</method-param>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AddressEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>create</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AddressEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>findByPrimaryKey</method-name>
+ <method-params>
+ <method-param>java.lang.Object</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>remove</method-name>
+ <method-params>
+ <method-param>java.lang.Object</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getContactInfo</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>findByPrimaryKey</method-name>
+ <method-params>
+ <method-param>java.lang.Object</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getStatus</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>create</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+
<method-param>com.sun.j2ee.blueprints.contactinfo.ejb.ContactInfoLocal</method-param>
+
<method-param>com.sun.j2ee.blueprints.creditcard.ejb.CreditCardLocal</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setCreditCard</method-name>
+ <method-params>
+
<method-param>com.sun.j2ee.blueprints.creditcard.ejb.CreditCardLocal</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>LocalHome</method-intf>
+ <method-name>create</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>getCreditCard</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>remove</method-name>
+ <method-params />
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setContactInfo</method-name>
+ <method-params>
+
<method-param>com.sun.j2ee.blueprints.contactinfo.ejb.ContactInfoLocal</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>AccountEJB</ejb-name>
+ <method-intf>Local</method-intf>
+ <method-name>setStatus</method-name>
+ <method-params>
+ <method-param>java.lang.String</method-param>
+ </method-params>
+ </method>
+ <trans-attribute>Required</trans-attribute>
+ </container-transaction>
+ </assembly-descriptor>
+</ejb-jar>
+
+



  • svn commit: r1523 - in development/laboratory/planet: components/transitionmachine components/transitionmachine/basic/src/main/net/dpml/transitionmachine/basic components/transitionmachine/demo/trafficlight components/transitionmachine/demo/trafficlight/src/main/net/dpml/transitionmachine/trafficlight j2ee j2ee/petstore-1.3.1 j2ee/petstore-1.3.1/components j2ee/petstore-1.3.1/components/customer j2ee/petstore-1.3.1/components/customer/src j2ee/petstore-1.3.1/components/customer/src/com j2ee/petstore-1.3.1/components/customer/src/com/sun j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/account j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/account/ejb j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/ejb j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/profile j2ee/petstore-1.3.1/components/customer/src/com/sun/j2ee/blueprints/customer/profile/ejb, niclas, 01/18/2005

Archive powered by MHonArc 2.6.24.

Top of Page