Announcement Announcement Module
Collapse
No announcement yet.
Spring Integration Sample Ideas Page Title Module
Move Remove Collapse
This is a sticky topic.
X
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • Spring Integration Sample Ideas

    If you have ideas for anything you would like to see addressed in the Spring Integration Samples repository, feel free to open a ticket here: https://jira.springsource.org/browse/INTSAMPLES

  • #2
    In running the ws-inbound-gateway sample, using SI 2.1 and Hamcrest 1.2-all jar, I ran into a problem with the InboundGatewayTests sample unit test.

    The assertThat with Junit is apparently not exactly the same as the assertThat with Hamcrest, and I have Hamcrest higher in the pom since I use Hamcrest matchers more than Junit.

    I ended up switching the code
    Code:
    assertThat(reply, is(DOMSource.class));
    to use another Hamcrest matcher:
    Code:
    assertThat(reply, instanceOf(DOMSource.class));
    I think the instanceOf() is more appropriate for the assert you intended, so you may want to use it in your unit tests.

    Comment


    • #3
      Nice Examples
      Last edited by AvinashMunaga; Jan 18th, 2012, 05:02 AM.

      Comment


      • #4
        Hi Mark,
        Some suggestions
        1. More JMX based examples
        2. Would be great to have example that integrate with NoSQL datastores like Redis for instance if possible.
        3. Example/documentation on writing a new custom component with xsd support (and if possible with a custom image that STS could pick from for the integration graph).

        Will raise the JIRAs

        Thanks,
        Anoop

        Comment


        • #5
          Having problem with :imap-idle-channel-adapter

          I am new to this Spring Integration. I am using spring-integration-mail-2.2.0.M3. I have a scenario of keep looking a mail account and create a record in database as soon as I get a mail. I have below configuration

          <int-mail:imap-idle-channel-adapter id="customAdapter"
          store-uri="imaps://allen:allen:localhost:143/snow.com/INBOX"
          channel="recieveChannel"
          auto-startup="true"
          should-delete-messages="false"
          should-mark-messages-as-read="false"
          java-mail-properties="javaMailProperties"/>

          <utilroperties id="javaMailProperties">
          <prop key="mail.imap.socketFactory.class">javax.net.ssl. SSLSocketFactory</prop>
          <prop key="mail.imap.socketFactory.fallback">false</prop>
          <prop key="mail.store.protocol">imaps</prop>
          <prop key="mail.debug">true</prop>
          </utilroperties>


          public void initMailSender() {
          System.out.println("^^^^^^^^^^^^^^^^^^^^^^^^^^^ Inside Init");
          inputChannel.subscribe(new MessageHandler() {

          @Override
          public void handleMessage(Message<?> message)
          throws MessagingException {

          System.out.println("^^^^^^^^^^^^^^^^^^^^^^^^^^^ lai mayandi message vanthiruku " + message.toString());

          }
          });
          }

          I am expecting the “handleMessage” should be invoked as sson as I get any mail for allen, but I am not getting the control over here.

          Can you please let me anything wrong here?

          I suspect the below url
          store-uri="imaps://allen:allen:localhost:143/snow.com/INBOX"

          Here I have “imaps://[Email ID]:[Password]:[Email Server Host]:[IMAP Port]/[Domain Name]/[Mail Box Name]

          I tried many combinations nothing worked out.

          Note : I have Apache James mail server running on my local and created domain name as “snow.com” also created email name “allen” with password “allen” under domain “snow.com”

          Please help me in fixing this.

          Comment


          • #6
            I entered two into Jira.. One for showing an example with Human based "tasks".. IE using Spring Integration where a step in the flow has human interaction... I'm actually planning to try this out but would have loved to see Spring Int Team's thoughts on how to accomplish.. For the record I plan to have many small flows.. for instance a flow that is trigger by email receipt does a few things and ends.. The human interaction will occur (really outside of Spring Int) but it's end result is dropping a message on the queue which will trigger another Spring Int flow.. There will be many of these in the lifecycle of the Object that came in from the email int he first flow... In a traditional workflow engine this might be one single flow..

            The second sample idea I submitted was for actual integration with a workflow engine (such as Activiti)

            Comment

            Working...
            X