[seam-dev] JMS Resource Injection
Jordan Ganoff
jganoff at gmail.com
Wed Apr 7 08:30:27 EDT 2010
All,
I'd like some feedback on how I've implemented JMS destination injection.
For reference see the design notes at http://sfwk.org/Seam3/JMSModule.
Generic destination injection is realized by decorating the AnnotatedTypes
which define any transitive annotations of @JmsDestination. The annotations
are replaced with the defined @JmsDestination and a simple pair of producer
methods handle their production (
http://github.com/jganoff/seam3-jms/blob/master/src/main/java/org/jboss/seam/jms/impl/inject/DestinationProducer.java
). Although this works it removes the annotations. I'd much prefer another
solution which leaves all annotations intact and somehow provides producers
for each (if not already defined).
Any thoughts on the matter would be greatly appreciated. Am I correct in
assuming the original annotations should be preserved?
Code base is currently on github until the svn repo is set up:
http://github.com/jganoff/seam3-jms
Relevant test cases are here:
http://github.com/jganoff/seam3-jms/tree/master/src/test/java/org/jboss/seam/jms/test/inject/
Thanks!
--
Jordan Ganoff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/seam-dev/attachments/20100407/0fcb12dd/attachment-0001.html
More information about the seam-dev
mailing list