geronimo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From weberjn <webe...@gmail.com>
Subject Re: Debug a resource adapter - breakpoint locations?
Date Tue, 22 Jun 2010 12:14:46 GMT

Thanks, that helped.

The MDB is called from
org.apache.openejb.core.mdb.MdbContainer.invoke(Object, Method, Object...)

Greetings,
Juergen



kevan wrote:
> 
> 
> 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
> 
> 
> 

-- 
View this message in context: http://apache-geronimo.328035.n3.nabble.com/Debug-a-resource-adapter-breakpoint-locations-tp907415p914034.html
Sent from the Users mailing list archive at Nabble.com.

Mime
View raw message