IMQ broker running but I get 'Broker: unavailable' (2312)

I start the App Server, platform edition, which starts up the imqbrokerd on port localhost:7676. Fine. The App Server Admin Console shows it running as a 'JMS Host' , and the Message Queue Admin Console can connect to it and shows it running as a broker.

Then I start up my C app, which calls:

MQCreateConnection ( ... )

with the properties set to localhost:7676 , which is correct. Username and Password match those displayed at the admin console.

This call fails with :

"Opened TCP connection to broker localhost:33578." (the correct dynamic port)

"Connection ping enabled (ping interval = 30 second)."

"Failed to write packet with reply because 'Broker: unavailable' (2312)"

"Failed to say hello to broker because 'Broker: unavailable' (2312)"

"ReadChannel:: received GOODBYE from broker"

Error initializing Sun Java Message Queue.

: Resource temporarily unavailable (11)

So, can someone tell me what 'Broker: unavailable' means? Not a very helpful message.

Thanks.

-- Peter

[1090 byte] By [peter.b] at [2007-11-26 7:59:07]
# 1

Well, I found the answer, on my own Console window lurking in a different workspace:

"Support for C api clients is unavailable in this edition, please upgrade to Enterprise Edition."

What a pain, I don't have any enterprise-level needs and can't justify upgrading.

Our new web interface is java, but the background stuff is not. Guess I'll need to go totally java if I want to use the JMS.

Or does anyone have any cool tricks to suggest? :-)

-- Peter

peterb at 2007-7-6 20:27:12 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...
# 2

Hi,

With some editions, there is an Enterprise Edition trial license

that comes with the distribution. If you run:

imqbrokerd -license

it will display whether the trial license is available. If so, you can

invoke the broker with:

imqbrokerd -license try

If the trial license is not available with your distribution, send us mail at:

mq-feedback@sun.com

and we can send you one.

jnakata at 2007-7-6 20:27:12 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...
# 3

Hi,

I have the similar problem that Peter

When I starp up the "demo" C app: /opt/SUNWimq/demo/C/producer_consumer/Consumer, which calls:

MQCreateConnection ( ... )

with the properties set to localhost:7676, Username(guest) and Password(guest) this call fails with:

"Opened TCP connection to broker localhost:50527."

"Connection ping enabled (ping interval = 30 second)."

"ReadChannel:: received GOODBYE from broker"

"Failed to write packet with reply because 'Broker: unavailable' (2312)"

"Failed to say hello to broker because 'Broker: unavailable' (2312)"

"Could not connect to broker because 'Broker: unavailable' (2312)."

consumer(): Error: Broker: unavailable

when I call to comand line: imqbrokerd -license

The following licenses are available:

Package - Description

pe- Sun Java(tm) System Message Queue 3.7 Platform Edition

To start the broker with a specific license,

use the parameter -license <package>, e.g.,

imqbrokerd -license unl

imqbrokerd -license try

imqbrokerd -license pe

Can someone tell me, in this case, what 'Broker: unavailable' means?

Thanks a lot

rperez at 2007-7-6 20:27:12 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...
# 4
http://mq.dev.java.netIt's Sun OpenMessageQueue 4.0 Enterprise Edition, downloadable with complete source. They have open-sourced it.Haven't checked the C-client runtime though.
jsalvo at 2007-7-6 20:27:12 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...
# 5
Instead of using a trial license, why not just use MQ 4.0 ? http://mq.dev.java..net
jsalvo at 2007-7-6 20:27:12 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...
# 6
MQ 4.0 is not supported outside of the AS 9.0 release. If you are running standalone MQ and need support you should run an earlier releases of the softwareOur next releases will be supported for standalone use
Linda_Schneider at 2007-7-6 20:27:12 > top of Java-index,Application & Integration Servers,Sun Java System Message Queue...