|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xmlBlaster.j2ee.jmx.XmlBlasterService
public class XmlBlasterService
XmlBlaster for embedded use in a JMX server.
You may use this MBean to start one or more XmlBlaster instances in a JMX container. It has, however, only been tested with the JBoss 3.0 server. To start it in JBoss copy the xmlBlaster.sar archive into deploy. If you need to change the settings either edit the enbedded xmlBlaster.properties file or change the name of the property file in META-INF/jboss-service.xml and make it availabl1e in the XmlBlaster search path or embed it in the sar.
To get better control ower the XmlBlaster setup process, the xmlBlaster.jar that's embedded in the sar has had its xmlBlaster.properties and xmlBlasterPlugins.xml files removed. It's recomended to do this also in any xmlBlaster.jar that is placed in the global classpath of JBoss, otherwise it might screw up client.
.You need to copy the file concurrent.jar from xmlBlaster/lib to the system lib directory of JBoss, overwriting the older version distributed with JBoss.
When using the RMIDriver JBoss must be run with a security policy file specified, eg, sh run.sh -Djava.security.policy=../server/default/conf/server.policy.
It is possible to use local client (in vm) clients by specifying a jndiName where a @link { org.xmlBlaster.j2ee.util.GlobalLookup} will be bound. If a client in the same VM looks this object upp through jndi, it will have access to the server engine.Global, and it is therefore possible to use the in vm client protocol.
Field Summary | |
---|---|
private java.util.Properties |
args
|
private EmbeddedXmlBlaster |
blaster
|
private Global |
glob
|
private GlobalUtil |
globalUtil
|
private java.lang.String |
jndiName
|
private static java.util.logging.Logger |
log
|
private static java.lang.String |
ME
|
private java.lang.String |
propFile
|
Constructor Summary | |
---|---|
XmlBlasterService()
|
Method Summary | |
---|---|
void |
bind(javax.naming.Context ctx,
java.lang.String name,
java.lang.Object val)
|
private void |
bind(ServerScope engineGlobal)
Bind a GlobalLookup into jndi. |
java.lang.String |
dumpProperties()
|
java.lang.String |
getJNDIName()
|
java.lang.String |
getPort()
|
java.lang.String |
getPropertyFileName()
|
private void |
loadJacorbProperties()
Jacorb is not capable of finding its jacorb.properties in the context classpath (actually it uses the system classloader. |
void |
setJNDIName(java.lang.String jndiName)
Set a JNDI name where a GlobalUtil will be bound. |
void |
setPort(java.lang.String port)
Set the bootstrap port the instance should run at. |
void |
setPropertyFileName(java.lang.String fileName)
Set the name of a propertyfile to read settings from. |
void |
start()
Start the embedded XmlBlaster. |
void |
stop()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private static final java.lang.String ME
private EmbeddedXmlBlaster blaster
private Global glob
private java.lang.String propFile
private static java.util.logging.Logger log
private java.lang.String jndiName
private java.util.Properties args
private GlobalUtil globalUtil
Constructor Detail |
---|
public XmlBlasterService()
Method Detail |
---|
public void setPropertyFileName(java.lang.String fileName)
if this option is set, all properties specifyed in it will overwrite any properties sett on this MBean, since the file will be loaded last.
The context classloader will be searched first, then normal XmlBlaster search algoritm will be used.
setPropertyFileName
in interface XmlBlasterServiceMBean
public java.lang.String getPropertyFileName()
getPropertyFileName
in interface XmlBlasterServiceMBean
public void setPort(java.lang.String port)
setPort
in interface XmlBlasterServiceMBean
port
- Default bootstrapPort is 3412public java.lang.String getPort()
getPort
in interface XmlBlasterServiceMBean
public void setJNDIName(java.lang.String jndiName)
setJNDIName
in interface XmlBlasterServiceMBean
public java.lang.String getJNDIName()
getJNDIName
in interface XmlBlasterServiceMBean
public void start() throws java.lang.Exception
start
in interface XmlBlasterServiceMBean
java.lang.Exception
public void stop() throws java.lang.Exception
stop
in interface XmlBlasterServiceMBean
java.lang.Exception
public java.lang.String dumpProperties()
dumpProperties
in interface XmlBlasterServiceMBean
private void bind(ServerScope engineGlobal) throws java.lang.Exception
java.lang.Exception
private void loadJacorbProperties() throws java.lang.Exception
java.lang.Exception
public void bind(javax.naming.Context ctx, java.lang.String name, java.lang.Object val) throws javax.naming.NamingException
javax.naming.NamingException
|
xmlBlaster 2.2.0 API | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |