Thanks but still its not clear ?
public class DataclientImpl implements DataServer
{
DataServer d;
//Data d; i need to too..
connect(
String mode)
{
if(local)
{
d=new Data();
}else
{
d = (DataServer)Naming.lookup(url);
}
}
public lock(index)
{
d.lock(index);
}
}
here i need both DataServer and data instance for Local And Remote mode.
so how do u suggest to do
cheers.