Headache I am try to instantiate this class below
this is the first line of codes in my client application it keeps on throwing remote exception yet I am connecting locally any suggestions I can get my application to work with another middle tier but I was extending data I dont want to that>........
//global variable
private DataClient myInstance11;
public client()
{
try
{
myInstance11 = new dataConnectImpl("C:\\scjd\\starting\\client\\db.db");
}
catch(RemoteException e)
{
System.out.println("OH not again");
}
.
.
.
.
//end client class
exception "OH not again" is being thrown all the time ???
//here is my middle tier class to handle local and Remote see below it has all the methods of the DataClient Interface see Below...............................
import java.io.*;
import java.util.*;
import suncertify.db.Data;
import suncertify.db.DataClient;
import java.rmi.*;
import java.rmi.server.UnicastRemoteObject;
public class dataConnectImpl extends UnicastRemoteObject implements DataClient
{
private Data InstanceOne;
public dataConnectImpl(
String dbName)throws DatabaseException,RemoteException
{
super();
try
{
System.out.println("Im here before");
InstanceOne = new Data(dbName);
System.out.println("Im here after");
}
catch(Exception ex)
{
System.out.println("Error Creating Instance in DataClientLocal");
}
}
public FieldInfo [] getFieldInfo()throws RemoteException
{
FieldInfo[] info = null;
try
{
info = InstanceOne.getFieldInfo();
}
catch(Exception e)
{
}
return info;
}
.
.
.
.
.
.
.
.
}end class
Thanks in advance Lisa