MQServer

From struts4php

Jump to: navigation, search

Introduction

The message-queue package provides a simple way to decouple functionality from your application and run it asynchronous in a separate process. It provides no funtionality, besides it runs an socket server with the possiblity to load one or more scripts that implements the functionality you need.

Installation

To install the message-queue, you have to install two packages. The first package provides the server functionality. The second one ist the client package that is necessary to connect to the server and sending messages to it.

Example:

root@localhost:~$ pear install struts4php/mqserver
root@localhost:~$ pear install struts4php/mqclient

After the installation you can test the message-queue by starting the server. Therefor change to the installation directory and start the message-queue with the following command:

root@localhost:~$ mqserver &

This starts the message-queue without doing anything. To see if the message-queue is running type:

root@localhost:~$ ps -ax
Personal tools