| Changes to /sendxmppmsg/trunk/README |
r0 vs. r6
Edit
|
r6
|
| /sendxmppmsg/trunk/README | /sendxmppmsg/trunk/README r6 | ||
| 1 | * SendXMPPMessage | ||
|---|---|---|---|
| 2 | |||
| 3 | This is a OSWorkflow plugin which can be used for sending | ||
| 4 | XMPP (eg. Jabber or OpenFire) messages. | ||
| 5 | |||
| 6 | * Configuration | ||
| 7 | |||
| 8 | A typical OSWorkflow configuration that would be defined: | ||
| 9 | |||
| 10 | <function type="class"> | ||
| 11 | <arg name="class.name">org.wiztools.osworkflow.util.SendXMPPMessage</arg> | ||
| 12 | <arg name="server">localhost.localdomain</arg> | ||
| 13 | <arg name="port">5222</arg> | ||
| 14 | <arg name="to">demo@localhost.localdomain</arg> | ||
| 15 | <arg name="message">Hello!</arg> | ||
| 16 | <arg name="username">admin</arg> | ||
| 17 | <arg name="password">admin</arg> | ||
| 18 | </function> | ||
| 19 | |||
| 20 | * Source Code | ||
| 21 | |||
| 22 | http://wiztools.googlecode.com/ | ||
| 23 | |||
| 24 | * Build | ||
| 25 | |||
| 26 | Building this application requires Ant (http://ant.apache.org/). | ||
| 27 | The folder structure we have followed for this project is | ||
| 28 | based on Maven 2 (http://maven.apache.org/). | ||
| 29 | |||
| 30 | To build the application: | ||
| 31 | |||
| 32 | $ ant | ||
| 33 | |||
| 34 | * Test | ||
| 35 | |||
| 36 | To execute UnitTest: | ||
| 37 | |||
| 38 | $ ant test | ||
| 39 | |||
| 40 | Before running test, make sure you are running an XMPP server | ||
| 41 | in localhost. It should also have two users: | ||
| 42 | |||
| 43 | 1. admin (password `admin') | ||
| 44 | 2. demo (password `demo') | ||
| 45 | |||
| 46 | Both these users should be buddies. If you don't have these | ||
| 47 | test users, you may edit `src/test/resources/test.xml' file | ||
| 48 | to configure the users of your system. | ||
| 49 | |||
| 50 | Have the `demo' user logged in so that message sent from | ||
| 51 | osworkflow is received by him. | ||
| 52 | |||
| 53 | * License | ||
| 54 | |||
| 55 | This code is distributed under Apache 2.0 license: | ||
| 56 | |||
| 57 | http://www.apache.org/licenses/LICENSE-2.0 | ||
| 58 | |||