I have simple Custom Class which implements Serializable i want to send this one across a stateless session bean
import java.io.Serializable;
public class TestObject implements Serializable {
private String name;
private String city;
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
Now when i send this class object through a method on server deployed stateless bean i get...this Before...java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: Failed to load class TestObject
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:191)
I thought that we can send any object with implements Serializable across the wire with out the other side having the same class.Is that true? how can we make this work.
import java.io.Serializable;
public class TestObject implements Serializable {
private String name;
private String city;
public String getCity() {
return city;
}
public void setCity(String city) {
this.city = city;
}
public String getName() {
return name;
}
public void setName(String name) {
this.name = name;
}
}
Now when i send this class object through a method on server deployed stateless bean i get...this Before...java.rmi.UnmarshalException: error unmarshalling arguments; nested exception is:
java.lang.ClassNotFoundException: Failed to load class TestObject
at weblogic.rjvm.ResponseImpl.unmarshalReturn(ResponseImpl.java:191)
I thought that we can send any object with implements Serializable across the wire with out the other side having the same class.Is that true? how can we make this work.