Universal Messaging 10.3 | Developer Guide | Enterprise APIs | Enterprise Developer's Guide for Java | Code Examples | Channel / Queue / Realm Management
 
Channel / Queue / Realm Management
 
Java Client: Creating a Channel
Java Client: Deleting a Channel
Java Client: Creating a Queue
Java Client: Deleting a Queue
Java Client: Create a Channel Join
Java Client: Delete a Channel Join
Java Client: Purge events from a channel
Java Client: Find the event id of the last event
Java Client: Add a realm to another realm
Java Client: Multiplex a Session
Java Client: Creating a Channel
This example demonstrates how to create a Universal Messaging channel programmatically.
Usage

nmakechan <channel name> [time to live] [capacity] [type] [cluster wide]
[start eid] [use jms engine] [honor capacity when full]
<Required Arguments>

<channel name> - Channel name parameter for the channel to be created.

[Optional Arguments]

[time to live] - The Time To Live parameter for the new channel (default: 0)
[capacity] - The Capacity parameter for the new channel (default: 0)
[type] - The type parameter for the new channel (default: S)
R - For a reliable (stored in memory) channel with persistent eids
P - For a persistent (stored on disk) channel
S - For a simple (stored in memory) channel with non-persistent eids
T - For a transient (no server based storage)
M - For a Mixed (allows both memory and persistent events) channel
O - For an Off Heap channel
G - For a Paged channel (Uses a memory mapped file for storage)

[cluster wide] - Whether the channel is cluster wide. Will only work if the
realm is part of a cluster.
[start eid] - The initial start event id for the new channel (default: 0).
[use jms engine] - Sets whether to use the JMS style fanout engine.
[honor capacity when full] - Whether the channel / queue capacity setting will
prevent publishing of any more data once full.


Note: -? provides help on environment variables
Application Source Code
Click here for a code example