//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?
I suggest buying the excellent $10 CMP 2.0 documentation if you need information on how to write an entity bean in JBoss.
Ben