From: SQUILLACE M. <msq...@so...> - 2005-09-23 15:24:10
|
Jost, Success! Before calling the snippets I sent you it was necessary to setup WebSphere MQ environment, but since the statements I used didn't signal any problems I was confident it was all OK; moreover I got the same errors as those I sent you with or without such initialization. Now, to prepare the environment you have to set specific key/value pairs defining the server to connect, the port and the channel to use, and following the manual e.g. I assigned the value 'MY_TEST_CHANNEL' to a key 'CHANNEL_PROPERTY'. What I didn't understand was that I had to instantiate a class named MQC and susbstitute the key name with something like $mqc->CHANNEL_PROPERTY (which points internally to a string valued "channel"). As soon as I realized this and made corrections the scripts ran fine through the end, writing a message a reading it back (and quickly too!). The exceptions reported put me on the wrong path, and I don't know why they were raised ... it appears there is nothing wrong with type coercion in the bridge. Thank you very much for your help, Massimo |