Arun Seshadri

Greenhorn
+ Follow
since Dec 22, 2005
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 Arun Seshadri

Hi,

I am trying to run a javascript and if I add the following two functions and call the function I get an error saying "Failed: Object doesn't support this property or method"

The functions are as below within a javascript.



I call the functions as below:
This is a unit test script to test a particular function on the web page.
If I hard code the value of CalculatedCR then it works fine but If I use the calculateBBSYRate(term,freq) I get the error.



Error Message:


Many Thanks in Advance.

[ November 01, 2007: Message edited by: Arun Seshadri ]
[ November 01, 2007: Message edited by: Arun Seshadri ]
From my experience as Jimmy mentioned we can integrate modern systems with legacy apps such as mainframe.

I have worked on Java Application (Front End) that uses JMS to transfer XML files/messages to the Backend for processing. The front end creates an XML file and stores them in the MQ Queue which then invokes a shell script that will pass the message to a COBOL program for further processing and creating reports, Update the database or bulk file processing etc, etc.

Hope this helps.
Yes after commenting out the package statement it seems to be doing something but there are still some errors.

I have changed the hbm.xml file as per your suggestion and I corrected the ResultID field in the XML document. When I execute the code I am getting the following error message.





I am trying one from www.roseindia.net

There is a tutorial for Hibernate with MySQL.
The deals class looks like the following.



The project structure under Eclipse is

hibernateexample
+ bin
+ roseindia/tutorial/Hibernate/ (All class files here)
deals.hbm.xml file here
hibernate.cfg.xml file here
+ src
+ roseindia/tutorial/hibernate

I tried to run the code now and I get this error.

Hi

I am new to Hibernate and trying to map a hbm.xml file but for some reason I get this error
"Could not parse mapping document from resource deals.hbm.xml"

The following is the dump of events that I get on log4j on eclipse when I try to run the code. Could someone please let me know where I am going wrong?



The mapping deals.hbm.xml file looks like the one below.

Jim,

You are brilliant.
On the command line I use dir /S it takes 39 seconds and with dir /S /B takes a lot less approx 9 seconds.

As you suggested the files on the local C: Drive works fine but on the
network drive it is stuffed. So I guess the problem is not with listfiles but the network performance.





Thank you very much for your valuable help.

Many Thanks
Arun
[ January 10, 2006: Message edited by: Arun Seshadri ]
16 years ago
Sorry about the formatting.

No in that case there were 5 files but in reality we may have anywhere upto 10,000 files of variable length. So that is the reason I was looking if something better can be done.
[ January 09, 2006: Message edited by: Arun Seshadri ]
16 years ago
As requested the code is below.



I think there may be something wrong with the system or I am doing something wrong. I am in the process of writing a applicatoin which monitors the folders continuously to see if there are any new files. But when the application starts it needs to look if there are any files that already exist.

I tried on the command line and that was 39 seconds that it took to look for the files.

[ January 09, 2006: Message edited by: Jim Yingst ]
[ January 09, 2006: Message edited by: Arun Seshadri ]
16 years ago
Running the test looks like following for listfiles.

Elapsed = 49487
Listing Files to Array took 49487ms
Total Files Found 5

And if I run the command line to list all the files
it takes 39 seconds approximately. I would say the time it takes is indeed more. It would be good to see if there are any other ways to decrease the time to search for files.

How about JNI? How can that help me speed up the search.

Thanks
Arun
16 years ago
Tried using the command line on the recursive call and it has about 10 second difference between running a command on command line and the Java Program using Listfiles. I did not notice a major difference between listfiles and list.

I guess performing a JNI system call may be a good idea. Would some methods from the NIO FileChannels be useful to get the filename.

Many Thanks
Arun
16 years ago
The Files were indeed not accessible. I have sorted that part. The only problem that remains is with speed of the following code.

Could you please tell me what is wrong with the following method. As it takes way too long to produce an output.

Am I doing something wrong ?


Thanks
Arun
[ January 06, 2006: Message edited by: Jim Yingst ]
16 years ago
Another Small Problem that is noticed on Windows XP Professional When running java 1.5.

If I use the following command the program would not work.
java TestFiles "X:\Java5\Transfer\tests"

The following command works fine.

java TestFiles "X:\Java5\Transfer"

Could anyone suggest what could be the problem.

Thanks
Arun
16 years ago
Thanks for the tips. The code was indeed helpful.

I have a list of files under the directory (in excess of 20K) and would
like to know if there is a faster way to implement the listing of files.

Is there anything in the Java NIO package that we can use to speed up the file listing.

Many Thanks
Arun
16 years ago
I am trying to recursively read all the files under a given directory.
Is there a API to do this. Any help is appreciated.

Thanks
Arun
16 years ago