Uploaded image for project: 'Spring Roo'
  1. Spring Roo
  2. ROO-2573

"field jms template" command should add a JmsOperations, not a JmsTemplate

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 1.1.4.RELEASE
    • Fix Version/s: 1.2.0.RC1
    • Component/s: @ CORE
    • Labels:
      None

      Description

      The Roo command "field jms template --fieldName jmsHelper" adds a field to the specified Java class as follows:

      MyEntity.java
      @Autowired
      private transient JmsTemplate jmsHelper;

      In the spirit of programming to interfaces, this field should be declared as an org.springframework.jms.core.JmsOperations instead. This will allow users to deploy an alternative JmsOperations implementation in their applicationContext.xml if desired.

        Attachments

          Activity

            People

            Assignee:
            aswan Andrew Swan
            Reporter:
            aswan Andrew Swan
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: