GreenJab is a very powerful and useful utility that allows your IBM i (System i, iSeries, AS/400) to communicate with Jabber and XMPP servers such as Google Talk (GTalk) and Jabber.org.
GreenJab can be used to communicate between your IBM i and your smartphone, browser, or any device with a chat client installed.
GreenJab works by "listening" for communications to or from a specific ID that you start a job for. That ID can be a GMail (Google) email address for user with Google Talk, or an ID set up with another Jabber/XMPP server such as those at Jabber.org.
The first thing we need to to is start the GreenJab listener job. This is done with the GreenJab command. In this case we created a special ID on Google Talk named greenjabtest@gmail.com:
Start GreenJab Listener (GREENJAB)
Type choices, press Enter.
User ID . . . . . . . . . . . . greenjabtest@gmail.com______
Password . . . . . . . . . . . . ____________________________
Additional Parameters
XMPP Server . . . . . . . . . . 'talk.google.com'
Server Port . . . . . . . . . . 5222 Number
Wait Time . . . . . . . . . . . 5 Number
Ping Time Frequency . . . . . . 600 Number
Timeout . . . . . . . . . . . . 30 Number
Job Timeout . . . . . . . . . . 0 Number
Max Connection Retries . . . . . 0 Number
Connection Retry Wait . . . . . 0 Number
Chat Status . . . . . . . . . . 'Available on GreenJab!'
Chat Resource . . . . . . . . . 'GreenJab'
Job Key . . . . . . . . . . . .
Bind to Local IP . . . . . . . .
Local Port . . . . . . . . . . . Number
Stream File Code Page . . . . . 819 Number
Conversion CCSID . . . . . . . . 819 Number
Google Cloud Print . . . . . . . *NO *YES, *NO
Debug . . . . . . . . . . . . . *NO *YES, *NO
Debug File . . . . . . . . . . .
Once the job successfully starts, you should see any chat client that is set up to communicate with the user id specified change to "active" and if the status value is used, the status should be changed as well:
Once the GreenJab listener job successfully starts, you can now use an application on your IBM i to communicate with the chat client, or even use the chat client to send messages to your IBM i!