You are viewing a plain text version of this content. The canonical link for it is here.
Posted to scm@geronimo.apache.org by ec...@apache.org on 2008/03/12 22:56:03 UTC

svn commit: r636529 [2/15] - in /geronimo/samples/branches/1.0: ./ migration-ejb-bmp/ migration-ejb-bmp/dd/ migration-ejb-bmp/dd/META-INF/ migration-ejb-bmp/jndi/ migration-ejb-bmp/src/ migration-ejb-bmp/src/com/ migration-ejb-bmp/src/com/ibm/ migratio...

Added: geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerBean.java
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerBean.java?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerBean.java (added)
+++ geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerBean.java Wed Mar 12 14:54:41 2008
@@ -0,0 +1,542 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License.  You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+/*
+ * Created on Sep 26, 2005
+ *
+ * TODO To change the template for this generated file go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+package com.ibm.demo.entity.bmp;
+
+import java.sql.Connection;
+import java.sql.PreparedStatement;
+import java.sql.ResultSet;
+import java.sql.SQLException;
+import java.util.Date;
+import java.util.Collection;
+import java.util.ArrayList;
+
+import javax.ejb.CreateException;
+import javax.ejb.EJBException;
+import javax.ejb.EntityBean;
+import javax.ejb.EntityContext;
+import javax.ejb.FinderException;
+import javax.ejb.ObjectNotFoundException;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+import javax.naming.NamingException;
+import javax.sql.DataSource;
+
+/**
+ * @author cpineda
+ * 
+ * TODO To change the template for this generated type comment go to Window -
+ * Preferences - Java - Code Style - Code Templates
+ */
+public class CustomerBean implements EntityBean {
+
+    public Integer id;
+
+    public String name;
+
+    public String address;
+
+    public Date birthdate;
+
+    public String sssNo;
+
+    public Double annualSalary;
+
+    public Double loanAmount;
+
+    public EntityContext context;
+
+    /**
+     * 
+     * @param id
+     * @param name
+     * @param sssNo
+     * @param address
+     * @param birthdate
+     * @param annualSalary
+     * @param loanAmount
+     * @return @throws
+     *         CreateException
+     */
+    public Integer ejbCreate(Integer id, String name, String sssNo,
+            String address, Date birthdate, Double annualSalary,
+            Double loanAmount) throws CreateException {
+        String insertQuery = "INSERT INTO CUSTOMER "
+                + "(ID,NAME,SSS_NO,BIRTHDATE,ADDRESS,ANNUAL_SALARY,LOAN_AMOUNT)"
+                + " VALUES (?,?,?,?,?,?,?)";
+        this.id = id;
+        this.name = name;
+        this.birthdate = birthdate;
+        this.sssNo = sssNo;
+        this.address = address;
+        this.annualSalary = annualSalary;
+        this.loanAmount = loanAmount;
+        Connection conn = null;
+        PreparedStatement ps = null;
+        try {
+            conn = this.getConnection();
+            ps = conn.prepareStatement(insertQuery);
+            ps.setInt(1, id.intValue());
+            ps.setString(2, name);
+            ps.setString(3, sssNo);
+            ps.setDate(4, new java.sql.Date(birthdate.getTime()));
+            ps.setString(5, address);
+            ps.setDouble(6, annualSalary.doubleValue());
+            ps.setDouble(7, loanAmount.doubleValue());
+            if (ps.executeUpdate() != 1) {
+                throw new CreateException("Failed to Add Customer");
+            }
+        } catch (SQLException se) {
+            throw new EJBException(se);
+        } finally {
+            try {
+                ps.close();
+            } catch (Exception e) {
+            }
+            try {
+                conn.close();
+            } catch (Exception e) {
+            }
+        }
+        return id;
+    }
+
+    /**
+     * 
+     * @param id
+     * @return @throws
+     *         CreateException
+     */
+    public Integer ejbCreate(Integer id) throws CreateException {
+        String insertQuery = "INSERT INTO CUSTOMER " + "(ID)" + " VALUES (?)";
+        this.id = id;
+        Connection conn = null;
+        PreparedStatement ps = null;
+            try {
+            conn = this.getConnection();
+            ps = conn.prepareStatement(insertQuery);
+            ps.setInt(1, id.intValue());
+            if (ps.executeUpdate() != 1) {
+                throw new CreateException("Failed to Add Customer");
+            }   
+        } catch (SQLException se) {
+            se.printStackTrace();
+            throw new EJBException(se);
+        } finally {
+            try {
+                ps.close();
+            } catch (Exception e) {
+            }
+            try {
+                conn.close();
+            } catch (Exception e) {
+            }
+        }
+        return id;
+    }
+
+    /**
+     * 
+     * @param id
+     * @param name
+     * @param sssNo
+     * @param address
+     * @param birthdate
+     * @param annualSalary
+     * @param loanAmount
+     */
+    public void ejbPostCreate(Integer id, String name, String sssNo,
+            String address, Date birthdate, Double annualSalary,
+            Double loanAmount) {
+
+    }
+
+    /**
+     * 
+     * @param id
+     */
+    public void ejbPostCreate(Integer id) {
+
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see javax.ejb.EntityBean#setEntityContext(javax.ejb.EntityContext)
+     */
+    public void setEntityContext(EntityContext context) {
+        this.context = context;
+    }
+
+    /*
+     * (non-Javadoc)
+     * 
+     * @see javax.ejb.EntityBean#unsetEntityContext()
+     */
+    public void unsetEntityContext() {
+        this.context = null;
+    }
+
+    /**
+     * 
+     * @param primaryKey
+     * @return @throws
+     *         FinderException
+     */
+    public Integer ejbFindByPrimaryKey(Integer primaryKey)
+            throws FinderException {
+        Connection conn = null;
+        PreparedStatement ps = null;
+        ResultSet result = null;
+        String query = "SELECT ID FROM CUSTOMER WHERE ID=?";
+
+        try {
+            conn = this.getConnection();
+            ps = conn.prepareStatement(query);
+            ps.setInt(1, primaryKey.intValue());
+            result = ps.executeQuery();
+            if (!result.next()) {
+                throw new ObjectNotFoundException(
+                        "Customer not found with ID: " + primaryKey);
+            }
+        } catch (SQLException se) {
+            throw new EJBException(se);
+        } finally {
+            try {
+                result.close();
+            } catch (Exception e) {
+            }
+            try {
+                ps.close();
+            } catch (Exception e) {
+            }
+            try {
+                conn.close();
+            } catch (Exception e) {
+            }
+        }
+        return primaryKey;
+    }
+
+    /**
+     * 
+     * @param sssNo
+     * @return @throws
+     *         FinderException
+     */
+    public Integer ejbFindBySssNo(String sssNo) throws FinderException {
+        Connection conn = null;
+        PreparedStatement ps = null;
+        ResultSet result = null;
+        String query = "SELECT ID FROM CUSTOMER WHERE SSS_NO=?";
+        int customerId;
+
+        try {
+            conn = this.getConnection();
+            ps = conn.prepareStatement(query);
+            ps.setString(1, sssNo);
+            result = ps.executeQuery();
+            if (!result.next()) {
+                throw new ObjectNotFoundException(
+                        "Customer not found with SSS_NO:" + sssNo);
+            } else {
+                customerId = result.getInt(1);
+            }
+            if (result.next()) {
+                //Invalid state duplicate entry for unique index
+                throw new SQLException(
+                        "Invalid database state.Duplicate entries for unique index SSS_NO");
+            }
+        } catch (SQLException se) {
+            throw new EJBException(se);
+        } finally {
+            try {
+                result.close();
+            } catch (Exception e) {
+            }
+            try {
+                ps.close();
+            } catch (Exception e) {
+            }
+            try {
+                conn.close();
+            } catch (Exception e) {
+            }
+        }
+        return new Integer(customerId);
+    }
+
+/**
+     * 
+     * @return @throws
+     *         FinderException
+     */
+    public Collection ejbFindAll() throws FinderException {
+        Collection ret = new ArrayList();
+        Connection conn = null;
+        PreparedStatement ps = null;
+        ResultSet result = null;
+        String query = "SELECT ID FROM CUSTOMER";
+
+        try {
+            conn = this.getConnection();
+            ps = conn.prepareStatement(query);
+            result = ps.executeQuery();
+            while(result.next()) {
+                ret.add(new Integer(result.getInt(1)));
+            }
+        } catch (SQLException se) {
+            throw new EJBException(se);
+        } finally {
+            try {
+                result.close();
+            } catch (Exception e) {
+            }
+            try {
+                ps.close();
+            } catch (Exception e) {
+            }
+            try {
+                conn.close();
+            } catch (Exception e) {
+            }
+        }
+        return ret;
+    }
+    
+    public void ejbActivate() {
+        // Not implemented.
+    }
+
+    public void ejbPassivate() {
+        // Not implemented.
+    }
+
+    public void ejbLoad() {
+
+        Integer primaryKey = (Integer) context.getPrimaryKey();
+        Connection conn = null;
+        PreparedStatement ps = null;
+        ResultSet result = null;
+        String query = "SELECT NAME,BIRTHDATE,SSS_NO,ADDRESS,ANNUAL_SALARY,LOAN_AMOUNT"
+                + " FROM CUSTOMER WHERE ID=?";
+        try {
+            conn = this.getConnection();
+            ps= conn.prepareStatement(query);
+            ps.setInt(1, primaryKey.intValue());
+            result = ps.executeQuery();
+
+            if (result.next()) {
+                this.id = primaryKey;
+                this.name = result.getString(1);
+                this.birthdate = new Date(result.getDate(2).getTime());
+                this.sssNo = result.getString(3);
+                this.address = result.getString(4);
+                this.annualSalary = new Double(result.getDouble(5));
+                this.loanAmount = new Double(result.getDouble(6));
+
+            } else {
+                throw new EJBException();
+            }
+        } catch (SQLException se) {
+            throw new EJBException(se);
+        } finally {
+            try {
+                result.close();
+            } catch (Exception e) {
+            }
+            try {
+                ps.close();
+            } catch (Exception e) {
+            }
+            try {
+                conn.close();
+            } catch (Exception e) {
+            }
+        }
+    }
+
+    public void ejbStore() {
+        String updateQuery = "UPDATE CUSTOMER SET NAME=?, BIRTHDATE=?, SSS_NO=?, ADDRESS=?,ANNUAL_SALARY=?,LOAN_AMOUNT=? WHERE ID=?";
+        Connection conn = null;
+        PreparedStatement ps = null;
+        try {
+            conn = this.getConnection();
+            ps = conn.prepareStatement(updateQuery);
+            ps.setString(1, name);
+            ps.setDate(2, new java.sql.Date(birthdate.getTime()));
+            ps.setString(3, sssNo);
+            ps.setString(4, address);
+            ps.setDouble(5, annualSalary.doubleValue());
+            ps.setDouble(6, loanAmount.doubleValue());
+            ps.setInt(7, id.intValue());
+            ps.executeUpdate();
+            /*if (ps.executeUpdate() != 1) {
+                throw new EJBException("ejbStore unable to update table");
+            }*/
+        } catch (SQLException se) {
+            se.printStackTrace();
+            throw new EJBException(se);
+        } finally {
+            try {
+                ps.close();
+            } catch (Exception e) {
+            }
+            try {
+                conn.close();
+            } catch (Exception e) {
+            }
+        }
+    }
+
+    public void ejbRemove() {
+        String deleteQuery = "DELETE FROM CUSTOMER WHERE ID=?";
+        Connection conn = null;
+        PreparedStatement ps = null;
+        try {
+            conn = this.getConnection();
+            ps = conn.prepareStatement(deleteQuery);
+            ps.setInt(1, id.intValue());
+            if (ps.executeUpdate() != 1) {
+                throw new EJBException("ejbStore unable to update table");
+            }
+        } catch (SQLException se) {
+            throw new EJBException(se);
+        } finally {
+            try {
+                ps.close();
+            } catch (Exception e) {
+            }
+            try {
+                conn.close();
+            } catch (Exception e) {
+            }
+        }
+    }
+
+    /**
+     * 
+     * @return @throws
+     *         SQLException
+     */
+    private Connection getConnection() throws SQLException {
+        try {
+            Context jndiCntx = new InitialContext();
+            DataSource ds = (DataSource) jndiCntx
+                    .lookup("java:comp/env/jdbc/ibm-demo");
+            return ds.getConnection();
+        } catch (NamingException ne) {
+            ne.printStackTrace();
+            throw new EJBException(ne);
+        }
+    }
+
+    /**
+     * @return Returns the address.
+     */
+    public String getAddress() {
+        return address;
+    }
+
+    /**
+     * @param address
+     *            The address to set.
+     */
+    public void setAddress(String address) {
+        this.address = address;
+    }
+
+    /**
+     * @return Returns the annualSalary.
+     */
+    public Double getAnnualSalary() {
+        return annualSalary;
+    }
+
+    /**
+     * @param annualSalary
+     *            The annualSalary to set.
+     */
+    public void setAnnualSalary(Double annualSalary) {
+        this.annualSalary = annualSalary;
+    }
+
+    /**
+     * @return Returns the birthdate.
+     */
+    public Date getBirthdate() {
+        return birthdate;
+    }
+
+    /**
+     * @param birthdate
+     *            The birthdate to set.
+     */
+    public void setBirthdate(Date birthdate) {
+        this.birthdate = birthdate;
+    }
+
+    /**
+     * @return Returns the loanAmount.
+     */
+    public Double getLoanAmount() {
+        return loanAmount;
+    }
+
+    /**
+     * @param loanAmount
+     *            The loanAmount to set.
+     */
+    public void setLoanAmount(Double loanAmount) {
+        this.loanAmount = loanAmount;
+    }
+
+    /**
+     * @return Returns the name.
+     */
+    public String getName() {
+        return name;
+    }
+
+    /**
+     * @param name
+     *            The name to set.
+     */
+    public void setName(String name) {
+        this.name = name;
+    }
+
+    /**
+     * @return Returns the sssNo.
+     */
+    public String getSssNo() {
+        return sssNo;
+    }
+
+    /**
+     * @param sssNo
+     *            The sssNo to set.
+     */
+    public void setSssNo(String sssNo) {
+        this.sssNo = sssNo;
+    }
+}
\ No newline at end of file

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerBean.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerBean.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerHomeRemote.java
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerHomeRemote.java?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerHomeRemote.java (added)
+++ geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerHomeRemote.java Wed Mar 12 14:54:41 2008
@@ -0,0 +1,89 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License.  You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+/*
+ * Created on Sep 26, 2005
+ *
+ * TODO To change the template for this generated file go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+package com.ibm.demo.entity.bmp;
+
+import java.rmi.RemoteException;
+import java.util.Date;
+import java.util.Collection;
+
+import javax.ejb.CreateException;
+import javax.ejb.EJBHome;
+import javax.ejb.FinderException;
+
+/**
+ * @author cpineda
+ * 
+ * TODO To change the template for this generated type comment go to Window -
+ * Preferences - Java - Code Style - Code Templates
+ */
+public interface CustomerHomeRemote extends EJBHome {
+
+    /**
+     * 
+     * @param id
+     * @param name
+     * @param sssNo
+     * @param address
+     * @param birthdate
+     * @param annualSalary
+     * @param loanAmount
+     * @return
+     * @throws CreateException
+     * @throws RemoteException
+     */
+    public CustomerRemote create(Integer id,String name,String sssNo,String address,Date birthdate,
+                                 Double annualSalary,Double loanAmount) throws CreateException,RemoteException;
+    
+    /**
+     * 
+     * @param primaryKey
+     * @return
+     * @throws CreateException
+     * @throws RemoteException
+     */
+    public CustomerRemote create(Integer primaryKey)throws CreateException,RemoteException;
+
+    /**
+     * 
+     * @param pk
+     * @return @throws
+     *         FinderException
+     * @throws RemoteException
+     */
+    public CustomerRemote findByPrimaryKey(Integer pk) throws FinderException,
+            RemoteException;
+
+    public Collection findAll() throws FinderException,
+            RemoteException;
+
+    /**
+     * 
+     * @param sssNo
+     * @return @throws
+     *         FinderException
+     * @throws RemoteException
+     */
+    public CustomerRemote findBySssNo(String sssNo) throws FinderException,
+            RemoteException;
+
+}
\ No newline at end of file

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerHomeRemote.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerHomeRemote.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerHomeRemote.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerRemote.java
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerRemote.java?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerRemote.java (added)
+++ geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerRemote.java Wed Mar 12 14:54:41 2008
@@ -0,0 +1,58 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License.  You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+/*
+ * Created on Sep 26, 2005
+ *
+ * TODO To change the template for this generated file go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+package com.ibm.demo.entity.bmp;
+
+import java.util.Date;
+
+import javax.ejb.EJBObject;
+import java.rmi.RemoteException;
+
+/**
+ * @author cpineda
+ * 
+ * TODO To change the template for this generated type comment go to Window -
+ * Preferences - Java - Code Style - Code Templates
+ */
+public interface CustomerRemote extends EJBObject {
+
+    
+    public void setName(String name) throws RemoteException;
+    public String getName() throws RemoteException;
+    
+    public void setSssNo(String sssNo) throws RemoteException;
+    public String getSssNo() throws RemoteException;
+    
+    public void setAddress(String address) throws RemoteException;
+    public String getAddress() throws RemoteException;
+    
+    public void setBirthdate(Date birthdate) throws RemoteException;
+    public Date getBirthdate() throws RemoteException;
+    
+    public void setAnnualSalary(Double annualSalary) throws RemoteException;
+    public Double getAnnualSalary() throws RemoteException;
+    
+    public void setLoanAmount(Double loanAmount) throws RemoteException;
+    public Double getLoanAmount() throws RemoteException;
+    
+
+}
\ No newline at end of file

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerRemote.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerRemote.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/bmp/CustomerRemote.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/client/EntityBeanClient.java
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/client/EntityBeanClient.java?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/client/EntityBeanClient.java (added)
+++ geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/client/EntityBeanClient.java Wed Mar 12 14:54:41 2008
@@ -0,0 +1,92 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License.  You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+/*
+ * Created on Sep 27, 2005
+ *
+ * TODO To change the template for this generated file go to
+ * Window - Preferences - Java - Code Style - Code Templates
+ */
+package com.ibm.demo.entity.client;
+
+/**
+ * @author cpineda
+ * 
+ * TODO To change the template for this generated type comment go to Window -
+ * Preferences - Java - Code Style - Code Templates
+ */
+import java.rmi.RemoteException;
+import java.util.Date;
+
+import javax.naming.InitialContext;
+import javax.naming.Context;
+import javax.naming.NamingException;
+import javax.rmi.PortableRemoteObject;
+import com.ibm.demo.entity.bmp.*;
+
+public class EntityBeanClient {
+
+    public static void main(String[] arg) {
+        try {
+            Context jndiContext = getInitialContext();
+
+            String name = "CustomerHomeRemote";
+
+            Object ref = jndiContext.lookup(name);
+            CustomerHomeRemote home = (CustomerHomeRemote) PortableRemoteObject
+                    .narrow(ref, CustomerHomeRemote.class);
+            CustomerRemote customerRemote = null;
+            System.out.println("creating customer...");
+            try{
+                customerRemote = home.create(new Integer(1),"Customer 1","2323232","NO INFO",new Date(),new Double(0.0),new Double(0.0));
+            }catch(Exception e){/* this will most likely be because the customer already exists in the database. */ }
+            System.out.print("done.");
+
+            System.out.println("findByPrimaryKeyTest... 1");
+            customerRemote = null;
+            customerRemote = home.findByPrimaryKey(new Integer(1));
+            System.out.println("customer name: "+customerRemote.getName());
+            System.out.println("customer sss no: "+customerRemote.getSssNo());
+            System.out.println("customer loan amount: "+customerRemote.getLoanAmount());
+            System.out.println("customer annual salary: "+customerRemote.getAnnualSalary());
+            System.out.println("customer birthdate: "+customerRemote.getBirthdate());
+
+            System.out.println("updating ejb...");
+            customerRemote.setName("Customer 2");
+            System.out.print("done.");
+
+            System.out.println("findBySssNoTest... 2323232");
+            customerRemote = null;
+            customerRemote = home.findBySssNo("2323232");
+            System.out.println("customer name: "+customerRemote.getName());
+            System.out.println("customer sss no: "+customerRemote.getSssNo());
+            System.out.println("customer loan amount: "+customerRemote.getLoanAmount());
+            System.out.println("customer annual salary: "+customerRemote.getAnnualSalary());
+            System.out.println("customer birthdate: "+customerRemote.getBirthdate());
+
+            customerRemote.remove();
+
+        } catch (Exception e) {
+            e.printStackTrace();
+        }
+
+    }
+
+    public static Context getInitialContext()
+            throws javax.naming.NamingException {
+        return new javax.naming.InitialContext();
+    }
+}
\ No newline at end of file

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/client/EntityBeanClient.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/client/EntityBeanClient.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/client/EntityBeanClient.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/servlet/PublisherServlet.java
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/servlet/PublisherServlet.java?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/servlet/PublisherServlet.java (added)
+++ geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/servlet/PublisherServlet.java Wed Mar 12 14:54:41 2008
@@ -0,0 +1,88 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License.  You may obtain a copy of the License at
+*
+*     http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+package com.ibm.demo.entity.servlet;
+
+import com.ibm.demo.entity.bmp.*;
+
+import javax.servlet.ServletException;
+import javax.servlet.RequestDispatcher;
+import javax.servlet.ServletContext;
+import javax.servlet.http.HttpServletRequest;
+import javax.servlet.http.HttpServletResponse;
+import javax.naming.InitialContext;
+import javax.rmi.PortableRemoteObject;
+
+import java.text.SimpleDateFormat;
+
+import java.io.IOException;
+
+/**
+ * Created by IntelliJ IDEA.
+ * User: simon
+ * Date: Nov 13, 2004
+ * Time: 10:07:03 AM
+ * To change this template use File | Settings | File Templates.
+ */
+public class PublisherServlet extends javax.servlet.http.HttpServlet {
+
+    private ServletContext ctx;
+
+    public void init() throws ServletException {
+
+        this.ctx = getServletContext();
+    }
+
+
+    public void doPost(HttpServletRequest request, HttpServletResponse response)
+            throws ServletException, IOException {
+        doGet(request, response);
+    }
+
+    public void doGet(HttpServletRequest request, HttpServletResponse response)
+            throws ServletException, IOException {
+
+        RequestDispatcher rd = null;
+
+        try {
+            InitialContext jndiContext = new InitialContext();
+
+            String name = "java:comp/env/ejb/CustomerHome";
+
+            Object ref = jndiContext.lookup(name);
+            CustomerHomeRemote home = (CustomerHomeRemote) PortableRemoteObject.narrow(ref, CustomerHomeRemote.class);
+            CustomerRemote customerRemote = null;
+            System.out.println("creating customer...");
+            try{
+                Integer customerID = new Integer(request.getParameter("clientID"));
+                String customerName = request.getParameter("clientName");
+                String customerSSS = request.getParameter("clientSSS");
+                String customerAddress = request.getParameter("clientSSS");
+                String birthdate = request.getParameter("clientBirthdate");
+                Double customerSalary = new Double(request.getParameter("clientSalary"));
+                Double customerLoan = new Double(request.getParameter("loanAmt"));
+
+                customerRemote = home.create(customerID,customerName,customerSSS,customerAddress,new SimpleDateFormat("mm/dd/yyyy").parse(birthdate),customerSalary,customerLoan);
+            }catch(Exception e){/* this will most likely be because the customer already exists in the database. */ }
+
+            rd = ctx.getRequestDispatcher("/list.jsp");
+            rd.forward(request, response);
+        }
+        catch(Exception e) {
+            throw new ServletException(e);
+        }
+    }
+}

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/servlet/PublisherServlet.java
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/servlet/PublisherServlet.java
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/com/ibm/demo/entity/servlet/PublisherServlet.java
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/geronimo-web.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/geronimo-web.xml?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/geronimo-web.xml (added)
+++ geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/geronimo-web.xml Wed Mar 12 14:54:41 2008
@@ -0,0 +1,30 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<web-app xmlns="http://geronimo.apache.org/xml/ns/web"
+         xmlns:naming="http://geronimo.apache.org/xml/ns/naming"
+         configId="EntityDemoWebApp"
+         parentId="CustomerEJB">
+         
+     <context-root>entity-ejb</context-root>    
+     
+    <ejb-ref>
+        <ref-name>ejb/CustomerHome</ref-name>
+        <target-name>geronimo.server:EJBModule=CustomerEJB,J2EEApplication=null,J2EEServer=geronimo,j2eeType=EntityBean,name=CustomerEJB</target-name>
+    </ejb-ref>
+       
+</web-app>
\ No newline at end of file

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/geronimo-web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/jboss-web.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/jboss-web.xml?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/jboss-web.xml (added)
+++ geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/jboss-web.xml Wed Mar 12 14:54:41 2008
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<jboss-web>
+    <ejb-ref>
+        <ejb-ref-name>ejb/CustomerHome</ejb-ref-name>
+        <jndi-name>CustomerHomeRemote</jndi-name>
+    </ejb-ref>
+</jboss-web>
\ No newline at end of file

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/jboss-web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/jboss-web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/jboss-web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/web.xml?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/web.xml (added)
+++ geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/web.xml Wed Mar 12 14:54:41 2008
@@ -0,0 +1,48 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<web-app version="2.4"
+         xmlns="http://java.sun.com/xml/ns/j2ee"
+         xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+         xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >
+   <display-name>Gluecode Standard Edition JMS demo</display-name>
+
+    <servlet>
+        <display-name>publisher</display-name>
+        <servlet-name>publisher</servlet-name>
+        <servlet-class>com.ibm.demo.entity.servlet.PublisherServlet</servlet-class>
+        <load-on-startup>1</load-on-startup>
+    </servlet>
+
+    <servlet-mapping>
+        <servlet-name>publisher</servlet-name>
+        <url-pattern>/publish</url-pattern>
+    </servlet-mapping>
+
+    <ejb-ref>
+        <ejb-ref-name>ejb/CustomerHome</ejb-ref-name>
+        <ejb-ref-type>Entity</ejb-ref-type>
+        <home>com.ibm.demo.entity.bmp.CustomerHomeRemote</home>
+        <remote>com.ibm.demo.entity.bmp.CustomerRemote</remote>
+    </ejb-ref>
+
+
+    <welcome-file-list>
+        <welcome-file>list.jsp</welcome-file>
+    </welcome-file-list>
+
+</web-app>
\ No newline at end of file

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/create.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/create.jsp?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/create.jsp (added)
+++ geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/create.jsp Wed Mar 12 14:54:41 2008
@@ -0,0 +1,57 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<form action="publish" method="post">
+<table border="1">
+<tr>
+    <td align="center" colspan="2">Create a Customer</td>     
+</tr>
+<tr>
+    <td>Customer ID (Integer):</td>
+    <td><input type="text" name="clientID"></td>    
+</tr>    
+<tr>
+    <td>Full Name:</td>
+    <td><input type="text" name="clientName"></td>    
+</tr>    
+<tr>
+    <td>SSS Number:</td>
+    <td><input type="text" name="clientSSS"></td>    
+</tr>    
+<tr>
+    <td>Address:</td>
+    <td><input type="text" name="clientAddress"></td>    
+</tr>    
+<tr>
+    <td>Birthdate:</td>
+    <td><input type="text" name="clientBirthdate"></td>    
+</tr>    
+<tr>
+    <td>Annual Salary:</td>
+    <td><input type="text" name="clientSalary"></td>    
+</tr>    
+<tr>
+    <td>Loan Amount:</td>
+    <td><input type="text" name="loanAmt"></td>    
+</tr>    
+<tr>
+    <td align="center" colspan="2"><input type="submit" value="Create"></td>     
+</tr>
+<tr>
+    <td align="center" colspan="2"><a href="list.jsp">List Customers</a></td>     
+</tr>
+</table>
+</form>

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/create.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/create.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/create.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/list.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/list.jsp?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/list.jsp (added)
+++ geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/list.jsp Wed Mar 12 14:54:41 2008
@@ -0,0 +1,75 @@
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<%@ page import="java.util.*" %>
+<%@ page import="javax.naming.*" %>
+<%@ page import="com.ibm.demo.entity.bmp.*" %>
+<%@ page import="javax.rmi.PortableRemoteObject" %>
+
+<%
+Context ctx = new InitialContext();
+String name = "java:comp/env/ejb/CustomerHome";
+
+Object ref = ctx.lookup(name);
+CustomerHomeRemote home = (CustomerHomeRemote) PortableRemoteObject.narrow(ref, CustomerHomeRemote.class);
+CustomerRemote customerRemote = null;
+Collection customers = home.findAll();
+%>
+
+<table border="1">
+    <tr>
+        <td align="center" colspan="6">Customers</td>
+    </tr>   
+    <tr>
+        <td>NAME</td>
+        <td>SSS NO.</td>
+        <td>ADDRESS</td>
+        <td>BIRTHDATE</td>
+        <td>ANNUAL SALARY</td>
+        <td>LOAN AMOUNT</td>
+    </tr>
+
+<% 
+for(Iterator i = customers.iterator(); i.hasNext(); ){
+    customerRemote=(CustomerRemote)i.next();
+%>
+    <tr>
+        <td>
+        <%=customerRemote.getName()%>
+        </td>
+        <td>
+        <%=customerRemote.getSssNo()%>
+        </td>
+        <td>
+        <%=customerRemote.getAddress()%>
+        </td>
+        <td>
+        <%=customerRemote.getBirthdate()%>
+        </td>
+        <td>
+        <%=customerRemote.getAnnualSalary()%>
+        </td>
+        <td>
+        <%=customerRemote.getLoanAmount()%>
+        </td>
+    </tr>
+<% 
+}
+%>
+<tr>
+    <td align="center" colspan="6"><a href="create.jsp">Add Customer</a></td>
+</tr>   
+</table>
\ No newline at end of file

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/list.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/list.jsp
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.0/migration-ejb-bmp/src/webapp/list.jsp
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/branches/1.0/migration-ejb-cmp/LICENSE.txt
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-cmp/LICENSE.txt?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-cmp/LICENSE.txt (added)
+++ geronimo/samples/branches/1.0/migration-ejb-cmp/LICENSE.txt Wed Mar 12 14:54:41 2008
@@ -0,0 +1,350 @@
+
+                                 Apache License
+                           Version 2.0, January 2004
+                        http://www.apache.org/licenses/
+
+   TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
+
+   1. Definitions.
+
+      "License" shall mean the terms and conditions for use, reproduction,
+      and distribution as defined by Sections 1 through 9 of this document.
+
+      "Licensor" shall mean the copyright owner or entity authorized by
+      the copyright owner that is granting the License.
+
+      "Legal Entity" shall mean the union of the acting entity and all
+      other entities that control, are controlled by, or are under common
+      control with that entity. For the purposes of this definition,
+      "control" means (i) the power, direct or indirect, to cause the
+      direction or management of such entity, whether by contract or
+      otherwise, or (ii) ownership of fifty percent (50%) or more of the
+      outstanding shares, or (iii) beneficial ownership of such entity.
+
+      "You" (or "Your") shall mean an individual or Legal Entity
+      exercising permissions granted by this License.
+
+      "Source" form shall mean the preferred form for making modifications,
+      including but not limited to software source code, documentation
+      source, and configuration files.
+
+      "Object" form shall mean any form resulting from mechanical
+      transformation or translation of a Source form, including but
+      not limited to compiled object code, generated documentation,
+      and conversions to other media types.
+
+      "Work" shall mean the work of authorship, whether in Source or
+      Object form, made available under the License, as indicated by a
+      copyright notice that is included in or attached to the work
+      (an example is provided in the Appendix below).
+
+      "Derivative Works" shall mean any work, whether in Source or Object
+      form, that is based on (or derived from) the Work and for which the
+      editorial revisions, annotations, elaborations, or other modifications
+      represent, as a whole, an original work of authorship. For the purposes
+      of this License, Derivative Works shall not include works that remain
+      separable from, or merely link (or bind by name) to the interfaces of,
+      the Work and Derivative Works thereof.
+
+      "Contribution" shall mean any work of authorship, including
+      the original version of the Work and any modifications or additions
+      to that Work or Derivative Works thereof, that is intentionally
+      submitted to Licensor for inclusion in the Work by the copyright owner
+      or by an individual or Legal Entity authorized to submit on behalf of
+      the copyright owner. For the purposes of this definition, "submitted"
+      means any form of electronic, verbal, or written communication sent
+      to the Licensor or its representatives, including but not limited to
+      communication on electronic mailing lists, source code control systems,
+      and issue tracking systems that are managed by, or on behalf of, the
+      Licensor for the purpose of discussing and improving the Work, but
+      excluding communication that is conspicuously marked or otherwise
+      designated in writing by the copyright owner as "Not a Contribution."
+
+      "Contributor" shall mean Licensor and any individual or Legal Entity
+      on behalf of whom a Contribution has been received by Licensor and
+      subsequently incorporated within the Work.
+
+   2. Grant of Copyright License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      copyright license to reproduce, prepare Derivative Works of,
+      publicly display, publicly perform, sublicense, and distribute the
+      Work and such Derivative Works in Source or Object form.
+
+   3. Grant of Patent License. Subject to the terms and conditions of
+      this License, each Contributor hereby grants to You a perpetual,
+      worldwide, non-exclusive, no-charge, royalty-free, irrevocable
+      (except as stated in this section) patent license to make, have made,
+      use, offer to sell, sell, import, and otherwise transfer the Work,
+      where such license applies only to those patent claims licensable
+      by such Contributor that are necessarily infringed by their
+      Contribution(s) alone or by combination of their Contribution(s)
+      with the Work to which such Contribution(s) was submitted. If You
+      institute patent litigation against any entity (including a
+      cross-claim or counterclaim in a lawsuit) alleging that the Work
+      or a Contribution incorporated within the Work constitutes direct
+      or contributory patent infringement, then any patent licenses
+      granted to You under this License for that Work shall terminate
+      as of the date such litigation is filed.
+
+   4. Redistribution. You may reproduce and distribute copies of the
+      Work or Derivative Works thereof in any medium, with or without
+      modifications, and in Source or Object form, provided that You
+      meet the following conditions:
+
+      (a) You must give any other recipients of the Work or
+          Derivative Works a copy of this License; and
+
+      (b) You must cause any modified files to carry prominent notices
+          stating that You changed the files; and
+
+      (c) You must retain, in the Source form of any Derivative Works
+          that You distribute, all copyright, patent, trademark, and
+          attribution notices from the Source form of the Work,
+          excluding those notices that do not pertain to any part of
+          the Derivative Works; and
+
+      (d) If the Work includes a "NOTICE" text file as part of its
+          distribution, then any Derivative Works that You distribute must
+          include a readable copy of the attribution notices contained
+          within such NOTICE file, excluding those notices that do not
+          pertain to any part of the Derivative Works, in at least one
+          of the following places: within a NOTICE text file distributed
+          as part of the Derivative Works; within the Source form or
+          documentation, if provided along with the Derivative Works; or,
+          within a display generated by the Derivative Works, if and
+          wherever such third-party notices normally appear. The contents
+          of the NOTICE file are for informational purposes only and
+          do not modify the License. You may add Your own attribution
+          notices within Derivative Works that You distribute, alongside
+          or as an addendum to the NOTICE text from the Work, provided
+          that such additional attribution notices cannot be construed
+          as modifying the License.
+
+      You may add Your own copyright statement to Your modifications and
+      may provide additional or different license terms and conditions
+      for use, reproduction, or distribution of Your modifications, or
+      for any such Derivative Works as a whole, provided Your use,
+      reproduction, and distribution of the Work otherwise complies with
+      the conditions stated in this License.
+
+   5. Submission of Contributions. Unless You explicitly state otherwise,
+      any Contribution intentionally submitted for inclusion in the Work
+      by You to the Licensor shall be under the terms and conditions of
+      this License, without any additional terms or conditions.
+      Notwithstanding the above, nothing herein shall supersede or modify
+      the terms of any separate license agreement you may have executed
+      with Licensor regarding such Contributions.
+
+   6. Trademarks. This License does not grant permission to use the trade
+      names, trademarks, service marks, or product names of the Licensor,
+      except as required for reasonable and customary use in describing the
+      origin of the Work and reproducing the content of the NOTICE file.
+
+   7. Disclaimer of Warranty. Unless required by applicable law or
+      agreed to in writing, Licensor provides the Work (and each
+      Contributor provides its Contributions) on an "AS IS" BASIS,
+      WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
+      implied, including, without limitation, any warranties or conditions
+      of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
+      PARTICULAR PURPOSE. You are solely responsible for determining the
+      appropriateness of using or redistributing the Work and assume any
+      risks associated with Your exercise of permissions under this License.
+
+   8. Limitation of Liability. In no event and under no legal theory,
+      whether in tort (including negligence), contract, or otherwise,
+      unless required by applicable law (such as deliberate and grossly
+      negligent acts) or agreed to in writing, shall any Contributor be
+      liable to You for damages, including any direct, indirect, special,
+      incidental, or consequential damages of any character arising as a
+      result of this License or out of the use or inability to use the
+      Work (including but not limited to damages for loss of goodwill,
+      work stoppage, computer failure or malfunction, or any and all
+      other commercial damages or losses), even if such Contributor
+      has been advised of the possibility of such damages.
+
+   9. Accepting Warranty or Additional Liability. While redistributing
+      the Work or Derivative Works thereof, You may choose to offer,
+      and charge a fee for, acceptance of support, warranty, indemnity,
+      or other liability obligations and/or rights consistent with this
+      License. However, in accepting such obligations, You may act only
+      on Your own behalf and on Your sole responsibility, not on behalf
+      of any other Contributor, and only if You agree to indemnify,
+      defend, and hold each Contributor harmless for any liability
+      incurred by, or claims asserted against, such Contributor by reason
+      of your accepting any such warranty or additional liability.
+
+   END OF TERMS AND CONDITIONS
+
+   APPENDIX: How to apply the Apache License to your work.
+
+      To apply the Apache License to your work, attach the following
+      boilerplate notice, with the fields enclosed by brackets "[]"
+      replaced with your own identifying information. (Don't include
+      the brackets!)  The text should be enclosed in the appropriate
+      comment syntax for the file format. We also recommend that a
+      file or class name and description of purpose be included on the
+      same "printed page" as the copyright notice for easier
+      identification within third-party archives.
+
+   Copyright [yyyy] The Apache Software Foundation
+
+   Licensed under the Apache License, Version 2.0 (the "License");
+   you may not use this file except in compliance with the License.
+   You may obtain a copy of the License at
+
+       http://www.apache.org/licenses/LICENSE-2.0
+
+   Unless required by applicable law or agreed to in writing, software
+   distributed under the License is distributed on an "AS IS" BASIS,
+   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+   See the License for the specific language governing permissions and
+   limitations under the License.
+
+=========================================================================
+J2G, Commons Logging, commons-el, jasper-runtime, jasper-compiler, 
+jasper-compiler-jdt, geronimo-jsp_spec, and geronimo-servlet-spec use the 
+above Apache License v2.0.
+=========================================================================
+   
+=========================================================================
+==  Dom4j License                                                      ==
+=========================================================================
+
+Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
+
+Redistribution and use of this software and associated documentation
+("Software"), with or without modification, are permitted provided
+that the following conditions are met:
+
+1. Redistributions of source code must retain copyright
+   statements and notices.  Redistributions must also contain a
+   copy of this document.
+ 
+2. Redistributions 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.
+ 
+3. The name "DOM4J" must not be used to endorse or promote
+   products derived from this Software without prior written
+   permission of MetaStuff, Ltd.  For written permission,
+   please contact dom4j-info@metastuff.com.
+ 
+4. Products derived from this Software may not be called "DOM4J"
+   nor may "DOM4J" appear in their names without prior written
+   permission of MetaStuff, Ltd. DOM4J is a registered
+   trademark of MetaStuff, Ltd.
+ 
+5. Due credit should be given to the DOM4J Project - 
+   http://www.dom4j.org
+ 
+THIS SOFTWARE IS PROVIDED BY METASTUFF, LTD. AND CONTRIBUTORS
+``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT
+NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND
+FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL
+METASTUFF, LTD. OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT,
+INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
+(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT,
+STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
+ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED
+OF THE POSSIBILITY OF SUCH DAMAGE.
+
+=========================================================================
+==  Jaxen License                                                      ==
+=========================================================================
+
+ Copyright 2003-2006 The Werken Company. 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.
+
+  * Redistributions 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 the Jaxen Project nor the names of its
+    contributors may be used to endorse or promote products derived 
+    from this software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS
+IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
+TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A
+PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER
+OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
+EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
+PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
+PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
+LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
+NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
+SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ 
+=========================================================================
+==  PullParser License                                                 ==
+=========================================================================
+
+Copyright 2002 The Trustees of Indiana University.
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions are
+met:
+
+1) All redistributions of source code must retain the above
+   copyright notice, the list of authors in the original source
+   code, this list of conditions and the disclaimer listed in this
+   license;
+
+2) All redistributions in binary form must reproduce the above
+   copyright notice, this list of conditions and the disclaimer
+   listed in this license in the documentation and/or other
+   materials provided with the distribution;
+
+3) Any documentation included with all redistributions must include
+   the following acknowledgement:
+
+     "This product includes software developed by the Indiana 
+     University Extreme! Lab.  For further information please visit 
+     http://www.extreme.indiana.edu/"
+
+   Alternatively, this acknowledgment may appear in the software
+   itself, and wherever such third-party acknowledgments normally
+   appear.
+
+4) The name "Indiana Univeristy" and "Indiana Univeristy
+   Extreme! Lab" shall not be used to endorse or promote
+   products derived from this software without prior written
+   permission from Indiana University.  For written permission,
+   please contact http://www.extreme.indiana.edu/.
+
+5) Products derived from this software may not use "Indiana
+   Univeristy" name nor may "Indiana Univeristy" appear in their name,
+  without prior written permission of the Indiana University.
+ 
+Indiana University provides no reassurances that the source code
+provided does not infringe the patent or any other intellectual
+property rights of any other entity.  Indiana University disclaims any
+liability to any recipient for claims brought by any other entity
+based on infringement of intellectual property rights or otherwise.
+
+LICENSEE UNDERSTANDS THAT SOFTWARE IS PROVIDED "AS IS" FOR WHICH
+NO WARRANTIES AS TO CAPABILITIES OR ACCURACY ARE MADE. INDIANA
+UNIVERSITY GIVES NO WARRANTIES AND MAKES NO REPRESENTATION THAT
+SOFTWARE IS FREE OF INFRINGEMENT OF THIRD PARTY PATENT, COPYRIGHT, OR
+OTHER PROPRIETARY RIGHTS.  INDIANA UNIVERSITY MAKES NO WARRANTIES THAT
+SOFTWARE IS FREE FROM "BUGS", "VIRUSES", "TROJAN HORSES", "TRAP
+DOORS", "WORMS", OR OTHER HARMFUL CODE.  LICENSEE ASSUMES THE ENTIRE
+RISK AS TO THE PERFORMANCE OF SOFTWARE AND/OR ASSOCIATED MATERIALS,
+AND TO THE PERFORMANCE AND VALIDITY OF INFORMATION GENERATED USING
+SOFTWARE.
+
+
+
+
+

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/LICENSE.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/LICENSE.txt
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/LICENSE.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/branches/1.0/migration-ejb-cmp/NOTICE.txt
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-cmp/NOTICE.txt?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-cmp/NOTICE.txt (added)
+++ geronimo/samples/branches/1.0/migration-ejb-cmp/NOTICE.txt Wed Mar 12 14:54:41 2008
@@ -0,0 +1,46 @@
+=========================================================================
+==  NOTICE file corresponding to section 4(d) of the Apache License,   ==
+==  Version 2.0, in this case for the Apache Geronimo distribution.    ==
+=========================================================================
+
+Apache Geronimo
+Copyright 2003-2007 The Apache Software Foundation
+
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).
+
+Portions of the J2G Conversion Tool were orginally developed by International
+Business Machines Corporation and are licensed to the Apache Software
+Foundation under the "Software Grant and Corporate Contribution License
+Agreement", informally known as the "IBM Console CLA".
+
+=========================================================================
+==  Commons-logging  Notice                                            ==
+=========================================================================
+This product includes software developed by
+The Apache Software Foundation (http://www.apache.org/).
+
+
+=========================================================================
+==  Dom4j Notice                                                       ==
+=========================================================================
+
+Copyright 2001-2005 (C) MetaStuff, Ltd. All Rights Reserved.
+
+=========================================================================
+==  Jaxen Notice                                                       ==
+=========================================================================
+
+Copyright 2003-2006 The Werken Company. All Rights Reserved.
+
+=========================================================================
+==  PullParser Notice                                                  ==
+=========================================================================
+
+Copyright 2002 The Trustees of Indiana University.
+All rights reserved.
+
+This product includes software developed by the Indiana
+University Extreme! Lab.  For further information please visit
+http://www.extreme.indiana.edu/
+

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/NOTICE.txt
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/NOTICE.txt
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/NOTICE.txt
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/branches/1.0/migration-ejb-cmp/dd/META-INF/ejb-jar.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-cmp/dd/META-INF/ejb-jar.xml?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-cmp/dd/META-INF/ejb-jar.xml (added)
+++ geronimo/samples/branches/1.0/migration-ejb-cmp/dd/META-INF/ejb-jar.xml Wed Mar 12 14:54:41 2008
@@ -0,0 +1,56 @@
+<!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>
+ <enterprise-beans>
+   <entity>
+      <description>
+            This bean represents customer
+      </description>
+      <ejb-name>CustomerEJB</ejb-name>
+      <abstract-schema-name>customer</abstract-schema-name>
+      <home>com.ibm.demo.entity.cmp.CustomerHomeRemote</home>
+      <remote>com.ibm.demo.entity.cmp.CustomerRemote</remote>
+      <ejb-class>com.ibm.demo.entity.cmp.CustomerBean</ejb-class>
+      <persistence-type>Container</persistence-type>
+      <prim-key-class>java.lang.Integer</prim-key-class>
+      <reentrant>False</reentrant>
+      <security-identity><use-caller-identity/></security-identity>
+      <resource-ref>
+           <description>DataSource for Demo Database</description>
+           <res-ref-name>jdbc/ibm-cmp-demo</res-ref-name>
+           <res-type>javax.sql.DataSource</res-type>
+           <res-auth>Container</res-auth>
+      </resource-ref>
+      <cmp-field>
+         <field-name>id</field-name>
+      </cmp-field>      
+      <cmp-field>
+         <field-name>name</field-name>
+      </cmp-field>
+      <cmp-field>
+         <field-name>birthdate</field-name>
+      </cmp-field>
+      <cmp-field>
+         <field-name>sssNo</field-name>
+      </cmp-field>
+      <cmp-field>
+         <field-name>address</field-name>
+      </cmp-field>
+      <cmp-field>
+         <field-name>annualSalary</field-name>
+      </cmp-field> 
+      <cmp-field>
+         <field-name>loanAmount</field-name>
+      </cmp-field> 
+      <primkey-field>id</primkey-field>    
+      <query>
+       <query-method>
+        <method-name>findBySssNo</method-name>
+         <method-params>
+           <method-param>java.lang.String</method-param>
+         </method-params>
+       </query-method>
+       <ejb-ql>select object(c) from customer c</ejb-ql>
+      </query>
+    </entity>  
+ </enterprise-beans>
+</ejb-jar>

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/dd/META-INF/ejb-jar.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/dd/META-INF/ejb-jar.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/dd/META-INF/ejb-jar.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/branches/1.0/migration-ejb-cmp/dd/META-INF/jboss.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-cmp/dd/META-INF/jboss.xml?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-cmp/dd/META-INF/jboss.xml (added)
+++ geronimo/samples/branches/1.0/migration-ejb-cmp/dd/META-INF/jboss.xml Wed Mar 12 14:54:41 2008
@@ -0,0 +1,26 @@
+<?xml version="1.0"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<jboss>
+   <enterprise-beans>
+      <entity>
+         <ejb-name>CustomerEJB</ejb-name>
+         <jndi-name>CustomerHomeRemote</jndi-name>
+      </entity>
+   </enterprise-beans>
+</jboss>

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/dd/META-INF/jboss.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/dd/META-INF/jboss.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/dd/META-INF/jboss.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/branches/1.0/migration-ejb-cmp/dd/customer-ejb.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-cmp/dd/customer-ejb.xml?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-cmp/dd/customer-ejb.xml (added)
+++ geronimo/samples/branches/1.0/migration-ejb-cmp/dd/customer-ejb.xml Wed Mar 12 14:54:41 2008
@@ -0,0 +1,37 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+
+<openejb-jar
+    xmlns="http://www.openejb.org/xml/ns/openejb-jar"
+    xmlns:naming="http://geronimo.apache.org/xml/ns/naming"
+    xmlns:security="http://geronimo.apache.org/xml/ns/security"
+    xmlns:sys="http://geronimo.apache.org/xml/ns/deployment"
+    configId="CustomerEJB"
+    parentId="org/apache/geronimo/SystemDatabase">
+<enterprise-beans>
+    <entity>
+        <ejb-name>CustomerEJB</ejb-name>
+        <jndi-name>CustomerHomeRemote</jndi-name>
+        <local-jndi-name>CustomerRemote</local-jndi-name>
+        <resource-ref>
+            <ref-name>jdbc/ibm-demo</ref-name>
+            <resource-link>SystemDatasource</resource-link>
+        </resource-ref>
+    </entity>
+</enterprise-beans>
+</openejb-jar>  
\ No newline at end of file

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/dd/customer-ejb.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/dd/customer-ejb.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/dd/customer-ejb.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/branches/1.0/migration-ejb-cmp/jndi/jndi.properties
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-cmp/jndi/jndi.properties?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-cmp/jndi/jndi.properties (added)
+++ geronimo/samples/branches/1.0/migration-ejb-cmp/jndi/jndi.properties Wed Mar 12 14:54:41 2008
@@ -0,0 +1,30 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+####################################################################
+### JBoss Settings
+####################################################################
+java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
+java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
+java.naming.provider.url=localhost
+
+
+####################################################################
+### Geronimo Settings
+####################################################################
+#java.naming.factory.initial=org.openejb.client.RemoteInitialContextFactory
+#java.naming.provider.url=localhost:4201
+#java.naming.security.principal=username
+#java.naming.security.credentials=passwd

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/jndi/jndi.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/jndi/jndi.properties
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/jndi/jndi.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain

Added: geronimo/samples/branches/1.0/migration-ejb-cmp/maven.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-cmp/maven.xml?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-cmp/maven.xml (added)
+++ geronimo/samples/branches/1.0/migration-ejb-cmp/maven.xml Wed Mar 12 14:54:41 2008
@@ -0,0 +1,76 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!--
+  Licensed to the Apache Software Foundation (ASF) under one or more
+  contributor license agreements.  See the NOTICE file distributed with
+  this work for additional information regarding copyright ownership.
+  The ASF licenses this file to You under the Apache License, Version 2.0
+  (the "License"); you may not use this file except in compliance with
+  the License.  You may obtain a copy of the License at
+
+      http://www.apache.org/licenses/LICENSE-2.0
+
+  Unless required by applicable law or agreed to in writing, software
+  distributed under the License is distributed on an "AS IS" BASIS,
+  WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+  See the License for the specific language governing permissions and
+  limitations under the License.
+-->
+<project default="default"
+    xmlns:j="jelly:core"
+    xmlns:u="jelly:util"
+    xmlns:deploy="geronimo:deploy"
+    xmlns:ant="jelly:ant">
+    <!-- needed goals:
+            - deploy jar to jboss
+            - run client (include starting and stopping jboss)
+            - clean everything (include undeploy from jboss)
+    -->
+
+    <goal name="default">
+        <attainGoal name="ejb"/>
+        <attainGoal name="war"/>
+    </goal>
+        
+    <j:set var="deploydir" value="${maven.jboss.home}/server/default/deploy"/>
+
+    <ant:path id="client.classpath">
+        <fileset dir="${maven.jboss.home}/client">
+            <include name="**/*.jar"/>
+        </fileset>
+        <ant:path refid="maven.dependency.classpath"/>
+        <ant:pathelement path="${maven.build.dest}"/>
+        <ant:pathelement location="jndi"/>
+    </ant:path>
+    
+    <goal name="jboss:deploy" prereqs="ejb:ejb">
+        <ant:echo>Deploying ${maven.final.name}.jar to JBoss</ant:echo>
+        <copy overwrite="true" 
+            file="target/${maven.final.name}.jar"
+            todir="${deploydir}"/>
+    </goal>
+    
+    <goal name="run:client">
+        <!--<attainGoal name="jboss:start"/>-->
+        <ant:java classname="com.ibm.demo.entity.client.EntityBeanClient"
+            fork="true"
+            failonerror="true"
+            classpathref="client.classpath">
+                <arg value="${maven.args}"/>
+        </ant:java>
+        <!--<attainGoal name="jboss:stop"/>-->
+    </goal>
+
+    <goal name="geronimo:deploy">
+      <deploy:distribute 
+          uri="deployer:geronimo:jmx:rmi:///jndi/rmi://localhost:1099/JMXConnector"
+        username="system"
+        password="manager"
+        module="${basedir}/target/${maven.final.name}.jar"         
+        plan="${basedir}/dd/customer-ejb.xml"/>
+
+    </goal> 
+    <postGoal name="clean">
+        <delete file="${deploydir}/${maven.final.name}.jar"/>
+    </postGoal>
+
+</project>
\ No newline at end of file

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/maven.xml
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/maven.xml
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/maven.xml
------------------------------------------------------------------------------
    svn:mime-type = text/xml

Added: geronimo/samples/branches/1.0/migration-ejb-cmp/project.properties
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-cmp/project.properties?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-cmp/project.properties (added)
+++ geronimo/samples/branches/1.0/migration-ejb-cmp/project.properties Wed Mar 12 14:54:41 2008
@@ -0,0 +1,27 @@
+# Licensed to the Apache Software Foundation (ASF) under one or more
+# contributor license agreements.  See the NOTICE file distributed with
+# this work for additional information regarding copyright ownership.
+# The ASF licenses this file to You under the Apache License, Version 2.0
+# (the "License"); you may not use this file except in compliance with
+# the License.  You may obtain a copy of the License at
+#
+#     http://www.apache.org/licenses/LICENSE-2.0
+#
+# Unless required by applicable law or agreed to in writing, software
+# distributed under the License is distributed on an "AS IS" BASIS,
+# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+# See the License for the specific language governing permissions and
+# limitations under the License.
+
+maven.ejb.includes=com/ibm/demo/entity/cmp/**, com/ibm/demo/session/**
+maven.ejb.excludes=com/ibm/demo/entity/client/**
+
+#maven.war.classes.includes=com/ibm/demo/mdb/servlet/**
+
+maven.war.classes.includes=com/ibm/demo/entity/servlet/**
+
+maven.war.classes.excludes=com/ibm/demo/entity/cmp/**, com/ibm/demo/entity/client/** 
+
+maven.ejb.src=dd
+
+maven.jboss.home=c:\jboss-4.0.2

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/project.properties
------------------------------------------------------------------------------
    svn:eol-style = native

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/project.properties
------------------------------------------------------------------------------
    svn:keywords = Date Revision

Propchange: geronimo/samples/branches/1.0/migration-ejb-cmp/project.properties
------------------------------------------------------------------------------
    svn:mime-type = text/plain