This content has been marked as final.
Show 2 replies
-
1. Re: Unregistered handle that was not registered! null for ma
adrian.brock Dec 3, 2004 3:21 PM (in response to damian80)1) It is your ConnectionRequestInfo that is broken (hashcode/equals).
2) You are not sending the handle connection object on the closed event. -
2. Re: Unregistered handle that was not registered! null for ma
damian80 Dec 3, 2004 5:21 PM (in response to damian80)1) What do you mean by broken? Perhaps unimplemented? I currently have my own simple implementation, this is the entire code of the class:
import javax.resource.spi.ConnectionRequestInfo; import java.util.HashMap; public class ConnectionRequestInfoAdapter extends HashMap implements ConnectionRequestInfo { public ConnectionRequestInfoAdapter() { super(); } }
The Hashmap stores the connection properties so i can connect to the EIS. Should there be anything else?
2) In my ManagedConnection class, my close method is implemented as:Connection conn; ... void close() { ConnectionEvent event = new ConnectionEvent(this, ConnectionEvent.CONNECTION_CLOSED); event.setConnectionHandle(this.conn); sendEvent(event); }
Is this what you mean by sending the connection event, in the connection handler? I am still receiving the same errors, are there any other fixes or another way of closing the connection?
Thanks again, Damian.