5 Replies Latest reply on Feb 12, 2003 5:12 AM by Joyce Stack

    HELP Newbie - CMP Deployment + Configuration

    Joyce Stack Newbie


      I have my home and remote interfaces, my entity bean is written with the following for retrieving a datasource

      Context context = (Context)(new InitialContext()).lookup("java:comp/env");
      datasource = (DataSource)context.lookup("jdbc/DefaultDS");

      I want to use the Hypersonic database. I have a table called Customers in there. I am trying to just connect to database and retrieve and do some simple inserts from my client (a servlet).

      This is my ejb-jar.xml file

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

      Entity Bean which demonstrates Bean-Managed persistence.





      Can someone please tell me what else do I need to deploy a CMP. ? Do I need to place some jars on my classpath? Do I need a jbosscmp-jdbc.xml file? What deployment steps do I need to do once I have my classes written and compiling?

      Thanks for the help