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 [4/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-mdb/src/client/com/ibm/demo/mdb/client/MessageSenderJBoss.java
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-mdb/src/client/com/ibm/demo/mdb/client/MessageSenderJBoss.java?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-mdb/src/client/com/ibm/demo/mdb/client/MessageSenderJBoss.java (added)
+++ geronimo/samples/branches/1.0/migration-ejb-mdb/src/client/com/ibm/demo/mdb/client/MessageSenderJBoss.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.
+*/
+package com.ibm.demo.mdb.client;
+
+import java.io.BufferedReader;
+import java.io.InputStreamReader;
+import java.text.DateFormat;
+import java.text.SimpleDateFormat;
+import java.util.Properties;
+
+import javax.jms.Queue;
+import javax.jms.QueueConnection;
+import javax.jms.QueueConnectionFactory;
+import javax.jms.QueueSender;
+import javax.jms.QueueSession;
+import javax.jms.Session;
+import javax.jms.TextMessage;
+import javax.naming.Context;
+import javax.naming.InitialContext;
+
+public class MessageSenderJBoss {
+
+    public static void main(String[] args) throws Exception {
+
+        // Set up context
+        Properties properties = new Properties();
+        properties.put(Context.INITIAL_CONTEXT_FACTORY,"org.jnp.interfaces.NamingContextFactory");
+        properties.put(Context.URL_PKG_PREFIXES, "org.jnp.interfaces");
+        properties.put(Context.PROVIDER_URL, "localhost");
+        InitialContext ctx = new InitialContext(properties);
+
+        // Lookup queue and connection factory.
+        Queue queue = (Queue) ctx.lookup("queue/testQueue");
+        QueueConnectionFactory qcf = (QueueConnectionFactory) ctx.lookup("UIL2ConnectionFactory");
+
+        QueueConnection qc = qcf.createQueueConnection();
+        
+        try {
+            QueueSession qs = qc.createQueueSession(false,Session.AUTO_ACKNOWLEDGE);
+            QueueSender sender = qs.createSender(queue);
+            TextMessage message = qs.createTextMessage("add customer");
+            
+            //  Get text from standard input.
+            BufferedReader br = new BufferedReader(new InputStreamReader(System.in));
+            String t = null;
+            // Prompt user for information and add to message properties.
+            System.out.println("Enter information for new customer.");
+            System.out.print("Enter customer id (Integer):");
+            t = br.readLine();
+            message.setIntProperty("customerID",Integer.parseInt(t));
+            System.out.print("Enter name:");
+            t = br.readLine();
+            message.setStringProperty("customerName",t);
+            System.out.print("Enter sss number:");
+            t = br.readLine();
+            message.setStringProperty("customerSSS",t);
+            System.out.print("Enter address:");
+            t = br.readLine();
+            message.setStringProperty("customerAddress",t);
+            System.out.print("Enter birhtdate (mm/dd/yyyy):");
+            t = br.readLine();
+            message.setStringProperty("birthdate", t);
+            System.out.print("Enter annual salary:");
+            t = br.readLine();
+            message.setDoubleProperty("customerSalary", Double.parseDouble(t));
+            System.out.print("Enter loan amount:");
+            t = br.readLine();
+            message.setDoubleProperty("customerLoan", Double.parseDouble(t));
+            
+            
+            sender.send(message);
+
+
+        } finally {
+            qc.close();
+        }
+    }
+}
\ No newline at end of file

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

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

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

Added: geronimo/samples/branches/1.0/migration-ejb-mdb/src/ejb/com/ibm/demo/entity/bmp/CustomerBean.java
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-mdb/src/ejb/com/ibm/demo/entity/bmp/CustomerBean.java?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-mdb/src/ejb/com/ibm/demo/entity/bmp/CustomerBean.java (added)
+++ geronimo/samples/branches/1.0/migration-ejb-mdb/src/ejb/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-mdb/src/ejb/com/ibm/demo/entity/bmp/CustomerBean.java
------------------------------------------------------------------------------
    svn:eol-style = native

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

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

Added: geronimo/samples/branches/1.0/migration-ejb-mdb/src/ejb/com/ibm/demo/entity/bmp/CustomerHomeRemote.java
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-mdb/src/ejb/com/ibm/demo/entity/bmp/CustomerHomeRemote.java?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-mdb/src/ejb/com/ibm/demo/entity/bmp/CustomerHomeRemote.java (added)
+++ geronimo/samples/branches/1.0/migration-ejb-mdb/src/ejb/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-mdb/src/ejb/com/ibm/demo/entity/bmp/CustomerHomeRemote.java
------------------------------------------------------------------------------
    svn:eol-style = native

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

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

Added: geronimo/samples/branches/1.0/migration-ejb-mdb/src/ejb/com/ibm/demo/entity/bmp/CustomerRemote.java
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-mdb/src/ejb/com/ibm/demo/entity/bmp/CustomerRemote.java?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-mdb/src/ejb/com/ibm/demo/entity/bmp/CustomerRemote.java (added)
+++ geronimo/samples/branches/1.0/migration-ejb-mdb/src/ejb/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-mdb/src/ejb/com/ibm/demo/entity/bmp/CustomerRemote.java
------------------------------------------------------------------------------
    svn:eol-style = native

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

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

Added: geronimo/samples/branches/1.0/migration-ejb-mdb/src/ejb/com/ibm/demo/mdb/ejb/SampleMDB.java
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-mdb/src/ejb/com/ibm/demo/mdb/ejb/SampleMDB.java?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-mdb/src/ejb/com/ibm/demo/mdb/ejb/SampleMDB.java (added)
+++ geronimo/samples/branches/1.0/migration-ejb-mdb/src/ejb/com/ibm/demo/mdb/ejb/SampleMDB.java Wed Mar 12 14:54:41 2008
@@ -0,0 +1,79 @@
+/*
+* 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.mdb.ejb;
+
+import com.ibm.demo.entity.bmp.CustomerRemote;
+import com.ibm.demo.entity.bmp.CustomerHomeRemote;
+
+import javax.ejb.MessageDrivenBean;
+import javax.ejb.MessageDrivenContext;
+import javax.rmi.PortableRemoteObject;
+import javax.naming.*;
+import javax.jms.*;
+
+import java.text.SimpleDateFormat;
+import java.util.Date;
+import java.util.logging.*;
+
+
+public class SampleMDB implements MessageDrivenBean, MessageListener {
+    static final Logger logger = Logger.getLogger(SampleMDB.class.getName());
+    private transient MessageDrivenContext mdc = null;
+    private Context ctx;
+
+    public void setMessageDrivenContext(MessageDrivenContext mdc) { this.mdc = mdc; }
+
+
+    public void onMessage(Message msg) {
+        
+        TextMessage txtMsg = null;
+        
+        try {
+            if (msg instanceof TextMessage) {
+                txtMsg = (TextMessage) msg;
+                logger.info("Received TextMessage: " + txtMsg.getText());
+                
+                Context initial = new InitialContext();
+                NamingEnumeration n = initial.list(initial.getNameInNamespace());
+                while(n.hasMoreElements()) System.out.println(n.next());
+                Object objref = initial.lookup("java:comp/env/CustomerHomeRemote");
+                CustomerHomeRemote home = (CustomerHomeRemote) PortableRemoteObject.narrow(objref,CustomerHomeRemote.class);
+                CustomerRemote customer = home.create(new Integer(txtMsg.getIntProperty("customerID")),txtMsg.getStringProperty("customerName"),
+                        txtMsg.getStringProperty("customerSSS"),txtMsg.getStringProperty("customerAddress"), new SimpleDateFormat("mm/dd/yyyy").parse(txtMsg.getStringProperty("birthdate")),
+                        new Double(txtMsg.getDoubleProperty("customerSalary")),new Double(txtMsg.getDoubleProperty("customerLoan")));
+                logger.info("SUCCESS!!!");
+                
+            } else {
+                logger.info("Received message of type: " + msg.getClass().getName());
+            }
+        } catch (JMSException e) {
+            e.printStackTrace();
+            mdc.setRollbackOnly();
+        } catch (Throwable te) {
+            te.printStackTrace();
+        }
+    }
+
+    public void ejbRemove() { }
+    public void ejbCreate() {   }
+}
\ No newline at end of file

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

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

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

Added: geronimo/samples/branches/1.0/migration-ejb-mdb/src/servlet/com/ibm/demo/mdb/servlet/PublisherServlet.java
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-mdb/src/servlet/com/ibm/demo/mdb/servlet/PublisherServlet.java?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-mdb/src/servlet/com/ibm/demo/mdb/servlet/PublisherServlet.java (added)
+++ geronimo/samples/branches/1.0/migration-ejb-mdb/src/servlet/com/ibm/demo/mdb/servlet/PublisherServlet.java Wed Mar 12 14:54:41 2008
@@ -0,0 +1,121 @@
+/*
+* 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.mdb.servlet;
+
+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.jms.*;
+import java.io.IOException;
+
+public class PublisherServlet extends javax.servlet.http.HttpServlet {
+
+    private ServletContext ctx;
+    private QueueConnection connection;
+    private Queue queue;
+
+    public void init() throws ServletException {
+
+        this.ctx = getServletContext();
+
+        String connectionFactoryName = "java:comp/env/jms/broker";
+        String queueName = "java:comp/env/jms/queue/DefQueue";
+
+        try {
+            InitialContext naming = new InitialContext();
+
+
+            // lookup queue connection factory
+            QueueConnectionFactory connectionFactory =
+                    (QueueConnectionFactory) naming.lookup(connectionFactoryName);
+
+
+            // create jms connection
+            connection = connectionFactory.createQueueConnection();
+
+            // lookup jms queue
+            queue = (Queue) naming.lookup(queueName);
+        }
+        catch(Exception e) {
+            e.printStackTrace();
+            throw new ServletException(e);
+        }
+    }
+
+    public void destroy() {
+        if (connection != null) {
+            try {
+                if (connection != null) {
+                    connection.close();
+                }
+            }
+            catch (Exception e) {          }
+        }
+    }
+
+    public void doPost(HttpServletRequest request, HttpServletResponse response)
+            throws ServletException, IOException {
+        doGet(request, response);
+    }
+
+    public void doGet(HttpServletRequest request, HttpServletResponse response)
+            throws ServletException, IOException {
+
+        // one session per-thread
+        QueueSession publishSession = null;
+        RequestDispatcher rd = null;
+
+        try {
+            // create jms session
+            boolean transacted = false;
+            publishSession = connection.createQueueSession(transacted, Session.AUTO_ACKNOWLEDGE);
+
+            QueueSender sender = publishSession.createSender(queue);
+            sender.setDeliveryMode(DeliveryMode.PERSISTENT);
+            
+
+            TextMessage message = publishSession.createTextMessage("add customer");
+            // Get new user information from request and populate the message with that info.
+            message.setIntProperty("customerID",Integer.parseInt(request.getParameter("clientID")));
+            message.setStringProperty("customerName",request.getParameter("clientName"));
+            message.setStringProperty("customerSSS",request.getParameter("clientSSS"));
+            message.setStringProperty("customerAddress",request.getParameter("clientSSS"));
+            message.setStringProperty("birthdate", request.getParameter("clientBirthdate"));
+            message.setDoubleProperty("customerSalary", Double.parseDouble(request.getParameter("clientSalary")));
+            message.setDoubleProperty("customerLoan", Double.parseDouble(request.getParameter("loanAmt")));
+            sender.send(message);
+
+
+            rd = ctx.getRequestDispatcher("/list.jsp");
+            rd.forward(request, response);
+        }
+        catch(Exception e) {
+            throw new ServletException(e);
+        }
+        finally {
+            try {
+                if (publishSession != null) {
+                    publishSession.close();
+                }
+            }
+            catch (Exception e) {}
+        }
+    }
+}

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

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

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

Added: geronimo/samples/branches/1.0/migration-ejb-mdb/src/webapp/WEB-INF/geronimo-web.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-mdb/src/webapp/WEB-INF/geronimo-web.xml?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-mdb/src/webapp/WEB-INF/geronimo-web.xml (added)
+++ geronimo/samples/branches/1.0/migration-ejb-mdb/src/webapp/WEB-INF/geronimo-web.xml Wed Mar 12 14:54:41 2008
@@ -0,0 +1,41 @@
+<?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="MDBDemoWebApp"
+         parentId="MDBDemo">
+         
+     <context-root>messaging-ejb</context-root>    
+     
+    <ejb-ref>
+        <ref-name>ejb/CustomerHome</ref-name>
+        <target-name>geronimo.server:EJBModule=MDBDemo,J2EEApplication=null,J2EEServer=geronimo,j2eeType=EntityBean,name=CustomerEJB</target-name>
+    </ejb-ref>
+
+    <resource-ref>
+        <ref-name>jms/broker</ref-name>
+        <resource-link>DefaultActiveMQConnectionFactory</resource-link>
+    </resource-ref>
+    
+    <resource-env-ref>
+        <ref-name>jms/queue/DefQueue</ref-name>
+        <message-destination-link>SendReceiveQueue</message-destination-link>
+    </resource-env-ref>
+    
+        
+</web-app>
\ No newline at end of file

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

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

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

Added: geronimo/samples/branches/1.0/migration-ejb-mdb/src/webapp/WEB-INF/jboss-web.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-mdb/src/webapp/WEB-INF/jboss-web.xml?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-mdb/src/webapp/WEB-INF/jboss-web.xml (added)
+++ geronimo/samples/branches/1.0/migration-ejb-mdb/src/webapp/WEB-INF/jboss-web.xml Wed Mar 12 14:54:41 2008
@@ -0,0 +1,35 @@
+<?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>
+    <resource-ref>
+        <res-ref-name>jms/broker</res-ref-name>
+        <res-type>javax.jms.QueueConnectionFactory</res-type>
+        <jndi-name>UIL2ConnectionFactory</jndi-name>
+    </resource-ref>
+
+    <resource-env-ref>    
+        <resource-env-ref-name>jms/queue/DefQueue</resource-env-ref-name>
+        <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
+        <jndi-name>queue/testQueue</jndi-name>
+    </resource-env-ref>
+    
+    <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-mdb/src/webapp/WEB-INF/jboss-web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

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

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

Added: geronimo/samples/branches/1.0/migration-ejb-mdb/src/webapp/WEB-INF/web.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-mdb/src/webapp/WEB-INF/web.xml?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-mdb/src/webapp/WEB-INF/web.xml (added)
+++ geronimo/samples/branches/1.0/migration-ejb-mdb/src/webapp/WEB-INF/web.xml Wed Mar 12 14:54:41 2008
@@ -0,0 +1,60 @@
+<?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.mdb.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>
+
+    <resource-ref>
+        <description>jms broker</description>
+        <res-ref-name>jms/broker</res-ref-name>
+        <res-type>javax.jms.QueueConnectionFactory</res-type>
+        <res-auth>Container</res-auth>
+    </resource-ref>
+
+    <resource-env-ref>
+        <description>Predefined Topic</description>
+        <resource-env-ref-name>jms/queue/DefQueue</resource-env-ref-name>
+        <resource-env-ref-type>javax.jms.Queue</resource-env-ref-type>
+    </resource-env-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-mdb/src/webapp/WEB-INF/web.xml
------------------------------------------------------------------------------
    svn:eol-style = native

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

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

Added: geronimo/samples/branches/1.0/migration-ejb-mdb/src/webapp/create.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-mdb/src/webapp/create.jsp?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-mdb/src/webapp/create.jsp (added)
+++ geronimo/samples/branches/1.0/migration-ejb-mdb/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-mdb/src/webapp/create.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

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

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

Added: geronimo/samples/branches/1.0/migration-ejb-mdb/src/webapp/list.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-mdb/src/webapp/list.jsp?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-mdb/src/webapp/list.jsp (added)
+++ geronimo/samples/branches/1.0/migration-ejb-mdb/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-mdb/src/webapp/list.jsp
------------------------------------------------------------------------------
    svn:eol-style = native

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

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

Added: geronimo/samples/branches/1.0/migration-ejb-mdb/webapp/create.jsp
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-mdb/webapp/create.jsp?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-mdb/webapp/create.jsp (added)
+++ geronimo/samples/branches/1.0/migration-ejb-mdb/webapp/create.jsp Wed Mar 12 14:54:41 2008
@@ -0,0 +1,55 @@
+<!--
+  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="ServletPath" 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>
+
+</table>
+</form>

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

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

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

Added: geronimo/samples/branches/1.0/migration-ejb-session/LICENSE.txt
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-session/LICENSE.txt?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-session/LICENSE.txt (added)
+++ geronimo/samples/branches/1.0/migration-ejb-session/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-session/LICENSE.txt
------------------------------------------------------------------------------
    svn:eol-style = native

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

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

Added: geronimo/samples/branches/1.0/migration-ejb-session/NOTICE.txt
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-session/NOTICE.txt?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-session/NOTICE.txt (added)
+++ geronimo/samples/branches/1.0/migration-ejb-session/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-session/NOTICE.txt
------------------------------------------------------------------------------
    svn:eol-style = native

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

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

Added: geronimo/samples/branches/1.0/migration-ejb-session/dd/META-INF/ejb-jar.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-session/dd/META-INF/ejb-jar.xml?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-session/dd/META-INF/ejb-jar.xml (added)
+++ geronimo/samples/branches/1.0/migration-ejb-session/dd/META-INF/ejb-jar.xml Wed Mar 12 14:54:41 2008
@@ -0,0 +1,121 @@
+<?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.
+-->
+
+<!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>
+            <home>com.ibm.demo.entity.CustomerHomeRemote</home>
+            <remote>com.ibm.demo.entity.CustomerRemote</remote>
+            <ejb-class>com.ibm.demo.entity.CustomerBean</ejb-class>
+            <persistence-type>Bean</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-demo</res-ref-name>
+                <res-type>javax.sql.DataSource</res-type>
+                <res-auth>Container</res-auth>
+            </resource-ref>
+        </entity>
+        
+        <session>
+            <description>This bean manages the loan applications</description>
+            <ejb-name>LoanManagerEJB</ejb-name>
+            <home>com.ibm.demo.session.stateless.LoanManagerHomeRemote</home>
+            <remote>com.ibm.demo.session.stateless.LoanManagerRemote</remote>
+            <ejb-class>com.ibm.demo.session.stateless.LoanManagerBean</ejb-class>
+            <session-type>Stateless</session-type>
+            <transaction-type>Container</transaction-type>
+            <ejb-ref>
+                <ejb-ref-name>ejb/CustomerHomeRemote</ejb-ref-name>  
+                <ejb-ref-type>Entity</ejb-ref-type>
+                <home>com.ibm.demo.entity.CustomerHomeRemote</home>
+                <remote>com.ibm.demo.entity.CustomerRemote</remote>
+            </ejb-ref>
+            <security-identity><use-caller-identity/></security-identity>
+        </session>
+        
+        <session>
+            <description>This bean manages the loan applications</description>
+            <ejb-name>StatefulLoanManagerEJB</ejb-name>
+            <home>com.ibm.demo.session.stateful.StatefulLoanManagerHomeRemote</home>
+            <remote>com.ibm.demo.session.stateful.StatefulLoanManagerRemote</remote>
+            <ejb-class>com.ibm.demo.session.stateful.StatefulLoanManagerBean</ejb-class>
+            <session-type>Stateful</session-type>
+            <transaction-type>Container</transaction-type>
+            <ejb-ref>
+                <ejb-ref-name>ejb/CustomerHomeRemote</ejb-ref-name>  
+                <ejb-ref-type>Entity</ejb-ref-type>
+                <home>com.ibm.demo.entity.CustomerHomeRemote</home>
+                <remote>com.ibm.demo.entity.CustomerRemote</remote>
+            </ejb-ref>
+            <security-identity><use-caller-identity/></security-identity>
+        </session>
+        
+    </enterprise-beans>
+    
+    <!--
+    <assembly-descriptor>
+        <security-role>
+            <description>
+                This role represents everyone who is allowed full access to the Ship EJB.
+            </description>
+            <role-name>all</role-name>
+        </security-role>
+        
+        <method-permission>
+            <role-name>all</role-name>
+            <method>
+                <ejb-name>CustomerEJB</ejb-name>
+                <method-name>*</method-name>
+            </method>
+            <method>
+                <ejb-name>LoanManagerEJB</ejb-name>
+                <method-name>*</method-name>
+            </method>
+            <method>
+                <ejb-name>StatefulLoanManagerEJB</ejb-name>
+                <method-name>*</method-name>
+            </method>
+        </method-permission>
+        
+        <container-transaction>
+            <method>
+                <ejb-name>CustomerEJB</ejb-name>
+                <method-name>*</method-name>
+            </method>
+            <method>
+                <ejb-name>LoanManagerEJB</ejb-name>
+                <method-name>*</method-name>
+            </method>
+            <method>
+                <ejb-name>StatefulLoanManagerEJB</ejb-name>
+                <method-name>*</method-name>
+            </method>
+            <trans-attribute>Required</trans-attribute>
+        </container-transaction>
+    </assembly-descriptor>
+    -->
+        
+</ejb-jar>
\ No newline at end of file

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

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

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

Added: geronimo/samples/branches/1.0/migration-ejb-session/dd/META-INF/jboss.xml
URL: http://svn.apache.org/viewvc/geronimo/samples/branches/1.0/migration-ejb-session/dd/META-INF/jboss.xml?rev=636529&view=auto
==============================================================================
--- geronimo/samples/branches/1.0/migration-ejb-session/dd/META-INF/jboss.xml (added)
+++ geronimo/samples/branches/1.0/migration-ejb-session/dd/META-INF/jboss.xml Wed Mar 12 14:54:41 2008
@@ -0,0 +1,53 @@
+<?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>
+    <container-configurations>
+        <container-configuration>
+            <container-name>Standard BMP EntityBean</container-name>
+            <commit-option>A</commit-option>
+        </container-configuration>
+    </container-configurations>
+    <enterprise-beans>
+        <entity>
+            <ejb-name>CustomerEJB</ejb-name>
+            <jndi-name>CustomerHomeRemote</jndi-name>
+            <resource-ref>
+                <res-ref-name>jdbc/ibm-demo</res-ref-name>
+                <jndi-name>java:/DefaultDS</jndi-name>
+            </resource-ref>
+            <configuration-name>Standard BMP EntityBean</configuration-name>
+        </entity>
+        <session>
+            <ejb-name>LoanManagerEJB</ejb-name>
+            <jndi-name>LoanManagerHomeRemote</jndi-name>
+            <ejb-ref>
+                <ejb-ref-name>ejb/CustomerHomeRemote</ejb-ref-name>
+                <jndi-name>CustomerHomeRemote</jndi-name>
+            </ejb-ref>
+        </session>
+        <session>
+            <ejb-name>StatefulLoanManagerEJB</ejb-name>
+            <jndi-name>StatefulLoanManagerHomeRemote</jndi-name>
+            <ejb-ref>
+                <ejb-ref-name>ejb/CustomerHomeRemote</ejb-ref-name>
+                <jndi-name>CustomerHomeRemote</jndi-name>
+            </ejb-ref>
+        </session>
+    </enterprise-beans>
+</jboss>
\ No newline at end of file