• Post Reply Bookmark Topic Watch Topic
  • New Topic

ejb access bean  RSS feed

 
preonti pallov
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all.I am new in java.I am using sun application server to deploy ejb.After deploying entity bean i cannot create ejb data access bean or
wrapper bean manually.Please can any one help me how to write or any resource to find how to create those data access bean.
The code is following

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

public interface Product extends EJBObject {

public void setPrice(double price) throws RemoteException;

public double getPrice() throws RemoteException;

public String getDescription() throws RemoteException;
}


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

public interface ProductHome extends EJBHome {

public Product create(String productId, String description,
double balance) throws RemoteException, CreateException;

public Product findByPrimaryKey(String productId)
throws FinderException, RemoteException;

public Collection findByDescription(String description)
throws FinderException, RemoteException;

public Collection findInRange(double low, double high)
throws FinderException, RemoteException;
}
 
Vinay Raj
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
There are number of professional DAO generators for EJBs like Firestorm etc. I am not familiar with any Open source DAO generators for EJBs.

In case you are looking for a templating engine, which helps you define a template for the DAO, you could try using Velocity. I found it useful for automating code generation.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!