Originally posted by KasiMurugan Ramasamy:
it's not possible.
Thanks Kasi for replying the post.
In order to implement the local & Remote funcationalities assume that I have two component interfaces and two home interfaces then
Component Interfaces:
public interface CustomerLocal extends javax.ejb.ejbLocalObject
{
public void getCustomerData(int CustomerID);
}
public interface Customer extends javax.ejb.ejbObject
{
public void getCustomerData(int CustomerID) throws RemoteException;
}
Home Interfaces:
public interface CustomerLocalHome extends javax.ejb.ejbLocalHome
{
public CustomerLocal create(
String customerID) throws CreateException;
}
public interface CustomerHome extends javax.ejb.ejbHome
{
public Customer create(String customerID) throws CreateException, RemoteException;
}
Now I have one Bean class CustomerBean as
public class CustomerBean implements javax.ejb.EntityBean
{
public void getCustomerData(int CustomerID)
{
System.out.println("Customer Name: " + Customer.getCustomerName());
}
}
In this whether can I call the getCustomerData(int CustomerID) method in both local & Remote Interface. Is it possible. What are the new changes coming in EJB3.0?