-
1. Re: ByApplication Criteria question
davidjencks Mar 4, 2003 6:29 PM (in response to alwyn)You need to implement ConnectionRequestInfo, and you need to implement the equals and hashCode methods so they distinguish between the contents rather than basing on the object identity. Otherwise the pools can't guess what mc's might be appropriate.
-
2. Re: ByApplication Criteria question
alwyn Mar 4, 2003 10:20 PM (in response to alwyn)Thank you David it works great!
One more question, what is the reason for a ManagedConnectionFactory also implementing equals and hashCode? -
3. Re: ByApplication Criteria question
alwyn Mar 4, 2003 10:21 PM (in response to alwyn)Thank you David! It works great.
One other related question..
Why do ManagedConnectionFactory also implement equals and hashCode? -
4. Re: ByApplication Criteria question
davidjencks Mar 6, 2003 8:11 AM (in response to alwyn)It's a spec requirement that I don't fully understand. I think it's because some app servers serialize mcfs and then need to find the original after deserialization. At the moment I can't remember if I succeeded in preventing jboss from ever needing to serialize an mcf. If you have a non-transient reference to the mcf in a ConnectionFactory (or DataSource) you can end up serializing it if an ejb gets passivated while holding a reference to the cf/ds.