|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.openmdx.kernel.application.container.lightweight.LightweightContainer
public class LightweightContainer
Lightweight Container
Note:
DeploymentProperties.CONNECTOR_URLS,
DeploymentProperties.APPLICATION_URLS| Method Summary | |
|---|---|
Report[] |
deployApplication(URL applicationURL)
Deploy an enterprise application without application clients or web applications. |
Runnable |
deployApplicationClient(String applicationURL,
Map applicationClientEnvironment,
String[] applicationClientArguments)
Deploy an enterprise application including one application client but no web application. |
Report |
deployConnector(URL connectorURL)
Deploy a connector |
static Subprocess |
fork()
Fork a lightweight container. |
static Subprocess |
fork(String jre,
String classpath,
Map properties,
OutputStream outputStream,
OutputStream exceptionStream)
Fork a lightweight container. |
Context |
getContainerContext()
Get the Container Context |
static LightweightContainer |
getInstance()
Gets the Lightweight Container Singleton |
static boolean |
hasInstance()
Tests whether there is a Lightweight Container Singleton. |
static void |
main(String[] arguments)
The lightweight container's main method |
protected static void |
server()
The LightweightContainer is going to listen to RMI requests. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Method Detail |
|---|
public static LightweightContainer getInstance()
Warning: This method must not be called in an either partially or fully compliant J2EE container due to the fact that the lightweight container installs its own InitialContextFactoryBuilder.
InitialContextFactoryBuilderpublic static boolean hasInstance()
public Report[] deployApplication(URL applicationURL)
throws Exception
applicationURL - an enterprise application archive or directory to be deployed
Exception
public Runnable deployApplicationClient(String applicationURL,
Map applicationClientEnvironment,
String[] applicationClientArguments)
throws Exception
applicationURL - an enterprise application archive or directory to be deployedapplicationClientEnvironment - used to override the application clients environment entries
Exception
public Report deployConnector(URL connectorURL)
throws Exception
connectorURL - a resource adapter archive or directory to be deployed
Exceptionpublic Context getContainerContext()
public String toString()
toString in class Objectprotected static void server()
public static Subprocess fork()
throws IOException,
InterruptedException
IOException
InterruptedException
public static Subprocess fork(String jre,
String classpath,
Map properties,
OutputStream outputStream,
OutputStream exceptionStream)
throws IOException,
InterruptedException
jre - the JRE directory.
Optional, defaults to the "java.home" system property.classpath - the class-path.
Optional, defaults to the "java.class.path" system property.properties - the system properties to be set.
Optional, defaults to "org.openmdx.rmi.naming.service" and
"org.openmdx.rmi.registry.port" retrieved from
Contexts.outputStream - The stream obtains data piped from the standard output stream
of the forked Subprocess;
or null to discard the data.exceptionStream - The stream obtains data piped from the error output stream of
the forked Subprocess;
or null to discard the data.
IOException
InterruptedExceptionpublic static void main(String[] arguments)
arguments -
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||