public class EJBServer extends java.lang.Object implements EnvironmentBean
Each protocol will extend the container to override Handle creation.
Modifier and Type | Field and Description |
---|---|
protected static EnvironmentLocal<java.lang.String> |
_localURL |
protected static java.util.logging.Logger |
log |
Constructor and Description |
---|
EJBServer()
Create a server with the given prefix name.
|
Modifier and Type | Method and Description |
---|---|
void |
addEJBJar(Path ejbJar)
Adds an ejb jar.
|
void |
addJarUrls(EnvironmentClassLoader loader,
Path root) |
EnvironmentClassLoader |
getClassLoader()
Gets the environment class loader.
|
ConnectionFactory |
getConnectionFactory()
Gets the jndi name of the jmsQueueConnectionFactory
|
boolean |
getCreateDatabaseSchema()
True if database schema should be generated automatically.
|
java.lang.String |
getEntityManagerJndiName()
Gets the EntityManager JNDI name.
|
java.lang.String |
getJdbcIsolation()
Gets the JDBC isolation.
|
static EJBServer |
getLocal() |
java.lang.String |
getResinIsolation()
Gets the Resin isolation.
|
long |
getTransactionTimeout()
Gets transaction timeout.
|
java.lang.String |
getURLPrefix()
Gets the URL-prefix for all external beans.
|
boolean |
getValidateDatabaseSchema()
True if database schema should be validated automatically.
|
void |
init()
Initialize the container.
|
void |
initEJBs()
Initialize all EJBs for any *.ejb or ejb-jar.xml in the WEB-INF or
in a META-INF in the classpath.
|
boolean |
isAllowPOJO()
If true, allow POJO beans
|
boolean |
isAutoCompile()
If true, automatically compile old EJBs.
|
void |
manualInit()
Initialize the container.
|
void |
setAllowPOJO(boolean allowPOJO)
Set true to allow POJO beans
|
void |
setAutoCompile(boolean autoCompile)
Set true to automatically compile old EJBs.
|
void |
setConfigDirectory(Path path) |
void |
setCreateDatabaseSchema(boolean create)
Sets true if database schema should be generated automatically.
|
void |
setDataSource(javax.sql.DataSource dataSource)
Sets the data-source
|
void |
setEntityManagerJndiName(java.lang.String name)
Sets the EntityManager JNDI name.
|
void |
setEnvironmentClassLoader(EnvironmentClassLoader env)
Sets the environment class loader.
|
void |
setForbidJvmCall(boolean forbid)
If true, JVM calls are forbidden.
|
void |
setJdbcIsolation(java.lang.String jdbcIsolation)
Sets the JDBC isolation.
|
void |
setJMSConnectionFactory(JndiBuilder factory)
Sets the jndi name of the jmsConnectionFactory
|
void |
setJndiLocalPrefix(java.lang.String name)
Gets the JNDI name.
|
void |
setJndiName(java.lang.String name)
Sets the JNDI name.
|
void |
setJndiPrefix(java.lang.String name)
Sets the JNDI name.
|
void |
setJndiRemotePrefix(java.lang.String name)
Gets the remote JNDI name.
|
void |
setLoadLazyOnTransaction(boolean isLazy)
Sets true if database schema should be validated automatically.
|
void |
setMessageConsumerMax(int consumerMax)
Sets consumer max
|
void |
setName(java.lang.String name)
Sets the JNDI name.
|
void |
setReadDataSource(javax.sql.DataSource dataSource)
Sets the data-source
|
void |
setResinIsolation(java.lang.String resinIsolation)
Sets the Resin isolation.
|
void |
setScanPersistenceXml(boolean isScan) |
void |
setStartupMode(java.lang.String startupMode)
Sets the EJB server startup mode.
|
void |
setTransactionTimeout(Period timeout)
Sets the transaction timeout.
|
void |
setURLPrefix(java.lang.String urlPrefix)
Sets the URL-prefix for all external beans.
|
void |
setValidateDatabaseSchema(boolean validate)
Sets true if database schema should be validated automatically.
|
void |
setXADataSource(javax.sql.DataSource dataSource)
Sets the xa data-source
|
protected static final java.util.logging.Logger log
protected static EnvironmentLocal<java.lang.String> _localURL
public EJBServer() throws ConfigException
ConfigException
public void addJarUrls(EnvironmentClassLoader loader, Path root) throws java.io.IOException
java.io.IOException
public EnvironmentClassLoader getClassLoader()
getClassLoader
in interface EnvironmentBean
public void setEnvironmentClassLoader(EnvironmentClassLoader env)
public void setName(java.lang.String name)
public void setJndiName(java.lang.String name)
public void setJndiPrefix(java.lang.String name)
public void setJndiLocalPrefix(java.lang.String name)
public void setJndiRemotePrefix(java.lang.String name)
public void setEntityManagerJndiName(java.lang.String name)
public java.lang.String getEntityManagerJndiName()
public void setURLPrefix(java.lang.String urlPrefix)
public java.lang.String getURLPrefix()
public void setConfigDirectory(Path path)
public void addEJBJar(Path ejbJar) throws ConfigException
ConfigException
public void setDataSource(javax.sql.DataSource dataSource) throws ConfigException
ConfigException
public void setReadDataSource(javax.sql.DataSource dataSource) throws ConfigException
ConfigException
public void setXADataSource(javax.sql.DataSource dataSource) throws ConfigException
ConfigException
public void setCreateDatabaseSchema(boolean create)
public boolean getCreateDatabaseSchema()
public void setValidateDatabaseSchema(boolean validate)
public boolean getValidateDatabaseSchema()
public void setLoadLazyOnTransaction(boolean isLazy)
public void setJMSConnectionFactory(JndiBuilder factory) throws ConfigException, javax.naming.NamingException
ConfigException
javax.naming.NamingException
public ConnectionFactory getConnectionFactory()
public void setMessageConsumerMax(int consumerMax) throws ConfigException, javax.naming.NamingException
ConfigException
javax.naming.NamingException
public long getTransactionTimeout()
public void setTransactionTimeout(Period timeout)
public java.lang.String getResinIsolation()
public void setResinIsolation(java.lang.String resinIsolation)
public java.lang.String getJdbcIsolation()
public void setJdbcIsolation(java.lang.String jdbcIsolation)
public void setForbidJvmCall(boolean forbid)
public boolean isAutoCompile()
public void setAutoCompile(boolean autoCompile)
public boolean isAllowPOJO()
public void setAllowPOJO(boolean allowPOJO)
public void setStartupMode(java.lang.String startupMode)
public static EJBServer getLocal()
public void setScanPersistenceXml(boolean isScan)
@PostConstruct public void init()
public void manualInit() throws java.lang.Exception
java.lang.Exception
public void initEJBs() throws java.lang.Exception
java.lang.Exception