Hey Hiram,

Glad to see you're getting interested.  Unfortunately I leave for the
weekend in a few minutes... more on monday.

The part of jca 1.5 I haven't written is the deployment of the adapter.  If
you get that far, you should be able to write a simple mbean to create your
ResourceAdapter and any adapter specific objects you need, then I can make
it generic.

Your adapter should have a ResourceAdapter object that sets up the
environment.  It will be provided a BootstrapContext object from which it
can get a WorkManager.  The WorkManager is a thread pool with transaction
import capabilities.  You won't need the tx import capabilities, but you
should use the thread pool.  I plan for the deployer to supply a
WorkManager per deployed adapter, configured according to a jboss-specific
dd, similar to the connection pool configuration.

Instead, use the Message Inflow stuff.  There's a unit test showing how it
works with transactions - org.jboss.test.jca.test.MessageEndpointUnitTestCase.

The deployment system I'm thinking of is to deploy the ResourceAdapter and
other adapter specific objects as xmbeans by generating xmbean xml
deployment descriptors for them.


BTW, I modified the Trunk invoker to make our tm distributed, using the jca
transaction import facilities.  It compiles and runs, but I haven't managed
to set up a test environment for it with 2 servers yet.

Thanks!
david jencks


On 2002.10.05 02:58:45 -0400 Hiram Chirino wrote:
> Hey David..  I want to see If I can start working on this.
> 
> I know like amost zero about jca but I know quite a bit about the XA
> stuff
> and how jbossmq txs work with the MDB.
> 
> anyways..  I guess what I need to know is how is the contianer going to
> initialize
> the jms stuff so that it can deliver the container it's messages.
> 
> 
> > -----Original Message-----
> > From: [EMAIL PROTECTED]
> > [mailto:[EMAIL PROTECTED]]On Behalf Of
> David
> > Jencks
> > Sent: Friday, August 30, 2002 1:35 PM
> > To: jboss-dev
> > Subject: [JBoss-dev] jbossmq and jca 1.5
> >
> >
> > I started looking at modifying jbossmq and/or the jmsra adapter to work
> > with the j2ee connector architecture 1.5 facilities.  I am
> > definitely not a
> > jms expert so a lot of what I say may not make sense.
> >
> > Here's what the new spec provides that I think is relevant:
> >
> > thread pooling through the WorkManager interface.  You submit Work
> > instances to be done in other threads.  The app server controls the
> thread
> > pooling.
> >
> > message inflow through the MessageEndpoint interfaces.  In particular,
> I
> > think we should use Option B which involves the jms system calling, on
> a
> > MessageEndpoint supplied from the app server,
> >
> > beforeDelivery([the onMessage method]); //this starts the jta tx and
> > informs the adapter via an XAResource the adapter supplied earlier.
> >
> > onMessage(message); //actual message delivery to MessageListener
> >
> > afterDelivery(); //ends the tx, again the adapter is informed via the
> > XAResource.
> >
> > --------
> >
> > I keep getting lost looking at the jms code.  My impression so far is
> that
> > although the jca 1 jmsra adapter appears to work ok without modifying
> > jbossmq, using the contracts mentioned above will require additional
> code
> > in jbossmq itself, namely an additional way of delivering
> > messages within a
> > transaction.
> >
> > Does this make sense?  Do any of the jbossmq experts want to work on
> this?
> >
> > There are very simple examples of using the work and message endpoint
> > interfaces in the testsuite in .../jca/inflow.
> >
> > I haven't written the deployment portion of the connector 1.5
> > support yet:
> > I'm hoping for a real adapter example that can be used to test it.
> > However, I think for now everything needed can be set up without
> > a deployer
> > as explicit mbeans: this is what I did in the tests.
> >
> > Thanks
> > david jencks
> >
> >
> > -------------------------------------------------------
> > This sf.net email is sponsored by: OSDN - Tired of that same old
> > cell phone?  Get a new here for FREE!
> > https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
> > _______________________________________________
> > Jboss-development mailing list
> > [EMAIL PROTECTED]
> > https://lists.sourceforge.net/lists/listinfo/jboss-development
> 
> 
> 
> -------------------------------------------------------
> This sf.net email is sponsored by:ThinkGeek
> Welcome to geek heaven.
> http://thinkgeek.com/sf
> _______________________________________________
> Jboss-development mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/jboss-development
> 
> 


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Jboss-development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to