I am happy to announce that the first version of MessageDriven beans have been
checked into the CVS repository.
OBSERVE:This is the first version. It WILL contain buggs, and should not
be used in production environments. As far I have tested it does not brake
other parts in jboss (I hope).
That said. It is of cource meant to be tested. Please report any strange stuff.
To use it one need to have openjms, but not just plain openjms, but a patched
version due to some buggs in the current openjms.
A package with the stuff needed is available at:
http://www.backsource.org/source/java/jms-ejb/
There is a README inside, read it and you will get the picture.
There is also the source code for one message driven bean there. And three
jared beans with different configuration. Open them up in emacs and you can
see both how an ejb.xml and an jboss.xml look like for MessageDriven Beans.
(Only unix sh files are there, if you are on Windows you will have to
fix the ones in the openjms cvs distribution).
In jms-ejb is also the specially hacked OpenJMSServerSession pool I had to
put together to make it work at all.
Are there outstanding issues?
Most definitely.
- I have not yet fully verifyed that message acknowledgemen work fully,
specially for Queue:s,
- Durable topics is not verifyed at all.
- Method class name and signature is hardcoded - should be made optional in
jboss.xml - check MessageDrivenContainer (in setupBeanMapping)
and MessageDrivenMetaData (if(getMethodTransactionType("onMessage", new Class[
] {}, true) == MetaData.TX_REQUIRED)). This only matters if you want to make
a news ContainerOnvoker for MDB:s other than JMS.
- host and port is hardcoded for OpenJMSAdapter
Hope it works for someone else than me, and hope SpyderMQ will soon make a
spec compliant ASF available.
//Peter
--
------------------------------------------------------------
Peter Antman Technology in Media, Box 34105 100 26 Stockholm
Systems Architect WWW: http://www.tim.se
Email: [EMAIL PROTECTED] WWW: http://www.backsource.org
Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942
------------------------------------------------------------
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]