Hi there,
Can anybody answer me the following tiresome problem?
1. I try to use O-R mapping according to Orion How-to, exactly as the
following:
In CustomerEJB.java, add:
public Set addressSet;
public static final Class
addressSet_type=com.FedEx.entity.customer.Address.class;
public Set getAddressSet() {
return addressSet;
}
public void setAddressSet(Set addressSet) {
this.addressSet=addressSet;
}
In Customer.java, add:
public Set getAddressSet() throws RemoteException;
public void setAddressSet(Set addressSet) throws RemoteException;
In the CustomerClient.java which calls "Set mySet=getAddressSet()" method,
mySet.size() is correct, however, while I use the following code to retrieve
the objects stored in mySet, it always hangs:
Set set=customer.getAddressSet();
if (set==null) {
System.out.println("Set is null??!!");
return;
} else {
System.out.println("Set is not null!!! size=" + set.size());
}
Object[] o=set.toArray();
// o.length is correct.
for (int i=0; i<o.length; i++) {
System.out.println("Retrieve set data at " + i + " ");
temp=(Address)o[i];
// Always hang at the followed code?????
System.out.println("Position at: " + temp.getPosition() + " City: " +
temp.getCity());
}
I use Orion1.0.3. Is it the version problem?
2. It seems that there is some problem with Orion1.2.9's ejbmaker.jar - it
can't open saved .skeleton file. Anyone encounter this problem?
Any hints will be highly appreciated...
Jennifer
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.