CMP « Bean « JSP-Servlet Q&A





1. CMP Bean    coderanch.com

2. Null Pointer exception thrown while deploying the cmp bean    coderanch.com

Hi All, I had written a cmp bean and tried to deploy it in jboss4.0.4GA, While deploying into the server it is throwing NullPointer exception. Can any one help me to resolve this. My code is following ProductHome.java package cmp; import java.rmi.RemoteException; import java.util.Collection; import javax.ejb.CreateException; import javax.ejb.EJBHome; import javax.ejb.FinderException; public interface ProductHome extends EJBHome { Product create(String procutID,String name,String description,double ...

3. Best way to generate Primary Key with CMP- Entity Bean (EJB 2.0)    coderanch.com

Hi, Which is the best way to generate a primary key. Say, for example I have one table Student and in that I have a student Id. Now how can I generate it as an automated key. I don't want to use sequencing or auto increments. I want to do with a business logic, so how can I achieve that?

5. BMP and CMP in entity Beans?    coderanch.com