Win a copy of Rust Web Development this week in the Other Languages forum!

amol Bhandwale

Greenhorn
+ Follow
since Jul 12, 2010
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by amol Bhandwale

Hi All,

I have created the two timer task as

<bean id="loadPlanScheduledTask" class="org.springframework.scheduling.timer.ScheduledTimerTask">
<property name="delay" value="0" />
<property name="period" value="180000" />
<property name="timerTask" ref="loadPlanTimerTask" />
</bean>

<bean id="ediPollingScheduledTask" class="org.springframework.scheduling.timer.ScheduledTimerTask">
<property name="delay" value="0" />
<property name="period" value="100000" />
<property name="timerTask" ref="ediPollingTimerTask" />
</bean>

<bean id="timerFactory" class="org.springframework.scheduling.timer.TimerFactoryBean">
<property name="scheduledTimerTasks">
<list>
<ref bean="loadPlanScheduledTask" />
<ref bean="ediPollingScheduledTask" />
</list>
</property>
</bean>

I have configure the loadPlanScheduledTask for 3 min of interval and ediPollingScheduledTask for 100 sec interval.

My problem is when the loadPlanScheduledTask find some file and start loading the file it will take app. 10 min to load data from file.
If file size is large it take 30 min.
For this particular interval the ediPollingScheduledTask is not executed even after 100 sec.It stop running.It resumes after execution of loadPlanScheduledTask task.

Is their some thing wrong with configuration.

Thanks,
Amol.
10 years ago
Hi All,

I have following file

ISA*00* *00* *02*NFIA *02*ETRV *100202*1320*U*00401*000005297*0*P*>~GS*SM*NFIA*ETRV*20100202*1320*2661*X*004010~ST*204*6816~B2**ETRV**Amol990**PP~B2A*04~L11*807652409*MB~MS3*ETRV*B**M~N1*CA*DOANE PET CARE~N3*PLANT NO. 501*W. 20 TH & STATELINE RD.~N4*JOPLIN*MO*64802~S5*1*CL*44768*L*836*CA*3*E~G62*10*20100210*2*000100*LT~PLD*38~NTE*DEL*DELIVER ON 2/11 AT 5:30 AM APPT # 530-4~NTE*DEL*ATT DRIVER: Order ID Number COxxxxxx or ROxxxxxx MUST be presented upon pickup;~N1*SF*MARS PET CARE - TRACY*ZZ*0C~N3*PLANT NO. 503*450 EAST GRANT LINE ROAD~N4*TRACY*CA*95376~OID*CO748945*009360128304~S5*2*CU*44768*L*836*CA*3*E~G62*70*20100211*3*053000*LT~PLD*38~NTE*DEL*DELIVER ON 2/11 AT 5:30 AM APPT # 530-4~NTE*DEL*ATT DRIVER: Order ID Number COxxxxxx or ROxxxxxx MUST be presented upon pickup;~N1*ST*COSTCO WHOLESALE 936*FA*0804920985~N3*8400 W SHERMAN ST~N4*TOLLESON*AZ*85353~OID*CO748945*009360128304~L3*44768*G*******3*E*836*L~SE*28*6816~ST*204*6817~B2**ETRV**807165263100**PP~B2A*00~L11*807652600*MB~MS3*ETRV*B**M~N1*CA*DOANE PET CARE~N3*PLANT NO. 501*W. 20 TH & STATELINE RD.~N4*JOPLIN*MO*64802~S5*1*CL*44768*L*836*CA*1*E~G62*10*20100207*2*000100*LT~PLD*38~NTE*DEL*DELIVER 2/8 AT 6:30 AM APPT # 630-5~NTE*DEL*ATT DRIVER: Order ID Number COxxxxxx or ROxxxxxx MUST be presented upon pickup;~N1*SF*MARS PET CARE - PUEBLO*ZZ*0L~N3*PLANT NO. 514*#1 DOANE PLACE~N4*PUEBLO*CO*81001~OID*CO746858*009360125362~S5*2*CU*44768*L*836*CA*1*E~G62*70*20100208*3*063000*LT~PLD*38~NTE*DEL*DELIVER 2/8 AT 6:30 AM APPT # 630-5~NTE*DEL*ATT DRIVER: Order ID Number COxxxxxx or ROxxxxxx MUST be presented upon pickup;~N1*ST*COSTCO WHOLESALE 936*FA*0804920985~N3*8400 W SHERMAN ST~N4*TOLLESON*AZ*85353~OID*CO746858*009360125362~L3*44768*G*******1*E*836*L~SE*28*6817~GE*2*2661~IEA*1*000005297~


And want to extract the string between this segment ~B2**ETRV**Amol990**PP~B2A*04~ ie Amol990

i tried with

awk '/ETRV/, /PP~B2A/ ' filename

but it returns


ISA*00* *00* *02*NFIA *02*ETRV *100401*1645*U*00401*000015937*0*P*>~
GS*SM*NFIA*ETRV*20100401*1645*7852*X*004010~
ST*204*23118~
B2**ETRV**807690591**PP~
B2A*04~
L11*807690591*MB~
MS3*ETRV*B**M~
N1*CA*Mars Petcare c/o NFI Interactive~
N3*1515 Burnt Mill Rd*Former Doane Petcare~
N4*Cherry Hill*NJ*08003~
G61*IC*Joe Perez*TE*856-857-1324x2516~
S5*1*CL*43520*L***1*E~
G62*10*20100401*2*000100*LT~
NTE*DEL*ATT DRIVER: Order ID Number COxxxxxx or ROxxxxxx MUST be presented upon pickup;~
N1*SF*MARS PET CARE - SAN BERNARDINO*ZZ*0E~
N3*PLANT NO. 505*2765 LEXINGTON WAY #15~
N4*SAN BERNARDINO*CA*92407~
OID*RO216442~
S5*2*CU*43520*L***1*E~
G62*70*20100405*3*000100*LT~
NTE*DEL*ATT DRIVER: Order ID Number COxxxxxx or ROxxxxxx MUST be presented upon pickup;~
N1*ST*MARS PET CARE - JOPLIN*FA*0A~
N3*PLANT NO. 501*W. 20 TH & STATELINE RD.~
N4*JOPLIN*MO*64802~
OID*RO216442~
L3*43520*G*******1*E*0*L~
SE*25*23118~
GE*1*7852~
IEA*1*000015937~



Please help
Thanks,
Amol.



11 years ago
Hi All,

I have following scenario.

On WEB1 there is a folder /usr/share/Shipment_Doc

On WEB2 there is a folder /usr/share/Shipment_Doc

On WEB2 there are some files which are not present on WEB1.

I want a script copy those file which are not present on WEB1 from WEB2.


Thanks,
Amol.




11 years ago
Hi,

I have a web application which created some pdf reports and under jboss default fiolder we created BOL folder.

whenever the report pdf is created in BOL folder it also created in jboss bin folder.

we are creating the reports using ireport as

dataSource = new JRBeanArrayDataSource(reportRows);
JasperDesign jasperDesign = JRXmlLoader.load(strJRXMLPath);
JasperReport jasperReport = JasperCompileManager.compileReport(jasperDesign);
JasperPrint jasperPrint = JasperFillManager.fillReport(jasperReport, map , dataSource );
JasperExportManager.exportReportToPdfFile(jasperPrint, strPDFPath );

strPDFPath represents the complete path of file.

it's creating the two file one in jboss/bin folder and another in specified folder strPDFPath.

Why this is happing?I am not getting exact reason for this.

Thanks.
11 years ago