public static void reset()
        throws StartupException
    {
        try {
            final InitialContext initCtx = new InitialContext();
            final javax.naming.Context envCtx = (javax.naming.Context) initCtx.lookup("java:comp/env");
            Context.DBTYPE = (AbstractDatabase<?>) envCtx.lookup(INamingBinds.RESOURCE_DBTYPE);
            Context.DATASOURCE = (DataSource) envCtx.lookup(INamingBinds.RESOURCE_DATASOURCE);
            Context.TRANSMANAG = (TransactionManager) envCtx.lookup(INamingBinds.RESOURCE_TRANSMANAG);
            try {
                Context.TRANSMANAGTIMEOUT = 0;
                final Map<?, ?> props = (Map<?, ?>) envCtx.lookup(INamingBinds.RESOURCE_CONFIGPROPERTIES);
                if (props != null) {
                    final String transactionTimeoutString = (String) props.get(IeFapsProperties.TRANSACTIONTIMEOUT);
                    if (transactionTimeoutString != null) {
                        Context.TRANSMANAGTIMEOUT = Integer.parseInt(transactionTimeoutString);
                    }
                }
            } catch (final NamingException e) {
                // this is actual no error, so nothing is presented
                Context.TRANSMANAGTIMEOUT = 0;
            }
        } catch (final NamingException e) {
            throw new StartupException("eFaps context could not be initialized", e);
        }
    }
public static void reset ( ) throws StartupException { try { final InitialContext initCtx = new InitialContext ( ) ; final javax . naming . Context envCtx = ( javax . naming . Context ) initCtx . lookup ( "java:comp/env" ) ; Context . DBTYPE = ( AbstractDatabase < ? > ) envCtx . lookup ( INamingBinds . RESOURCE_DBTYPE ) ; Context . DATASOURCE = ( DataSource ) envCtx . lookup ( INamingBinds . RESOURCE_DATASOURCE ) ; Context . TRANSMANAG = ( TransactionManager ) envCtx . lookup ( INamingBinds . RESOURCE_TRANSMANAG ) ; try { Context . TRANSMANAGTIMEOUT = 0 ; final Map < ? , ? > props = ( Map < ? , ? > ) envCtx . lookup ( INamingBinds . RESOURCE_CONFIGPROPERTIES ) ; if ( props != null ) { final String transactionTimeoutString = ( String ) props . get ( IeFapsProperties . TRANSACTIONTIMEOUT ) ; if ( transactionTimeoutString != null ) { Context . TRANSMANAGTIMEOUT = Integer . parseInt ( transactionTimeoutString ) ; } } } catch ( final NamingException e ) { Context . TRANSMANAGTIMEOUT = 0 ; } } catch ( final NamingException e ) { throw new StartupException ( "eFaps context could not be initialized" , e ) ; } }
Resets the context to current defined values in the Javax naming
environment.

@throws StartupException if context could not be reseted to new values
@see #DBTYPE
@see #DATASOURCE
@see #TRANSMANAG
@see #TRANSMANAGTIMEOUT