Topic
  • 1 reply
  • Latest Post - ‏2014-05-02T15:08:35Z by smithkenny
sameerkumarg
sameerkumarg
18 Posts

Pinned topic Sticky connection

‏2014-05-01T21:57:13Z |

All,

I was wondering if there was a way to make a connection sticky, i.e., use the same connection for multiple macros. I want to do this, to ensure consistency while running my macros. So if I am using a connection pool, and I run macro 1 which uses the next available connection from the pool, I would like to use the same connection to run a few other macros, before releasing it back into the pool.

This is also related to the other question I posted earlier, about Integration object chaining and macro chaining.

 

Thanks,
Sameer

  • smithkenny
    smithkenny
    29 Posts

    Re: Sticky connection

    ‏2014-05-02T15:08:35Z  

    You define the connection on the macro. The connection should be a connection pool. When using Chaining, you have to define the start of the chain, the end of the chain, and middle members of the chain. 

       <associatedConnections default="main">
          <connection name="main"/>
       </associatedConnections>

     

    If at all possible, I recommend you try to go with a single, stateless, macro. It requires work, but will result in more manageable architecture long term.