Sree Lekshmi

Ranch Hand
+ Follow
since Oct 08, 2012
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
1
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
(keep public parts private until JForum day)
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt
Moderation Tools

Recent posts by Sree Lekshmi

I have a scenario where Producer is sending n no: of messages to a JMS queue, My queue will process this message and send to another queue, My code is working well in a single threaded scenario. Now i want to do a load testing where my application should handle n number of messages at a time. After several reading, I understand we can configure concurrency to 10 or any number. Now I have 2 questions. 1) do we need to explicity handle multi threading using Task executor or JMSTemplate in spring will handle this ? 2) How to do retry mechanism if the sender queue is down or any error happened. I reaseached a lot, but couldnt find any examples for IBM MQ retry.

Any help would be greatly appreciated
4 weeks ago
Sorry this is not related with java pgmming... This is batch script.. I didnt find a place in this forum to post general qns other than this "in general" link
1 year ago
This is something like a random number appending with the current date to make it unique.
1 year ago
Hello...

I have a file name which starts with MyFile<Date><RandomValue>

I need to read this file from Source and rename to a new filename and move to diff destination. Below is my script.. I am not able to read using the below script. Please help.




Actual :My File_14092016.txt"

Expected :My File_14092016080008.txt
1 year ago
Hey All, I have a question on where should we configure dynatrace agent in Prod or pre production environment ? Our Prod configuration consists of 3 servers and load balancer. Do we need to configure the agent in load balancer or the three servers ?
1 year ago
Please ignore above code, this is the one


}
1 year ago
Thank you guys, it worked!!
One more question now I am reading byte array to character and checking the position of record type '25', That code works fine- Now my question is If it is record type 25, i want to read a value from that record- I can read that value using char[i] position. is it a good way to read a long value ?

1 year ago
OK I got it what you meant.. I am coding based on my understanding..Will keep you posted
1 year ago
Yes you are right!! it is reading the length of first record. But I don't understand, it should read the entire file. right ? how come first record ? how can I go to the next record now ?
1 year ago
Below is my code , This is to taking first record type( 01 here) , But i can see positions are varying...I'm totally confused




Output

size 808529971

                P

Attaching my file in hex editor
1 year ago
how to read hexadecimal position of file in java ? Is there any better approach. I don't have much idea about this, googled a lot and no luck
1 year ago
I guess that helps..Will keep you posted..thanks much
1 year ago
i'm sorry..can you please elaborate? what is the position of "25" here? What if i want to read all records(20,52,26.25) ,I cannot write a generic code to read the position if it is not coming in same position right?
1 year ago
i have hex editor and it shows the following.Attached the image. In this file i want to read all '25' record types,for that i have to read record type of all transaction. if the record type is not in a specified position( each records it shows record type in different position) how can i make a generic code ?
1 year ago