title: Generating Unique sequence number in mule
body: <p>I have a requirement in my project.
  I want to generate an increasing unique sequence number which will be mapped to a specific field(interchange id ) for the output xml file.
  The customer wants to generate some alert around this number. So they are very specific about the number should be<br>
  1. Unique 2. Increasing.</p>
  
  <p>So now I have two approach to this case</p>
  
  <ol>
  <li>I will generate a sequence with the help of oracle sequence. But the problem is again they do not want to unnecessarily hit the database.</li>
  <li>Will genearate in java with the help of static variable. But I feel its not full proof. I think if my application or server restarts then the static variable will start form 0 again. In that case the number will not be unique.</li>
  </ol>
  
  <p>So my question is, if we can get this something easily in mulesoft or any idea is apreciated</p>
  
  <p>TIA.</p>