This week I had a conf-call with a developer from a JavaEE server vendor to figure out what was happening with one of our JCA adaptors when a failure was reported in the underlying system and to my surprise “connectionErrorOccurred” method may not be called as I felt when I read the specs. One of the points that came up in the conf-call were the missing parts of the spec. This became clear when we discussed that on two other containers the adapter that caused the discussion worked fine and was giving problems only on this particular container. The developer argued (and he is right, spec does not cover this) that this vendor chose to disallow “connectionErrorOccurred” calls while connection is not in use (as the developer referred “our connections”, or, connections that are being held by the container in the connection pool). He also argued that this assumption (the one made by the container) was motivated to increase performance as it could reduce synchronization code. So, after these discoveries I’ll be updating the posts related to JCA and in the further weeks, after I have some time to do some updates to my FooJCA connector (this connector was useful to reproduce the bug inside the vendor lab) I’ll release it here for download so anyone willing to see a working example of a JCA connector will have a quick start code.
Recent Posts
Archives
Tags
BEA
business delegate
Classloader
ConnectionManager
ConnectionRequestInfo
dynamic proxies
EAI
EIS
EJB
ejb 2.1
evdev
Gnome
hal
IBM
import
Intrepid
Java Connector Architecture
JavaEE
JBoss 5.1
JCA
JMS
ManagedConnection
ManagedConnectionFactory
matchManagedConnection
MDB
MessageDriven
Oracle Fusion
Outbound
outbound connector
pmi
Pooling
profiling
Queue
Remap
ResourceAdapter
Resource Adapter
Seam
ServerSocket
Service Orientation
SOA
Thread
use time
wait time
WebSphere
X


Hi Rafael,
I was wondering if your FooJCA is downloadable anywhere?
Thanks,
Rosco
Hi Rosco,
In fact there was a FooJCA but only for solving the issue I mentioned in the Future Updates post (the one related to purging connections).
The reason I did not post any code or sample for download is somehow related to how I thought to share/discuss ideas on this blog, but is there any particular thing you’d like to know about JCA adapters? Are you trying to roll one and are facing difficulties?
regards!
Hi Rosco,
If you have any doubts, feel free to leave a comment!
regards!