Package com.volantis.mcs.runtime.configuration

Examples of com.volantis.mcs.runtime.configuration.MpsPluginConfiguration


        return mps;
    }

    // @todo following code should be ala MCS ConfigCheckExecutor
    private void checkConfiguration(Volantis volantisBean, MPSPluginConfigValue mps) {
        MpsPluginConfiguration config =
            (MpsPluginConfiguration)volantisBean
                .getApplicationPluginConfiguration("MPS");

        String ibu = config.getInternalBaseUrl();
        String mri = config.getMessageRecipientInfo();
        assertEquals("internal-base-url", mps.internalBaseUrl, ibu);
        assertEquals("message-recipient-info", mps.messageRecipientInfo, mri);
       
        Map channelTable = new HashMap();
        Iterator channelsIterator = config.getChannelsIterator();
        while (channelsIterator.hasNext()) {
            MpsChannelConfiguration channelConfig =
                (MpsChannelConfiguration)channelsIterator.next();
            channelTable.put(channelConfig.getName(),channelConfig);
        }
View Full Code Here


            Volantis volantisBean = Volantis.getInstance();
            if( volantisBean == null ) {
                throw new IllegalStateException
                        ( "Volantis bean has not been initialised" );
            }
            MpsPluginConfiguration config =
                    (MpsPluginConfiguration)volantisBean.getApplicationPluginConfiguration( "MPS" );

            baseUrl = config.getInternalBaseUrl();
            if( logger.isDebugEnabled() ) {
                logger.debug( "MPS internal-base-url: " + baseUrl );
            }
        } catch( Exception e ) {
            if( logger.isDebugEnabled() ) {
View Full Code Here

                new TestXmlConfigurationBuilder(doc);
        // Add the digester parsing rules for the MPS plugin.
        configBuilder.addApplicationPluginRuleSet(new MpsPluginRuleSet());
        MarinerConfiguration config = configBuilder.buildConfiguration();
        assertNotNull(config);
        MpsPluginConfiguration mpsPlugin = (MpsPluginConfiguration)
                config.getApplicationPlugin("MPS");

        if (mpsValue != null) {
            assertNotNull("mps", mpsPlugin);
            assertEquals(mpsValue.internalBaseUrl,
                    mpsPlugin.getInternalBaseUrl());
            assertEquals(mpsValue.messageRecipientInfo,
                    mpsPlugin.getMessageRecipientInfo());

            Iterator channels = mpsPlugin.getChannelsIterator();
            if (channelValues != null) {
                assertNotNull("channels", channels);
                assertTrue(channels.hasNext());
                for (int i = 0; i < channelValues.length; i++) {
                    MpsChannelConfiguration channel =
View Full Code Here

            volantisBean = Volantis.getInstance();
            if (volantisBean == null) {
                throw new IllegalStateException
                        ("Volantis bean has not been initialised");
            }          
            MpsPluginConfiguration config =
                (MpsPluginConfiguration)volantisBean
                    .getApplicationPluginConfiguration("MPS");
            String recipientResolver = config.getMessageRecipientInfo();
            if(logger.isDebugEnabled()) {
                logger.debug("MPS message-recipient-info: "+recipientResolver);
            }
            if (recipientResolver != null) {
                Class recipientResolverClass = Class.forName(recipientResolver);
View Full Code Here

TOP

Related Classes of com.volantis.mcs.runtime.configuration.MpsPluginConfiguration

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.