org.apache.cocoon.samples.jms
Class JMSTrigger

java.lang.Object
  extended by org.apache.cocoon.samples.jms.JMSTrigger
All Implemented Interfaces:
org.hsqldb.Trigger

public class JMSTrigger
extends Object
implements org.hsqldb.Trigger

Example Trigger for HSQLDB doing cache invalidation through the eventcache block and JMS messages.

Version:
CVS $Id: JMSTrigger.html 1304258 2012-03-23 10:09:27Z ilgrosso $
Author:
haul

Field Summary
protected  TopicConnection connection
           
protected  Context context
           
protected  String contextFactoryName
           
protected  int deliveryMode
           
protected  String host
           
protected  String jndiname
           
protected  String port
           
protected  int priority
           
protected  TopicPublisher publisher
           
protected  String scheme
           
protected  TopicSession session
           
protected  long timeToLive
           
protected  Topic topic
           
protected  TopicConnectionFactory topicConnectionFactory
           
protected  String topicFactoryName
           
protected  String topicName
           
 
Fields inherited from interface org.hsqldb.Trigger
DELETE_AFTER, DELETE_AFTER_ROW, DELETE_BEFORE, DELETE_BEFORE_ROW, INSERT_AFTER, INSERT_AFTER_ROW, INSERT_BEFORE, INSERT_BEFORE_ROW, UPDATE_AFTER, UPDATE_AFTER_ROW, UPDATE_BEFORE, UPDATE_BEFORE_ROW
 
Constructor Summary
JMSTrigger()
           
 
Method Summary
 void fire(int arg0, String arg1, String arg2, Object[] arg3, Object[] arg4)
           
 void fire(String trigName, String tabName, Object[] row)
           
 Context getContext()
          Get initial context.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

contextFactoryName

protected String contextFactoryName

scheme

protected String scheme

host

protected String host

port

protected String port

jndiname

protected String jndiname

topicFactoryName

protected String topicFactoryName

topicName

protected String topicName

deliveryMode

protected int deliveryMode

priority

protected int priority

timeToLive

protected long timeToLive

topic

protected Topic topic

publisher

protected TopicPublisher publisher

session

protected TopicSession session

connection

protected TopicConnection connection

context

protected Context context

topicConnectionFactory

protected TopicConnectionFactory topicConnectionFactory
Constructor Detail

JMSTrigger

public JMSTrigger()
Method Detail

getContext

public Context getContext()
                   throws NamingException
Get initial context.

Returns:
initial context
Throws:
NamingException

fire

public void fire(String trigName,
                 String tabName,
                 Object[] row)

fire

public void fire(int arg0,
                 String arg1,
                 String arg2,
                 Object[] arg3,
                 Object[] arg4)
Specified by:
fire in interface org.hsqldb.Trigger


Copyright © 1999-2010 The Apache Software Foundation. All Rights Reserved.