Examples of JndiContextProperties


Examples of org.jitterbit.integration.data.location.jms.JndiContextProperties

public final class ClientServerJmsPropertyMapper {

  public static Map<String, String> getJmsLocationProperties(JmsLocation jmsLocation) {
    Map<String, String> m = jmsLocation.getJmsLocationProperties();

    JndiContextProperties jndiContextProperties = jmsLocation.getJndiContextProperties();
    JndiContextProperty[] systemProps = jndiContextProperties.getSystemProperties();
    JndiContextProperty[] userProps = jndiContextProperties.getUserDefinedProperties();
   
    for( JndiContextProperty prop : systemProps ) {
      String value = prop.getValue();
      if ( value != null && value.length() > 0 )
        m.put("Jndi." + prop.getName(), value);
View Full Code Here

Examples of org.jitterbit.integration.data.location.jms.JndiContextProperties

    public JndiContextProperties getJndiContextProperties() {
        synchronized (getDataLock()) {
            if (jndiContextProperties == null) {
                return null;
            }
            return new JndiContextProperties(jndiContextProperties);
        }
    }
View Full Code Here

Examples of org.jitterbit.integration.data.location.jms.JndiContextProperties

     * <code>props</code>.
     *
     */
    public void setJndiContextProperties(JndiContextProperties props) {
        checkNotNull(props, "props");
        JndiContextProperties old = jndiContextProperties;
        synchronized (getDataLock()) {
            jndiContextProperties = new JndiContextProperties(props);
        }
        firePropertyChange(JNDI_CONTEXT_PROPERTIES, old, jndiContextProperties);
    }
View Full Code Here

Examples of org.jitterbit.integration.data.location.jms.JndiContextProperties

        UiProvider ui = createTable();
        QuickFrame.show(ui, "JNDI Context Table");
    }

    private UiProvider createTable() {
        JndiContextProperties props = getProperties();
        return new JndiContextTable(props);
    }
View Full Code Here

Examples of org.jitterbit.integration.data.location.jms.JndiContextProperties

        JndiContextProperties props = getProperties();
        return new JndiContextTable(props);
    }
   
    private JndiContextProperties getProperties() {
        return new JndiContextProperties();
    }
View Full Code Here

Examples of org.jitterbit.integration.data.location.jms.JndiContextProperties

     *
     * @throws IllegalArgumentException
     *             if this model is not valid, according to {@link #validate()}.
     */
    public JndiContextProperties getContext() {
        JndiContextProperties ctx = new JndiContextProperties();
        int userCutOff = SystemJndiProperty.values().length;
        for (int n = 0; n < userCutOff; ++n) {
            JndiContextTableRow row = getRowObjectAt(n);
            ctx.setSystemPropertyValue(row.getName(), row.getValue());
        }
        for (int n = userCutOff, rows = getRowCount(); n < rows; ++n) {
            JndiContextTableRow row = getRowObjectAt(n);
            ctx.addUserDefinedProperty(row.getName(), row.getValue());
        }
        return ctx;
    }
View Full Code Here

Examples of org.jitterbit.integration.data.location.jms.JndiContextProperties

    private final JndiContextTable table;

    public ContextPropertiesDefiner(InputPanel parent) {
        this.parent = parent;
        table = new JndiContextTable(new JndiContextProperties());
        table.addChangeListener(parent);
        table.addUndoListener(parent);
    }
View Full Code Here

Examples of org.jitterbit.integration.data.location.jms.JndiContextProperties

        // Nothing to do.
    }

    @Override
    public void reset(JmsLocation loc) {
        JndiContextProperties ctx = loc.getJndiContextProperties();
        if (ctx != null) {
            updateTable(ctx);
        }
    }
View Full Code Here

Examples of org.jitterbit.integration.data.location.jms.JndiContextProperties

            updateTable(ctx);
        }
    }

    public void clear() {
        updateTable(new JndiContextProperties());
    }
View Full Code Here

Examples of org.jitterbit.integration.data.location.jms.JndiContextProperties

        // and the undolistener ends up being added to the model itself.
        table.addUndoListener(parent);
    }

    public void setProvider(JmsProvider provider) {
        JndiContextProperties ctx = new JndiContextProperties();
        ctx.setSystemPropertyValue(SystemJndiProperty.INITIAL_CONTEXT_FACTORY, provider.getInitialContextFactoryName());
        ctx.setSystemPropertyValue(SystemJndiProperty.URL_PKG_PREFIXES, provider.getUrlPackagePrefixes());
        table.update(ctx);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.