I got probably problems with CCSID and Encoding.
The workflow is:
Step_1:
- ASP.NET WebService (hosted in Windows XP) posts a message in queue_A of queueManager with CCSID 1208 on MQ installed in HP-UX 11.31 v2, LC_CTYPE=univ.utf8.
Step_2:
- application_X hosted in the same HP-UX server Gets the message from queue_A through JAVA library. (local development)
Step_3:
- message processed
Step_4:
- application_X Posts the reply(the same message string) to queue_B
Step_5:
- ASP.NET WebService Gets the message from queue_B.
The following happens:
- In Step_4 as message Posted, its length changes. (probably due CCSID conversions)
- In Step_5 as message retrieved by ASP.NET WebService, the message aint readable.
Would be pleased if someone would point to some comprehensive documentation on CCSID and Encoding settings.
Or, what would be the right values in all parties for CCSID and Encoding?
MQSeries Solutions
Wednesday, July 28, 2010
Monday, July 26, 2010
Calling Java Routine using ESQL in Message Broker
I am facing a problem when I call a java routing from ESQL only when when I pass REFERENCE as a Parameter.
please find the detail below.
Broker Toolkit 6.0.2:
If I make a reference in ESQL to JAVA method with string as input parameter I don't see any error.
Example 1:
at ESQL:
CREATE PROCEDURE hashValue2 (
IN Value CHAR
)
RETURNS CHAR
LANGUAGE JAVA
EXTERNAL NAME "com.xyz.CommonJavaFunctions_JavaCompute.hashValue2";
at java :
public static String hashValue2(String value) {
return "";
}
EXAMPLE2 : If I use REFERENCE as an input parameter I am getting error Unable to locate a class definition named "com.xyz.CommonJavaFunctions_JavaCompute" in the project or a referenced project.
at ESQL
CREATE PROCEDURE hashValue2 (
IN Value REFERENCE
)
RETURNS CHAR
LANGUAGE JAVA
EXTERNAL NAME "com.xyz.CommonJavaFunctions_JavaCompute.hashValue2";
at java :
public static String hashValue2(MbElement value) {
return "";
}
have any one faced similer problem? please let me know if you got any suggestions, i am sure it is not related to PROJECT references or classpath, it doesn't give any error if I change the parameter type, I greatly appreciate your help.
please find the detail below.
Broker Toolkit 6.0.2:
If I make a reference in ESQL to JAVA method with string as input parameter I don't see any error.
Example 1:
at ESQL:
CREATE PROCEDURE hashValue2 (
IN Value CHAR
)
RETURNS CHAR
LANGUAGE JAVA
EXTERNAL NAME "com.xyz.CommonJavaFunctions_JavaCompute.hashValue2";
at java :
public static String hashValue2(String value) {
return "";
}
EXAMPLE2 : If I use REFERENCE as an input parameter I am getting error Unable to locate a class definition named "com.xyz.CommonJavaFunctions_JavaCompute" in the project or a referenced project.
at ESQL
CREATE PROCEDURE hashValue2 (
IN Value REFERENCE
)
RETURNS CHAR
LANGUAGE JAVA
EXTERNAL NAME "com.xyz.CommonJavaFunctions_JavaCompute.hashValue2";
at java :
public static String hashValue2(MbElement value) {
return "";
}
have any one faced similer problem? please let me know if you got any suggestions, i am sure it is not related to PROJECT references or classpath, it doesn't give any error if I change the parameter type, I greatly appreciate your help.
Subscribe to:
Posts (Atom)