Author |
Message
|
sr2 |
Posted: Fri Jun 09, 2006 1:15 am Post subject: MQ Triggering and Lotus Notes |
|
|
Newbie
Joined: 09 Jun 2006 Posts: 5
|
Hi all
I'm new to these forums so apologise if this request is in the wrong forum.
Basically I have been tasked to find out how I can trigger a Lotus Notes agent from an MQ Server. The idea is that when a particular queue reaches a defined depth it should call a Lotus Notes agent to fire of an email to support. I'm ok with Lotus Notes but know little about MQ. Basically I've been dumped in it and need to find a solution by the end of the day as my company wants to implement something by Monday. Any help would be greatly appreacited. Obviously I will continue to search the internet myself.
- Lotus Notes version 5
- MQ version 5.3.0 on UNIX/AIX
Thanks in advance for all the help.
Regards
SR2 |
|
Back to top |
|
 |
wschutz |
Posted: Fri Jun 09, 2006 1:28 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
|
Back to top |
|
 |
sr2 |
Posted: Fri Jun 09, 2006 1:39 am Post subject: |
|
|
Newbie
Joined: 09 Jun 2006 Posts: 5
|
Thanks anyway Wayne.
I found the MA7K and got all excited then realised that it was for Windows
Cheers |
|
Back to top |
|
 |
elvis_gn |
Posted: Fri Jun 09, 2006 1:47 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi sr2,
Ya perhaps you are right...but I guess he put the basic idea through to you also with that...
Run a Java/C triggered program on the depth of the queue and use the sendmail APIs to send a mail.
Regards. |
|
Back to top |
|
 |
sr2 |
Posted: Fri Jun 09, 2006 2:24 am Post subject: |
|
|
Newbie
Joined: 09 Jun 2006 Posts: 5
|
Thanks for the reply elvis_gn
Unfortunately I am not a java/c developer. Is there a simpler way? Would it be possible for you or anyone else to give me a quick overview of how to setup the MQ side and how I get the connection to Lotus Notes?
I apologise if my question is vague or stupid, but like I said I am a newbie to MQ.
I will quickly go over my understanding which may be totally wrong.
I can setup a local queue on MQ with a trigger on a defined depth. The trigger can call an INITQ which has a process defined.
In the process I can define a program to execute.
This is very high level...i need to fill in the details.
One of the things I would like to know is if I can call the lotus executable to kick off an agent?
Thanks again
SR2 |
|
Back to top |
|
 |
wschutz |
Posted: Fri Jun 09, 2006 2:31 am Post subject: |
|
|
 Jedi Knight
Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired)
|
You need to find a program that can run a notes agent from outside of notes. its fairly easy to use the NotesAPI library to do this, and in fact MA7K calls the notesAPI library to start an agent (in windows, of course). Gotta run for a train now, but perhaps a goodle search? _________________ -wayne |
|
Back to top |
|
 |
zpat |
Posted: Fri Jun 09, 2006 2:37 am Post subject: |
|
|
 Jedi Council
Joined: 19 May 2001 Posts: 5866 Location: UK
|
It might be easier to install a Notes/Domino server on a Windows platform (with MQ client installed) and use MA7K to run a Lotuscript agent.
We use MQ/Notes extensively in this way and we read the actual MQ message using the MQLSX.
You might be able to do this with a Notes client install (and MQ client) on Windows and MA7K.
However this degree of Notes/MQ integration is not necessary for simple depth alerting.
Just trigger a program (or even a script) that sends an email - there are many examples of free programs/scripts that send Email by SMTP/POP or IMAP, both of which are supported by Domino servers.
This program does not have to run on the actual Domino server or MQ server (but it could for convenience do so).
Last edited by zpat on Fri Jun 09, 2006 6:57 am; edited 1 time in total |
|
Back to top |
|
 |
elvis_gn |
Posted: Fri Jun 09, 2006 2:38 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi sr2,
When u say that u want to open a Lotus Notes agent, i get a feeling that u need to send a mail to someone...do u want the user to type a custom mail or a default text to be sent to someone on the queue depth being reached....i ask this as, if you simply want some text sent, then u don't need the Lotus notes, u can forget that a shoot a mail to whichever mail id u want and can connect to(mail server i mean).
Ur understanding of trigerring seems to be ok, and u'll find the sample send mail code on google.....a mix and merge should work for you.
Regards. |
|
Back to top |
|
 |
sr2 |
Posted: Fri Jun 09, 2006 3:07 am Post subject: |
|
|
Newbie
Joined: 09 Jun 2006 Posts: 5
|
Thanks for all your replies.
For now I suppose we can get away with just sending out an email rather than triggering a Lotus Notes agent (we will probably need this in future but i will look into that we need to).
So basically my understanding from your replies is this. I want an email sent to a group of people (notes group) when a queue hits a defnied depth. So I can setup my queues as above and trigger a program to send an email.
The next question is how do I set this all up on AIX? What programs can I use (my understanding on IAX is very limited)? Also do I have to have an INITQ? Can't I just call a process?
As you can tell from above I have been handed this task and have very little knowledge of the technologies involved
Thanks again
SR2 |
|
Back to top |
|
 |
elvis_gn |
Posted: Fri Jun 09, 2006 3:36 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi sr2,
Quote: |
The next question is how do I set this all up on AIX? What programs can I use (my understanding on IAX is very limited)? |
Any simple Java class can be placed in some directory...and the path can be defined in the MQ processes...Ofcourse, u will have to make a *.bat or *.xe or something to execute the class.
Quote: |
Also do I have to have an INITQ? Can't I just call a process? |
No, u need the intiation queue, the trigger monitor will run on the initiation queue and not on the trigger queue...the initiation queue will get a message which will tell the monitor which process to call...
Start with your java code...u will get it on google...use it...setting up triggering is not too difficult.
Regards. |
|
Back to top |
|
 |
jefflowrey |
Posted: Sat Jun 10, 2006 5:15 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
elvis_gn wrote: |
Ofcourse, u will have to make a *.bat or *.xe or something to execute the class. |
Not on AIX, or any unix, or any platform other than Windows, really.
".sh", mostly. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
elvis_gn |
Posted: Sat Jun 10, 2006 9:29 pm Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi,
jefflowrey wrote: |
elvis_gn wrote: |
Ofcourse, u will have to make a *.bat or *.xe or something to execute the class. |
Not on AIX, or any unix, or any platform other than Windows, really.
".sh", mostly. |
Aaahhh !! forgot that... not much of a Unix guy will remember this one.
Regards. |
|
Back to top |
|
 |
sandiksk |
Posted: Mon Jun 12, 2006 6:14 am Post subject: |
|
|
Centurion
Joined: 08 Jun 2005 Posts: 133
|
|
Back to top |
|
 |
|