Browse Messages in IBM MQ
I have snippet of a code here that reads messages from a queue. Can someone please tell me how I can convert this to browser messages in the queue without destroying them?
Thanks.
private static void drainQueue()
// create queues
MQQueue queue = null;
// Specify queue name within Queue Manager
String queueName = "DEVMACHINE.OLDQ";
// set queue open options
int openOptions = MQC.MQOO_INPUT_SHARED |MQC.MQOO_FAIL_IF_QUIESCING | MQC.MQOO_SAVE_ALL_CONTEXT ;
// set queue manager properties
MQEnvironment.hostname = queueHostName;
MQEnvironment.port = queuePort;
MQEnvironment.channel = queueChannelName;
try
// Create a connection to the queue manager
queueManager = new MQQueueManager(queueManagerName);
System.out.println("\nQueueAdapter: Connected to queue Manager " + queueManagerName);
catch (MQException e)
System.out.println("Cannot connect to the queue manager " + queueManagerName);
int messageLength = 0;
String dataString = null;
try
// access the queue
System.out.println("\nQueueAdapter: Trying to access queue " + queueName);
queue = queueManager.accessQueue(queueName, openOptions, null, null, null);
System.out.println("\nQueueAdapter: Successfully accessed queue " + queueName);
// specify the message options
MQGetMessageOptions gmo = new MQGetMessageOptions();
// create a message object
MQMessage aMessage = new MQMessage();
byte[] msg = new byte[4096];
// keep reading the queue and write the message to standard output
System.out.println("\nMessage(s) read from queue " + queueName + ":");
while (true)
// set the message ID and the correlation ID
aMessage.messageId = MQC.MQMI_NONE;
aMessage.correlationId = MQC.MQCI_NONE;
// read from the queue
queue.get(aMessage, gmo);
messageLength = aMessage.getMessageLength();
aMessage.readFully(msg, 0, messageLength);
// store message read from queue in a string
dataString = new String(msg, 0, messageLength);
// write message to standard output
System.out.println(dataString);
catch (MQException mqex)
if (mqex.reasonCode == mqex.MQRC_NO_MSG_AVAILABLE)
System.out.println("QueueAdapter: No more messages available in the queue.");
catch (Exception e)
System.out.println("An error occured while writing to the message buffer : " + e.toString());
finally
try
// close the queue
queue.close();
catch (Exception qe)
System.out.println("Error while closing queue : " + qe.toString());
try
// disconnect from the queue manager
queueManager.disconnect();
catch (Exception qme)
System.out.println("Error while disconnecting from queue manager : " + qme.toString());
}
This is a IBM MQ question, not a JMS question.
If someone can help please do, but you would have a better chance of resolution if you go to the IBM support site, as you are not going through the JMS interface, but using the MQ Series specific interfaces.
TE
Similar Messages
-
Can't get email due to unsupported browser message??
Cannot get email (icloud) due to unsupported browser message?
Tiger 10.4.11 does not support iCloud.
iCloud requirements > Apple - iCloud - Learn how to set up iCloud on all your devices.
iCloud requires v10.7.4 or later ... -
I downloaded a version of Roboform and got unsupported browser messages. I tried to uninstall Roboform and apparently did, as no icon, application or system preference files remain. The toolbar remains and the messages persist. I had the whole system reinstalled, which got rid of the messages but, yesterday, I did a software update (installing Java, Safari updates, etc.) and the messages are back. Can someone suggest how to get rid of them?
Download the latest update on the Web site, 7.5.7:
http://www.roboform.com/dist/RoboForm-Setup.exe
Please be sure to follow us on Twitter and Like us on Facebook for the latest news and information about RoboForm.
http://www.facebook.com/roboform
http://www.twitter.com/roboform
Thanks,
Michelle
Siber Systems, Inc. -
I received a browser message today from Rogers AT&T for a promotion they are running but do not know how to view it.
I have the browser icon with a 1 at the top of my screen where it would should text and email messages to let me know I have a new message.
How do I access browser messages on my 8900?If you can't view it - how do you know it is a Promotion ?
If it is definitely the Browser icon - a tiny globe of the world, with a number 1 next to it,
then it is a browser "push" message - from when you previously tried to view a web page that was unavailable,
and now it IS available, so you are being alerted to this.
Goto : Main Menu / Messages / Menu / View Folder / Browser Messages
Then either delete the message in there, or click on the link to view the web page you are being notified is now available.
Can also be confused with the symbol that appears when there is an update available for one of your installed app's.
In which case : go into your downloaded Apps folder and check the indiviual App's to see if there are updates for them.
If you found my answer ( or anyone else's ) to be helpful, don't forget to click the Kudos button ! -
I get a "locate link browser" message after updating Avast
Firefox is my browser of choice. I recently updated my Avast! antivirus. In the process, it automatically installed Google Chrome. I promptly uninstalled Chrome. Since then, from Outlook 2003, clicking on a link results in a "locate link browser" message and Firefox does not open. In Windows XP, I have gone into folder options, file types and there is no URL:HyperText Transfer Protocol. Neither can I add it because it is not in the drop-down list. I run regedit to try to delete four files called for in various help sites, but none of them are there. What can I do now without setting Internet Explorer as my default browser?
Try to undo and redo Firefox as the default browser.
Make another browser like IE the default browser and then let Firefox do it again.
See:
* http://kb.mozillazine.org/Default_browser
*http://kb.mozillazine.org/Windows_error_opening_Internet_shortcut_or_local_HTML_file_-_Firefox -
Tomcat, SSL and browser-messages
Hi,
I'm delivering webcontent from a Tomcat-hostet servlet-solution. Everything runs on SSL using a self-generated certificate.
My problem is, that some of our users dislike the browser-messages about installing certificates and being redirected to a secure line. Is there any standard way of minimising these SSL-related messages? Possibly using the java keytool?One error on see on many secure pages is that it is not completely secure. Most of the time it is because the images on the page are not on a secure server.
-
Im trying to upgrade my firefox and I get the incompatible browser message. Im runnning Mac OS 10.5.8 which according to your system requirements should be fine?
You can not update to 7.0.1 because you have PPC, read here the solution chosen for more information:
https://support.mozilla.com/en-US/questions/891475
thank you -
Browser message icon on main page on 8120
I've recently gotten some sort of "browser message" icon (located where one would normally get a meeting or schedule message icon) and noone at the local T Mobile store can tell me how to get rid of it. Once again it is a small icon located just above the regular page icons, much smaller and I was told it was a "browser message icon" but they couldn't tell me how to get rid of it.
Any help???Have you checked to see if you actually do have a browser message? Click on your message icon and click the menu key. Scroll down and select "view folder". Then select browser messages. Hopefully you will have an unread message there and the icon will go away.
~Lorrie~ Master of All Things Blackberry! -
Hi! I've a code that writes a message to an MQSeries queue. My question is, how do I browse (search) the messages in the queue in order to find what I'm looking for.
Here's the code that I'm using to write the message;
try{
Class.forName("com.ibm.mq.jms.services.ConfigEnvironment");
Class.forName("com.ibm.mq.MQEnvironment");
MQEnvironment.hostname = "150.100.120.215";
MQEnvironment.port = 1414;
MQEnvironment.channel = "SYSTEM.DEF.SVRCONN";
MQEnvironment.properties.put(MQC.TRANSPORT_PROPERTY, MQC.TRANSPORT_MQSERIES_CLIENT);
MQQueueManager queueManager = new MQQueueManager("QMMDAVA1");
MQQueue queue = queueManager.accessQueue("QLD.AVANC.RESP", MQC.MQOO_OUTPUT);
MQMessage message = new MQMessage();
message.correlationId = MQC.MQCI_NONE;
message.messageId = MQC.MQMI_NONE;
message.writeString("prueba de conexion");
queue.put(message);
queue.close();
queueManager.disconnect();
catch(Exception e){
e.printStackTrace(System.out);
}Hope you can help me!
RegardsCouldn't you just use multiple queues?
-
Send a message to IBM webspeare MQ from ASE PC Client 12.5.4
Hi Team,
we need to send a message(IBM WebSpeare MQ) through either Stored Procedure or Triggers from our sybase DB(ASE PC Client 12.5.4 is installed in my machine and the same available in the server). Is it possible to send a message from ASE? if so can you please tell me the way of coding?
Thanks
NareshHave you looked at the Active Messaging Users Guide?
-bret -
One or more PDF documents are open inside a web browser - message
Hi,
I have a new L series notebook and its great. The only foible I can think of is a message I keep getting when I try to shutdown. There is a message box that says "One or more PDF documents are open inside a web browser. If you exit adobe reader now, those documents will be closed. Are you sure you want to exit?".
The thing is I do not have any PDF's or web browsers open at the time! Can you help me please?
Thanks, Mark.Hi Mark
Believe me its nothing serious the same happens on my notebook from time to time
Usually the PDF files can be read with the Adobe Acrobat reader. This application service runs in the OS background and this message can appears if the Adobe Acrobat reader cannot close the background process automatically
I have solved this tiny problem by removing the acrobat reader from the system. After new reboot I have reinstalled it again
Now the message does not appear and all runs like a dream ;) -
How to get messages from IBM MQ in Oracle.
Hi ,
Can you please help me how to get messages from one IBM MQ to another IBM MQ in Oracle.
My requirement is Our upstream is putting messages from their IBM MQ to our IBM MQ
then we have to extract data from the message and load into Oracle database tables
how to implement this in oracle.
Is there any other way to implement this without writing any ORACLE PL/SQL programming.
Please help me.
Thanks.You might want to use Oracle AQ: Integrating Oracle database applications with WebSphere MQ applications You will need to write some PL/SQL to Dequeue from Oracle AQ and convert the queue payload into insert statements.
If you need help wityh AQ, there is a separate forum: Advanced Queueing -
Can WaitTime be specified for browsing queue messages just like receive messages.
found END_SQL universe parameter which allowed it to work.
I did not have the syntax correct when I tried it the first time.
After replacing the default "blank" value in END_SQL.... I was able to accomplish this.
Problem solved. -
I bought a MacMini with Lion server software already installed. I activated the web page and can see it from the Safari application within the MacMini. However, if I try and access the page using my laptop, I get the following message:
Unsupported Browser
Your browser is not supported.
The latest version of Safari, Chrome, Firefox or Internet Explorer is required to use Wiki Server on Mac OS X Lion Server. Alternatively, visit this page from an iPod Touch, iPhone or iPad.
I have the latest version of Safari and Firefox installed on my laptop and get the same message with each. How do I get the Lion Server to recognize browsers from out on the net?
Thx.
DavidWow that is puzzling. Lion would have Safari 5.1 as standard or 5.1.1 if upgraded. I believe I managed to connect to your server (as a test) and it displayed correctly in Safari 5.1 under Mac OS X 10.6.8 - see below. I did not have a Lion machine available to test with.
I could certainly expect it to be not accessible using older versions of Internet Explorer, but it should work with a Lion client. In order to try and eliminate the SonicWALL as a cause, try accessing it internally via the LAN IP address (the internal address) of your server e.g. http://192.168.1.10 doing so will prevent the traffic going through the SonicWALL. -
Acrobat pro install unsupported browser message
i am trying to install acrobat pro but get message about unsupported browser. am using internet explorer 10 for windows 7.
Try to run the IE 10 in compatibility mode.
Refer this link,
http://windows.microsoft.com/en-US/internet-explorer/use-compatibility -view#ie=ie-10
Maybe you are looking for
-
How to connect apple TV with 2 Macs?
Hi! I have connected/linked Apple TV with the iTunes library from my iMac (wireless). ..... Now, I have also downloaded some movies from iTunes on my MacBook. So I connected the MacBook (wireless) with Apple TV, but when I open Apple TV in iTunes on
-
Itunes will only start up once
hi i think i need some help! i've had problems mainly due to my own studipity! i installed the standalone quicktime and that sort of helped. but now itunes will only open once if i close it down and try to open it again it wont open. i have to restar
-
Graphic Frame can not be renamed
FM-11 and FM-12: In the Object Properties there is no more a field Name. Hence a graphic frame on the reference pages can not be checked for its name or the name can not be edited. I have filed this as a bug. The dialogue in FM-12 and FM-11: In FM-10
-
Dowloading 2.0.2 update but errors out about netwok timeout
This has me frustrated tried several times but cant get 2.0.2 down at all, so i downloaded from server, installed through Itunes using shift restore pointed to version 2.0.2 and it killed my phone, had to restore back to 2.0.1, after reading the glow
-
This happens randomly and infrequently. At first I thought it was my cats fault but it has recently happened while I was sitting at the computer with no feline interference. If someone could let me know how, if it's possible, to change the keyboard l