On Jun 19, 2010, at 5:50 AM, weberjn wrote: > > Hi, > > I'd like to debug a JCA resource adapter by remote-debugging Geronimo. > Could you give some hints, where I should start reading the Geronimo source? > Where would I have to set breakpoints to see if the configuration is done > right? Where is does the server call outgoing connections? Where is the > point where the server gets an incoming call?
You don't mention which version of Geronimo. I think G 2.1.x or G 2.2 will be pretty similar... Below applies to Geronimo 2.2. There are several parts. First, for outbound, the Geronimo server code is in plugins/connector/geronimo-connector. For start processing, see doStart() method in: geronimo/server/branches/2.2/plugins/connector/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/ManagedConnectionFactoryWrapper.java Confusingly, there's also org.apache.geronimo.connector classes in the txmanager component (which is TXManager and also Connector). See getConnection() method in: geronimo/components/txmanager/tags/geronimo-txmanager-parent-2.1.4/geronimo-connector/src/main/java/org/apache/geronimo/connector/outbound/MCFConnectionInterceptor.java For inbound, you'll want to look at OpenEJB. Start with the deploy() method (look for call to resourceAdapter.endpointActivation(...)) openejb/tags/openejb-3.1.2/container/openejb-core/src/main/java/org/apache/openejb/core/mdb/MdbContainer.java Hope that helps... --kevan
