org.backsource.xindice.server
Class XindiceService

java.lang.Object
  extended byjavax.management.NotificationBroadcasterSupport
      extended byorg.jboss.system.ServiceMBeanSupport
          extended byorg.backsource.jmx.ServiceMBeanSupport
              extended byorg.backsource.xindice.server.XindiceService
All Implemented Interfaces:
javax.management.MBeanRegistration, javax.management.NotificationBroadcaster, org.jboss.system.Service, org.backsource.jmx.ServiceMBean, org.jboss.system.ServiceMBean, org.backsource.xindice.server.XindiceServiceMBean

public class XindiceService
extends org.backsource.jmx.ServiceMBeanSupport
implements org.backsource.xindice.server.XindiceServiceMBean

An embedded Xindice server to be run i JBoss.

The server will use jboss.server.data.dir and append xindice to set up xindice.home if the property XindiceHome is not set in the MBean. This is the prefered method to do it, but is dependant on a correct setup of a jboss-service or manuall setup of the db/xindice directory in the JBoss server i use. by setting XindiceHome it is possible to use an external home, for example a directopry where you have installed a stand alone version of Xindice.

openorb.home will be set to the embedded home: db/xindice/openorb, but it seems as if it works agains the db/xindice dir instead. This needs to be further checked.

Installation To be able to redeploy this service it seems as if the openorb.jar must be placed in the central lib, for example server/default/lib.

Version:
$Revision: 1.1.1.1 $
Author:

Field Summary
static javax.management.ObjectName OBJECT_NAME
           
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport
log, server, serviceName
 
Fields inherited from interface org.jboss.system.ServiceMBean
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, STARTED, STARTING, states, STOPPED, STOPPING
 
Constructor Summary
XindiceService()
           
 
Method Summary
protected  javax.management.ObjectName getObjectName(javax.management.MBeanServer server, javax.management.ObjectName name)
           
 void setXindiceDb(java.lang.String xindiceDb)
          Dont use this, only for testing!
 void setXindiceHome(java.lang.String xindiceHome)
           
protected  void startService()
           
protected  void stopService()
           
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getServer, getServiceName, getState, getStateString, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class javax.management.NotificationBroadcasterSupport
addNotificationListener, getNotificationInfo, removeNotificationListener, sendNotification
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.jboss.system.ServiceMBean
getName, getState, getStateString
 
Methods inherited from interface org.jboss.system.Service
create, destroy, start, stop
 

Field Detail

OBJECT_NAME

public static final javax.management.ObjectName OBJECT_NAME
Constructor Detail

XindiceService

public XindiceService()
Method Detail

getObjectName

protected javax.management.ObjectName getObjectName(javax.management.MBeanServer server,
                                                    javax.management.ObjectName name)
                                             throws javax.management.MalformedObjectNameException
Throws:
javax.management.MalformedObjectNameException

setXindiceHome

public void setXindiceHome(java.lang.String xindiceHome)
Specified by:
setXindiceHome in interface org.backsource.xindice.server.XindiceServiceMBean

setXindiceDb

public void setXindiceDb(java.lang.String xindiceDb)
Dont use this, only for testing!

Specified by:
setXindiceDb in interface org.backsource.xindice.server.XindiceServiceMBean

startService

protected void startService()
                     throws java.lang.Exception
Throws:
java.lang.Exception

stopService

protected void stopService()
                    throws java.lang.Exception
Throws:
java.lang.Exception


Copyright © 2003-2004 Backsource. All Rights Reserved.