JCAPSMentor - Java CAPS Unleashed - Basic to Expert Discussions

JCAPSMentor - Basic to Expert Discussions Jcaps, SOA, SUN, Netbeans, Enterprise, Sun System Application Server, Java, J2EE, EAI, JBI, Composite Application Platform Suite, EDI, SeeBeyond, HL7, Singapore

 
  FOLLOW US!
  JCAPSMentor

Visit us at Facebook



 

  Visitors LIVE! Stats
 
  Covering the World!
 
BatchInbound File Name Pattern - Working with JCAPS regular expression
Sometimes providing a pattern to any of the Batch Adapter in JCAPS can be a pain and involves a lot of Googling for an regex which actually would work for us. It may look simple intially but writing a wrong file regex pattern can cause dangling exception at runtime.

In case you are looking for file pattern which has to read any file with a particular extension like .cntl, you can use :
.*\.cntl


or may you need to read any file from a particular directory do use:
.*\.*$


The above file patterns have worked for JCAPS 5.1.X and JCAPS 6.

Incase you are looking for a specific pattern as per your requirement do write to me at manesh@jcapsmentor.com

Also, following are some sites which can help you to check the regex which you have thought about to implement in the Batch Adapter as patterns:

http://www.myregextester.com/
http://www.fileformat.info/tool/regex.htm

Regards,
Mak

Labels: , , , ,

 
0 Comments:
Post a Comment
<< Home
 
Manesh Abhimanyu
Manesh is a Sr. EAI Consultant, at present working in Singapore (Little Red Dot).

His focus is in the areas of SOA, ESB and Enterprise Architecture Management.

Contact him via email (mak2powerATyahoo.co.in)

Menu
Archives
Links
Website developed & maintained by

Manesh Abhimanyu K. (Mak)

Click here to contact Manesh









Free Domain CO.NR