Package com.sun.enterprise.admin.config

Examples of com.sun.enterprise.admin.config.MBeanConfigException


        {
            return new FileRealm( mFile );
        }
        catch(Exception e)
        {
            throw new MBeanConfigException( e.getMessage() );
        }
    }
View Full Code Here


        {
            return toStringArray(realm.getUserNames());
        }
        catch(BadRealmException bre)
        {
            throw new MBeanConfigException(bre.getMessage());
        }
    }
View Full Code Here

        {
            return toStringArray(realm.getGroupNames());
        }
        catch(BadRealmException bre)
        {
            throw new MBeanConfigException(bre.getMessage());
        }
    }
View Full Code Here

        {
            return toStringArray(realm.getGroupNames(userName));
        }
        catch(NoSuchUserException nse)
        {
            throw new MBeanConfigException(nse.getMessage());
        }
    }
View Full Code Here

            realm.addUser(userName, password, groupList);
            saveInstanceRealmKeyFile(realm);
        }
        catch(Exception e)
        {
            throw new MBeanConfigException( e.getMessage() );
        }
    }
View Full Code Here

            realm.removeUser(userName);
            saveInstanceRealmKeyFile(realm);
        }
        catch(NoSuchUserException nse)
        {
            throw new MBeanConfigException(nse.getMessage());
        }
    }
View Full Code Here

            realm.updateUser(userName, userName, password, groupList);
            saveInstanceRealmKeyFile( realm );
        }
        catch( Exception e )
        {
            throw new MBeanConfigException( e .getMessage() );
        }
    }
View Full Code Here

        {
            realm.writeKeyFile( mFile );
        }
        catch(IOException e)
        {
            throw new MBeanConfigException( e.getMessage() );
        }
}
View Full Code Here

        fine("TrasactionsRecoverytMBean.recoveryTransactions for server: "+serverToRecover+
             " destinationServer"+destinationServer+" transactionLogDir"+transactionLogDir);
       

        if(serverToRecover==null)
           throw new MBeanConfigException(_strMgr.getString("tx.noServerToRecover"));                

        if(!isServer(serverToRecover))
            throw new MBeanConfigException(_strMgr.getString("tx.ServerBeRecoveredIsNotKnown", serverToRecover));               
        if(isServerRunning(serverToRecover))
        {
            if(destinationServer!=null && !serverToRecover.equals(destinationServer))
                //server running + destination not null & not equal
                throw new MBeanConfigException(_strMgr.getString("tx.runningServerBeRecoveredFromAnotherServer", serverToRecover, destinationServer));               

            if(transactionLogDir!=null)
                //server running + logDir notnot
                throw new MBeanConfigException(_strMgr.getString("tx.logDirShouldNotBeSpecifiedForSelfRecovering", serverToRecover));
        }
        else if(destinationServer==null)
        {
              // server not running + no destination
              throw new MBeanConfigException(_strMgr.getString("tx.noDestinationServer", serverToRecover));

        }
        else if(!isServerRunning(destinationServer))
        {
             // server not running + destination not running
             throw new MBeanConfigException(_strMgr.getString("tx.destinationServerIsNotAlive", serverToRecover));
        }
        else if(transactionLogDir==null)
        {
             // server not running + destination not running
             throw new MBeanConfigException(_strMgr.getString("tx.logDirNotSpecified", serverToRecover));
        }
           
        if(destinationServer!=null && !isServer(destinationServer))
            throw new MBeanConfigException(_strMgr.getString("tx.DestinationServerIsNotKnown", destinationServer));               

        //here we are only if parameters consistent
        if(destinationServer==null)
            destinationServer = serverToRecover;
View Full Code Here

        AdminEventResult res = forwardEvent(event);
        if(!AdminEventResult.SUCCESS.equals(res.getResultCode()))
        {
            Throwable exc = res.getFirstThrowable();
            if(exc!=null) {
                throw new MBeanConfigException(_strMgr.getString("tx.exceptionInTargetServer",
                    exc.getMessage()));
            }
            throw new MBeanConfigException(_strMgr.getString("tx.notSuccessInSendReturn",
                    res.getResultCode()));
        }
    }
View Full Code Here

TOP

Related Classes of com.sun.enterprise.admin.config.MBeanConfigException

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.