Results 1 to 3 of 3

Thread: JmsTemplate and generics

  1. #1
    Join Date
    Jul 2011
    Posts
    6

    Question JmsTemplate and generics

    I'm a bit unhappy with the API of JmsTemplate and MessageConverter and wanted to ask whether it would be possible to make some changes for Spring 4.0. Basically because MessageConverter is not generic #receiveAndConvert has to do a cast, and #convertAndSend is not type safe. Making MessageConverter generic itself doesn't fix the problem because there can only be one MessageConverter per JmsTemplate. It would have to be passed as an argument so that type propagation works correctly. As this likely will have to wait for Spring 4 which has Java 8 / lambdas as a topic MessageConverter should probably be split into two interfaces (one for sending, one for receiving).

    I asked the same question in the spring-framework-contrib mailing list but got no response. Should I just sumbit a proposal as a pull request?

  2. #2
    Join Date
    Mar 2010
    Location
    Gtr Philadelphia, PA
    Posts
    2,027

    Default

    I would suggest you start by opening an 'Improvement' JIRA issue https://jira.springsource.org/browse/SPR

    If you are interested in contributing a solution, include a note thereof, with a summary, in the JIRA description.

    The contribution guidelines are here https://github.com/SpringSource/spri...ONTRIBUTING.md
    Gary P. Russell
    Spring Integration Team
    SpringSource, a division of VMware

  3. #3
    Join Date
    Jul 2011
    Posts
    6

    Default

    Ok, will do.

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •