• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Jeanne Boyarsky
  • Liutauras Vilda
Sheriffs:
  • Rob Spoor
  • Bear Bibeault
  • Tim Cooke
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Piet Souris
Bartenders:
  • Frits Walraven
  • Himai Minh

ejb access bean

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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;
}
 
Ranch Hand
Posts: 81
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
reply
    Bookmark Topic Watch Topic
  • New Topic