org.apache.cocoon.samples.jms
Class JMSTrigger
java.lang.Object
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
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
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
JMSTrigger
public JMSTrigger()
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.