Skip to content

Plugin for creation of JMS destinations and consumption of JMS messages through configuration and scripts.

License

Notifications You must be signed in to change notification settings

the-fascinator-contrib/plugin-messaging-scripting

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

plugin-messaging-scripting

Enables ReDBox / Mint to create arbitrary message queues or topics and consume the incoming messages by executing scripts.

Add the following sample config block as an entry in the "messaging.threads" array, replacing the values where necessary:

{
    "id": "messagingScripts",
    "description": "Allows customisable message queues based on 'destinations' configuration below.",
    "priority": "7",
    "config": {
        "name": "messagingScripts",
        "destinations": [
            {
                "name": "testQueue",
                "type": "queue",
                "scriptPath": "home/scripts/messaging/test.groovy",
                "scriptEngine":"groovy",
                "scriptConfig": {
                    "arbitraryConfigEntry": "is this"
                }
            }
        ]
    }
} 

The following objects are added as local variables to the script:

"message" - the message as a String
"indexer" - the indexer plugin
"storage" - active storage plugin
"messaging" - See Fascinator's MessagingServices.java
"config" - Messaging Script local config, ie. the entry in the 'destinations' array above.
"globalConfig" - Global Configuration
"log" - the parent log file

About

Plugin for creation of JMS destinations and consumption of JMS messages through configuration and scripts.

Resources

License

Stars

Watchers

Forks

Packages

No packages published