1 Reply Latest reply on Aug 29, 2002 11:40 AM by Ben Wong

    I have a Entity Bean ? How to write ejb-jar.xml

    kkjvk12 Newbie

      //MusicCDHome.java

      package com.whaic.music;

      import java.rmi.RemoteException;
      import javax.ejb.*;


      public interface MusicCDHome extends EJBHome {
      public MusicCD create(String upc)
      throws CreateException, RemoteException;
      public MusicCD findByPrimaryKey(String pk)
      throws FinderException, RemoteException;
      }

      //MusicCDBean.java

      package com.whaic.music;

      import java.rmi.RemoteException;
      import javax.ejb.*;


      public interface MusicCDHome extends EJBHome {
      public MusicCD create(String upc)
      throws CreateException, RemoteException;
      public MusicCD findByPrimaryKey(String pk)
      throws FinderException, RemoteException;
      }


      //MusicCD.java
      package com.whaic.music;

      import java.rmi.RemoteException;
      import javax.ejb.*;


      public interface MusicCD extends EJBObject {
      public String getTitle() throws RemoteException;
      public void setTitle(String title) throws RemoteException;

      public String getArtist() throws RemoteException;
      public void setArtist(String artist) throws RemoteException;

      public String getType() throws RemoteException;
      public void setType(String type) throws RemoteException;

      public float getPrice() throws RemoteException;
      public void setPrice(float price) throws RemoteException;
      }

      1¡¢what should I want?

      2¡¢what's difference between CMP1.0 and CMP2.0?

      3¡¢where can I find some examples on program on this net?