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 » Problem with MBService in Java Compute Node

Post new topic  Reply to topic
 Problem with MBService in Java Compute Node « View previous topic :: View next topic » 
Author Message
hasselb
PostPosted: Fri Apr 27, 2007 12:36 am    Post subject: Problem with MBService in Java Compute Node Reply with quote

Newbie

Joined: 26 Apr 2007
Posts: 6

I have a Java Compute Node where i want to read something from a file. You possible exceptions i use the MBService class.

try {
inputStream = new BufferedReader(new FileReader(configFile));
} catch (FileNotFoundException e) {
logErrorGenerateException(this, methodName, Wait_JavaComputeMessages.MESSAGE_SOURCE,
Wait_JavaComputeMessages.CONFIG_FILE_NOT_FOUND,
configFile, new String[] {configFile});
}

The last argument should be an insert. The Message looks like :
CONFIG_FILE_NOT_FOUND, "The configuration file %1 was not founddd" },

As you can see, the %1 should be exchanged with configfile (name of configuration file). When i then get this exception i see this message in the event og, but with %1 in it and not with the name of the configfile.

For this i used the sample code and cannot see any differnces. I work with Message Broker Toolkit V. 6.02.

Any ideas ??
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Fri Apr 27, 2007 12:41 am    Post subject: Re: Problem with MBService in Java Compute Node Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

What is a value of configFile ?

Put

Code:
System.out.println("configFile ="+configFile );


before try block.
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
hasselb
PostPosted: Fri Apr 27, 2007 12:51 am    Post subject: Reply with quote

Newbie

Joined: 26 Apr 2007
Posts: 6

The value of configfile is simply "PerfTestConfig.txt" as name of a file
Back to top
View user's profile Send private message
marcin.kasinski
PostPosted: Fri Apr 27, 2007 12:53 am    Post subject: Reply with quote

Sentinel

Joined: 21 Dec 2004
Posts: 850
Location: Poland / Warsaw

Where this file is placed ?
_________________
Marcin
Back to top
View user's profile Send private message Visit poster's website
hasselb
PostPosted: Fri Apr 27, 2007 12:59 am    Post subject: Reply with quote

Newbie

Joined: 26 Apr 2007
Posts: 6

The problem is not the file itself, the problem is that the MBService class dos'nt exchange the value %1 with the string in configFile.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Apr 27, 2007 4:21 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

MBService expects a Java resource bundle.
_________________
I am *not* the model of the modern major general.
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 » Problem with MBService in Java Compute Node
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.