org.jboss.jaxr.juddi
Class JUDDIService

java.lang.Object
  extended byorg.jboss.mx.util.JBossNotificationBroadcasterSupport (src) 
      extended byorg.jboss.system.ServiceMBeanSupport (src) 
          extended byorg.jboss.jaxr.juddi.JUDDIService
All Implemented Interfaces:
JUDDIServiceMBean (src) , MBeanRegistration (src) , NotificationBroadcaster (src) , NotificationEmitter (src) , Service (src) , ServiceMBean (src)

public class JUDDIService
extends ServiceMBeanSupport (src)
implements JUDDIServiceMBean (src)

A JBoss MBean for the JUDDI Service MBean for the JUDDI open source project integrated as part of the JAXR requirements for J2EE 1.4 compliance

Since:
Nov 8, 2004

Field Summary
protected  java.lang.String bindJaxr
           
protected  boolean createOnStart
           
protected  DataSource (src) datasource
           
protected  java.lang.String datasourceurl
           
protected  boolean dropDB
           
protected  boolean dropOnStart
           
protected  boolean dropOnStop
           
protected  boolean loadNAICS
           
protected  boolean loadUNSPSC
           
protected  java.lang.String registryOperator
           
protected  boolean shouldBindJaxr
           
 
Fields inherited from class org.jboss.system.ServiceMBeanSupport (src)
log, server, SERVICE_CONTROLLER_SIG, serviceName
 
Fields inherited from interface org.jboss.jaxr.juddi.JUDDIServiceMBean (src)
OBJECT_NAME
 
Fields inherited from interface org.jboss.system.ServiceMBean (src)
CREATE_EVENT, CREATED, DESTROY_EVENT, DESTROYED, FAILED, REGISTERED, START_EVENT, STARTED, STARTING, states, STOP_EVENT, STOPPED, STOPPING, UNREGISTERED
 
Constructor Summary
JUDDIService()
           
 
Method Summary
 java.lang.String getBindJaxr()
          gets the JAXR ConnectionFactory.
protected  java.sql.Connection getConnection()
           
 java.lang.String getDataSource()
           
 boolean getDropDB()
          gets the JAXR ConnectionFactory.
 java.lang.String getRegistryOperator()
           
 boolean getShouldBindJaxr()
          gets the JAXR ConnectionFactory.
 boolean isCreateOnStart()
           
 boolean isDropOnStart()
           
 boolean isDropOnStop()
           
protected  void runCreate()
           
protected  void runDrop()
           
protected  void runScript(java.io.InputStream stream)
           
 void setBindJaxr(java.lang.String str)
          Sets the JAXR ConnectionFactory.
 void setCreateOnStart(boolean createOnStart)
          Sets the createOnStart.
 void setDataSourceUrl(java.lang.String ds)
          Sets the Datasource Url.
 void setDropDB(boolean b)
          Sets the JAXR ConnectionFactory.
 void setDropOnStart(boolean dropOnStart)
          Sets the dropOnStart.
 void setDropOnStop(boolean dropOnStop)
          Sets the dropOnStop.
 void setRegistryOperator(java.lang.String ro)
          Sets the RegistryOperator.
 void setShouldBindJaxr(boolean str)
          Sets the JAXR ConnectionFactory.
 void startService()
          starts the jUDDI service
 void stopService()
          stop the service
 
Methods inherited from class org.jboss.system.ServiceMBeanSupport (src)
create, createService, destroy, destroyService, getLog, getName, getNextNotificationSequenceNumber, getObjectName, getServer, getServiceName, getState, getStateString, jbossInternalCreate, jbossInternalDescription, jbossInternalDestroy, jbossInternalLifecycle, jbossInternalStart, jbossInternalStop, postDeregister, postRegister, preDeregister, preRegister, start, stop
 
Methods inherited from class org.jboss.mx.util.JBossNotificationBroadcasterSupport (src)
addNotificationListener, getNotificationInfo, handleNotification, removeNotificationListener, 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 (src)
getName, getState, getStateString, jbossInternalLifecycle
 
Methods inherited from interface org.jboss.system.Service (src)
create, destroy, start, stop
 

Field Detail

dropOnStart

protected boolean dropOnStart

createOnStart

protected boolean createOnStart

dropOnStop

protected boolean dropOnStop

loadNAICS

protected boolean loadNAICS

loadUNSPSC

protected boolean loadUNSPSC

datasource

protected DataSource (src)  datasource

datasourceurl

protected java.lang.String datasourceurl

registryOperator

protected java.lang.String registryOperator

bindJaxr

protected java.lang.String bindJaxr

shouldBindJaxr

protected boolean shouldBindJaxr

dropDB

protected boolean dropDB
Constructor Detail

JUDDIService

public JUDDIService()
Method Detail

getConnection

protected java.sql.Connection getConnection()
                                     throws java.sql.SQLException,
                                            javax.naming.NamingException
Throws:
java.sql.SQLException
javax.naming.NamingException

runDrop

protected void runDrop()
                throws java.sql.SQLException,
                       java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

runCreate

protected void runCreate()
                  throws java.sql.SQLException,
                         java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

runScript

protected void runScript(java.io.InputStream stream)
                  throws java.sql.SQLException,
                         java.io.IOException
Throws:
java.sql.SQLException
java.io.IOException

startService

public void startService()
                  throws java.lang.Exception
starts the jUDDI service

Overrides:
startService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception

stopService

public void stopService()
                 throws java.lang.Exception
stop the service

Overrides:
stopService in class ServiceMBeanSupport (src)
Throws:
java.lang.Exception

isDropOnStart

public boolean isDropOnStart()
Specified by:
isDropOnStart in interface JUDDIServiceMBean (src)
Returns:
boolean

setDropOnStart

public void setDropOnStart(boolean dropOnStart)
Sets the dropOnStart.

Specified by:
setDropOnStart in interface JUDDIServiceMBean (src)
Parameters:
dropOnStart - The dropOnStart to set

isDropOnStop

public boolean isDropOnStop()
Specified by:
isDropOnStop in interface JUDDIServiceMBean (src)
Returns:
boolean

setDropOnStop

public void setDropOnStop(boolean dropOnStop)
Sets the dropOnStop.

Specified by:
setDropOnStop in interface JUDDIServiceMBean (src)
Parameters:
dropOnStop - The dropOnStop to set

isCreateOnStart

public boolean isCreateOnStart()
Specified by:
isCreateOnStart in interface JUDDIServiceMBean (src)
Returns:
boolean

setCreateOnStart

public void setCreateOnStart(boolean createOnStart)
Sets the createOnStart.

Specified by:
setCreateOnStart in interface JUDDIServiceMBean (src)
Parameters:
createOnStart - The createOnStart to set

getDataSource

public java.lang.String getDataSource()
Specified by:
getDataSource in interface JUDDIServiceMBean (src)
Returns:
String

setDataSourceUrl

public void setDataSourceUrl(java.lang.String ds)
Sets the Datasource Url.

Specified by:
setDataSourceUrl in interface JUDDIServiceMBean (src)
Parameters:
ds - The datasourceurl to set

getRegistryOperator

public java.lang.String getRegistryOperator()
Specified by:
getRegistryOperator in interface JUDDIServiceMBean (src)
Returns:
String

setRegistryOperator

public void setRegistryOperator(java.lang.String ro)
Sets the RegistryOperator.

Specified by:
setRegistryOperator in interface JUDDIServiceMBean (src)
Parameters:
ro - The datasourceurl to set

getBindJaxr

public java.lang.String getBindJaxr()
gets the JAXR ConnectionFactory.

Specified by:
getBindJaxr in interface JUDDIServiceMBean (src)

setBindJaxr

public void setBindJaxr(java.lang.String str)
Sets the JAXR ConnectionFactory.

Specified by:
setBindJaxr in interface JUDDIServiceMBean (src)
Parameters:
str - The context to bind the Jaxr factory to set

getShouldBindJaxr

public boolean getShouldBindJaxr()
gets the JAXR ConnectionFactory.

Specified by:
getShouldBindJaxr in interface JUDDIServiceMBean (src)

setShouldBindJaxr

public void setShouldBindJaxr(boolean str)
Sets the JAXR ConnectionFactory.

Specified by:
setShouldBindJaxr in interface JUDDIServiceMBean (src)
Parameters:
str - Should a Jaxr Connection Factory bound

getDropDB

public boolean getDropDB()
gets the JAXR ConnectionFactory.

Specified by:
getDropDB in interface JUDDIServiceMBean (src)

setDropDB

public void setDropDB(boolean b)
Sets the JAXR ConnectionFactory.

Specified by:
setDropDB in interface JUDDIServiceMBean (src)
Parameters:
b - Should a Jaxr Connection Factory bound