JBoss Portlet Bridge 2.0 Beta and GateIn
1 month ago
The 'db' directory can be left empty if you want to add the root entry manually in the code
public class OpenDSService
{
private String serverRoot = "";
public DirectoryEnvironmentConfig getConfig()
{
DirectoryEnvironmentConfig config = new DirectoryEnvironmentConfig();
try
{
// Server root points to the directory with opends configuration
config.setServerRoot(new File(getServerRoot()));
config.setForceDaemonThreads(true);
}
catch (InitializationException e)
{
e.printStackTrace();
}
return config;
}
public void start()
{
if (!EmbeddedUtils.isRunning())
{
try
{
EmbeddedUtils.startServer(getConfig());
}
catch (Exception e)
{
e.printStackTrace();
}
}
}
public void stop()
{
if (EmbeddedUtils.isRunning())
{
EmbeddedUtils.stopServer(this.getClass().getName(), null);
}
}
public String getServerRoot()
{
return serverRoot;
}
public void setServerRoot(String serverRoot)
{
this.serverRoot = serverRoot;
}
}
Probably all of you have a private list of technologies that you want to look more deeply at but don't have much time to do so because of other duties. BPM was one of those on my private list so when Packt Publishing asked me to write a review of their book "Business Process Management with JBoss jBPM" I decided it was the right moment to give it a try. Although a subtitle on the main page states that it is "A Practical Guide for Business Analysts" it turns out a perfect position for anyone who does a first look on the technology.