ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Different behaviour of java code [Solved]

Post new topic  Reply to topic
 Different behaviour of java code [Solved] « View previous topic :: View next topic » 
Author Message
kspranava
PostPosted: Tue Dec 06, 2005 8:16 pm    Post subject: Different behaviour of java code [Solved] Reply with quote

Centurion

Joined: 27 Apr 2003
Posts: 124

Hi Gurus,

When I try the following code in two different scenarios, I get two different responses.

Java code: new File(files[i].getName()).length()

Using the code in a standalone java program, it returns me the actual size of the file.
Calling this code from a Compute node: Value returned is '0'.

Similary the last modified date

But the name of the file is returned properly in both the cases(files[i].getName()). Also, when I insert a SOPL (System.out.println) statement, where the output is written?

Any inputs on this is much appreciated.

Thanks in advance,
Pranava.

Hi Gurus,

Problem is solved once the new file object was created by passing parent name and file name. Otherwise broker is looking for the file in bin directory.

Pranava.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » Different behaviour of java code [Solved]
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.