Difference between revisions of "APEL/SSM2AddingFiles"
< APEL
Jump to navigation
Jump to search
Line 6: | Line 6: | ||
There are two ways of adding messages to SSM2: | There are two ways of adding messages to SSM2: | ||
* Programmatically, using perl or python | |||
* Manually, writing files to the filesystem | |||
== Programmatically == | == Programmatically == | ||
Line 18: | Line 18: | ||
If you are not using perl or python, you can simply write files to the filesystem and SSM2 will send them. However, there are constraints on the filenames: | If you are not using perl or python, you can simply write files to the filesystem and SSM2 will send them. However, there are constraints on the filenames: | ||
* Files must be in the location <code>/var/spool/apel/outgoing/<directory>/<file></code> | |||
* '''<directory> must be 6 hex characters''' | |||
* '''<file> must be 14 hex characters''' |
Revision as of 17:09, 17 January 2013
- Back to APEL/SSM
Adding files to SSM2
In SSM2 we changed to using the EMI Messaging team's 'directory queue' libraries: https://twiki.cern.ch/twiki/bin/view/EMI/MessagingLibraries. This changes how messages are added to SSM2.
There are two ways of adding messages to SSM2:
- Programmatically, using perl or python
- Manually, writing files to the filesystem
Programmatically
You can add messages to SSM2 using the python-dirq
or the perl-Directory-Queue
libraries.
Create a QueueSimple object with path /var/spool/apel/outgoing
and add messages. Follow the above link or email apel-ssm-test@jiscmail.ac.uk for more help.
Manually
If you are not using perl or python, you can simply write files to the filesystem and SSM2 will send them. However, there are constraints on the filenames:
- Files must be in the location
/var/spool/apel/outgoing/<directory>/<file>
- <directory> must be 6 hex characters
- <file> must be 14 hex characters