Stilts 0.1.0-SNAPSHOT

org.projectodd.stilts.conduit
Class ConduitServer<T extends MessageConduitFactory>

java.lang.Object
  extended by org.projectodd.stilts.conduit.ConduitServer<T>

public class ConduitServer<T extends MessageConduitFactory>
extends Object

Adapts basic STOMP server to simpler MessageConduit interface.

A ConduitServer applies JTA semantics and requires a TransactionManager.

Author:
Bob McWhirter

Constructor Summary
ConduitServer()
           
ConduitServer(int port)
          Construct with a port.
 
Method Summary
 T getMessageConduitFactory()
           
 TransactionManager getTransactionManager()
           
 XAMessageConduitFactory getXAMessageConduitFactory()
           
 void setMessageConduitFactory(T messageConduitFactory)
           
 void setTransactionManager(TransactionManager transactionManager)
           
 void start()
           
 void stop()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ConduitServer

public ConduitServer()

ConduitServer

public ConduitServer(int port)
Construct with a port.

Parameters:
port - The listen port to bind to.
Method Detail

setTransactionManager

public void setTransactionManager(TransactionManager transactionManager)

getTransactionManager

public TransactionManager getTransactionManager()

setMessageConduitFactory

public void setMessageConduitFactory(T messageConduitFactory)

getMessageConduitFactory

public T getMessageConduitFactory()

getXAMessageConduitFactory

public XAMessageConduitFactory getXAMessageConduitFactory()

start

public void start()
           throws Exception
Throws:
Exception

stop

public void stop()
          throws Exception
Throws:
Exception

Stilts 0.1.0-SNAPSHOT

Copyright © 2011 JBoss, a division of Red Hat, Inc.. All Rights Reserved.