ActiveMQ¶
Spout for ActiveMQ
            Bases: Spout
__init__(output, state, **kwargs)
¶
  Initialize the ActiveMQ class.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
output | 
          
                StreamingOutput
           | 
          
             An instance of the StreamingOutput class for saving the data.  | 
          required | 
state | 
          
                State
           | 
          
             An instance of the State class for maintaining the state.  | 
          required | 
**kwargs | 
          
             Additional keyword arguments.  | 
          
                {}
           | 
        
Using geniusrise to invoke via command line¶
genius ActiveMQ rise \
    streaming \
        --output_kafka_topic activemq_test \
        --output_kafka_cluster_connection_string localhost:9094 \
    none \
    listen \
        --args host=localhost port=61613 destination=my_queue
Using geniusrise to invoke via YAML file¶
listen(host, port, destination, username=None, password=None)
¶
  📖 Start listening for data from the ActiveMQ server.
Parameters:
| Name | Type | Description | Default | 
|---|---|---|---|
host | 
          
                str
           | 
          
             The ActiveMQ server host.  | 
          required | 
port | 
          
                int
           | 
          
             The ActiveMQ server port.  | 
          required | 
destination | 
          
                str
           | 
          
             The ActiveMQ destination (queue or topic).  | 
          required | 
username | 
          
                Optional[str]
           | 
          
             The username for authentication. Defaults to None.  | 
          
                None
           | 
        
password | 
          
                Optional[str]
           | 
          
             The password for authentication. Defaults to None.  | 
          
                None
           | 
        
Raises:
| Type | Description | 
|---|---|
                Exception
           | 
          
             If unable to connect to the ActiveMQ server.  |