Author |
Message
|
bduncan |
Posted: Thu Aug 16, 2001 4:12 pm Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
I have a lot of experience coding MQSeries applications in Perl. Sometimes these applications are standalone, othertimes they are executed as cgi in a web-server. But for about the past year or so I have been using PHP more and more for generating dynamic pages. Now I was thinking that with PHP and MQSeries on Linux, I could effectively create a poor man's scalable web site by having a bunch of machines running mysql databases, and put them in a cluster with a few webservers running apache. Using a PHP interface to MQSeries, I could send a SQL query to a clustered queue that exists on all the database servers, my queries would round-robin between them.
There's just one little problem. There is no PHP API for MQSeries. I was thinking about trying to code this myself, but I wanted to make sure of a few things...
1) There are others out there who might actually find use for this
2) Is it even feasible? The Perl API uses XLC as a front-door to the C API for MQSeries. I don't know of such a thing for PHP.
3) Am I going to get better performance than just using the Perl API? Because we all know PHP generates the exact same HTML faster than Perl (I can already feel the angry stares!) but is that any indication that it can talk to a queue manager any faster?
Any thoughts, inputs, advice, words of caution (or encouragement), would be appreciated!
_________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
mauwolff |
Posted: Wed Sep 03, 2003 7:01 am Post subject: |
|
|
 Newbie
Joined: 03 Sep 2003 Posts: 1
|
|
Back to top |
|
 |
cmdmqm |
Posted: Tue Nov 04, 2003 4:45 am Post subject: |
|
|
Novice
Joined: 04 Feb 2002 Posts: 24 Location: Berlin
|
Hi,
did someone succeed with this package?
Bye,
cmdmqm |
|
Back to top |
|
 |
dpchiesa |
Posted: Tue Aug 17, 2004 3:17 pm Post subject: another option |
|
|
 Apprentice
Joined: 29 May 2002 Posts: 46
|
if you are on Windows, another option for getting to MQ from PHP may be to use the COM interface (MQAX).
I have previously used the PHP-COM stuff for other components, but never tried with MQAX.
-D _________________ -dpchiesa |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Aug 17, 2004 6:56 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Quote: |
Now I was thinking that with PHP and MQSeries on Linux, I could effectively create a poor man's scalable web site by having a bunch of machines running mysql databases, and put them in a cluster with a few webservers running apache. |
Brian:
Using Apache:... excuse me for asking a stupid question... Would a java servlet be too slow ??
Thanks
F.J. |
|
Back to top |
|
 |
bduncan |
Posted: Wed Aug 18, 2004 11:29 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
No, in fact it might be faster than PHP because it's compiled rather than interpreted on the fly. I only suggested it because many small-time websites are written in PHP or Perl rather than Java, so having an MQ API would be useful so you don't have to rewrite your site in Java. _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
GeraldMueller |
Posted: Mon Oct 04, 2004 5:09 am Post subject: |
|
|
Newbie
Joined: 04 Oct 2004 Posts: 1
|
Hello,
I have the same problem. I want to test the connection PHP <--> MQseries.
Find youe a way to do this?
bduncan wrote: |
I have a lot of experience coding MQSeries applications in Perl. Sometimes these applications are standalone, othertimes they are executed as cgi in a web-server. But for about the past year or so I have been using PHP more and more for generating dynamic pages. Now I was thinking that with PHP and MQSeries on Linux, I could effectively create a poor man's scalable web site by having a bunch of machines running mysql databases, and put them in a cluster with a few webservers running apache. Using a PHP interface to MQSeries, I could send a SQL query to a clustered queue that exists on all the database servers, my queries would round-robin between them.
There's just one little problem. There is no PHP API for MQSeries. I was thinking about trying to code this myself, but I wanted to make sure of a few things...
1) There are others out there who might actually find use for this
2) Is it even feasible? The Perl API uses XLC as a front-door to the C API for MQSeries. I don't know of such a thing for PHP.
3) Am I going to get better performance than just using the Perl API? Because we all know PHP generates the exact same HTML faster than Perl (I can already feel the angry stares!) but is that any indication that it can talk to a queue manager any faster?
Any thoughts, inputs, advice, words of caution (or encouragement), would be appreciated!
|
|
|
Back to top |
|
 |
kman |
Posted: Thu Jan 12, 2006 12:05 am Post subject: |
|
|
Partisan
Joined: 21 Jan 2003 Posts: 309 Location: Kuala Lumpur, Malaysia
|
I am quite curious on this topic, and where it was heading. Any development on this? |
|
Back to top |
|
 |
Michael Dag |
Posted: Wed Dec 20, 2006 2:07 am Post subject: SAM: A PHP interface to messaging providers |
|
|
 Jedi Knight
Joined: 13 Jun 2002 Posts: 2607 Location: The Netherlands (Amsterdam)
|
SAM, or Simple Asynchronous Messaging, is a project to make accessing
messaging and queueing systems simpler. We have produced an
implementation which allows PHP systems to connect with IBM WebSphere MQ
queue managers, IBM WebSphere Business Integration Brokers over
Real-Time Transport, or with the default messaging provider found in IBM
WebSphere Application Server v6.
Project SAM is currently at version 0.3.0 - this includes publish /
subscribe functionality, along with point-to-point connectivity.
More details on the project, along with links to download the package,
can be found at the website http://project-sam.awardspace.com, or on the
Pecl site at http://pecl.php.net/package/sam. _________________ Michael
MQSystems Facebook page |
|
Back to top |
|
 |
|