org.apache.jetspeed.services.messaging.jms.activemq
Class MessagingServiceImpl

java.lang.Object
  extended byorg.apache.turbine.services.BaseInitable
      extended byorg.apache.turbine.services.BaseService
          extended byorg.apache.turbine.services.TurbineBaseService
              extended byorg.apache.jetspeed.services.messaging.jms.AbstractJMSMessagingService
                  extended byorg.apache.jetspeed.services.messaging.jms.activemq.MessagingServiceImpl
All Implemented Interfaces:
org.apache.turbine.services.Initable, MessagingService, org.apache.turbine.services.Service

public class MessagingServiceImpl
extends AbstractJMSMessagingService

Version:
$Id: MessagingServiceImpl.java,v 1.1 2004/07/23 00:24:01 jford Exp $
Author:
Jeremy Ford

Field Summary
protected static java.lang.String CONFIG_PWD
           
protected static java.lang.String CONFIG_USER
           
protected static java.lang.String DEFAULT_FACTORY
           
protected static java.lang.String DEFAULT_PWD
           
protected static java.lang.String DEFAULT_USER
           
 
Fields inherited from class org.apache.jetspeed.services.messaging.jms.AbstractJMSMessagingService
ackMode, AUTO_ACKNOWLEDGE, CLIENT_ACKNOWLEDGE, CONFIG_ACK_MODE, CONFIG_CONNECTION_FACTORY, CONFIG_DELIVERY_MODE, CONFIG_DURABLE, CONFIG_HOST, CONFIG_NAME, CONFIG_NOLOCAL, CONFIG_PORT, CONFIG_PRIORITY, CONFIG_SCHEME, CONFIG_TIME_TO_LIVE, CONFIG_TOPIC, CONFIG_TRANSACTED, CONFIG_URL, connection, connectionFactory, consumers, DEFAULT_ACK_MODE, DEFAULT_CONNECTION_FACTORY, DEFAULT_DELIVERY_MODE, DEFAULT_DURABLE, DEFAULT_HOST, DEFAULT_NAME, DEFAULT_NOLOCAL, DEFAULT_PORT, DEFAULT_PRIORITY, DEFAULT_SCHEME, DEFAULT_TIME_TO_LIVE, DEFAULT_TOPIC, DEFAULT_TRANSACTED, DEFAULT_URL, deliveryMode, destinations, DUPS_OK_ACKNOWLEDGE, durable, host, initialContextFactory, name, nolocal, NON_PERSISTENT, PERSISTENT, port, priority, producers, scheme, session, timeToLive, transacted, url, use_topic
 
Fields inherited from class org.apache.turbine.services.BaseService
configuration, properties, serviceBroker
 
Fields inherited from class org.apache.turbine.services.BaseInitable
initableBroker, isInitialized
 
Fields inherited from interface org.apache.jetspeed.services.messaging.MessagingService
BYTE_MESSAGE, GROUP_UPDATE_SUBJECT, MAP_MESSAGE, MESSAGE, OBJECT_MESSAGE, PSML_UPDATE_SUBJECT, REGISTRY_UPDATE_SUBJECT, ROLE_UPDATE_SUBJECT, SECURITY_CACHE_UPDATE_SUBJECT, SECURITY_UPDATE_SUBJECT, SERVICE_NAME, STREAM_MESSAGE, TEXT_MESSAGE, USER_UPDATE_SUBJECT
 
Fields inherited from interface org.apache.turbine.services.Service
SERVICE_NAME
 
Constructor Summary
MessagingServiceImpl()
           
 
Method Summary
protected  void createConnection()
          Create the connection the the JMS Server
protected  void createSession()
          Create the JMS Session
protected  void initJMSConfiguration()
          Initialize the JMS Configuration
 
Methods inherited from class org.apache.jetspeed.services.messaging.jms.AbstractJMSMessagingService
addMessageListener, createConsumer, createMessage, getContext, getDestination, getProducer, getProviderURL, init, printAckMode, printDeliveryMode, removeMessageListener, sendMessage, shutdown
 
Methods inherited from class org.apache.turbine.services.TurbineBaseService
init, init, init
 
Methods inherited from class org.apache.turbine.services.BaseService
getConfiguration, getName, getProperties, getServiceBroker, setName, setServiceBroker
 
Methods inherited from class org.apache.turbine.services.BaseInitable
getInit, getInitableBroker, setInit, setInitableBroker
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.apache.turbine.services.Initable
getInit, setInitableBroker
 

Field Detail

DEFAULT_FACTORY

protected static final java.lang.String DEFAULT_FACTORY
See Also:
Constant Field Values

CONFIG_USER

protected static final java.lang.String CONFIG_USER
See Also:
Constant Field Values

CONFIG_PWD

protected static final java.lang.String CONFIG_PWD
See Also:
Constant Field Values

DEFAULT_USER

protected static final java.lang.String DEFAULT_USER
See Also:
Constant Field Values

DEFAULT_PWD

protected static final java.lang.String DEFAULT_PWD
See Also:
Constant Field Values
Constructor Detail

MessagingServiceImpl

public MessagingServiceImpl()
Method Detail

initJMSConfiguration

protected void initJMSConfiguration()
Description copied from class: AbstractJMSMessagingService
Initialize the JMS Configuration

Overrides:
initJMSConfiguration in class AbstractJMSMessagingService

createConnection

protected void createConnection()
                         throws javax.jms.JMSException
Description copied from class: AbstractJMSMessagingService
Create the connection the the JMS Server

Specified by:
createConnection in class AbstractJMSMessagingService
Throws:
javax.jms.JMSException

createSession

protected void createSession()
                      throws javax.jms.JMSException
Description copied from class: AbstractJMSMessagingService
Create the JMS Session

Overrides:
createSession in class AbstractJMSMessagingService
Throws:
javax.jms.JMSException


Copyright © 2000-2005 Apache Software Foundation. All Rights Reserved.