Package org.springframework.jndi

Examples of org.springframework.jndi.JndiTemplate


   * Set the JNDI environment to use for JNDI lookups.
   * Creates a JndiTemplate with the given environment settings.
   * @see #setJndiTemplate
   */
  public void setJndiEnvironment(Properties jndiEnvironment) {
    this.jndiTemplate = new JndiTemplate(jndiEnvironment);
  }
View Full Code Here


  private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
    // Rely on default serialization; just initialize state after deserialization.
    ois.defaultReadObject();

    // Create template for client-side JNDI lookup.
    this.jndiTemplate = new JndiTemplate();

    // Perform a fresh lookup for JTA handles.
    initUserTransactionAndTransactionManager();
    initTransactionSynchronizationRegistry();
  }
View Full Code Here

   * Set the JNDI template to use for JNDI lookups.
   * You can also specify JNDI environment settings via "jndiEnvironment".
   * @see #setJndiEnvironment
   */
  public void setJndiTemplate(JndiTemplate jndiTemplate) {
    this.jndiTemplate = (jndiTemplate != null ? jndiTemplate : new JndiTemplate());
  }
View Full Code Here

   * Set the JNDI environment to use for JNDI lookups.
   * Creates a JndiTemplate with the given environment settings.
   * @see #setJndiTemplate
   */
  public void setJndiEnvironment(Properties jndiEnvironment) {
    this.jndiTemplate = new JndiTemplate(jndiEnvironment);
  }
View Full Code Here

  }

  private JmsTemplate createTemplate() {
    JmsTemplate template = new JmsTemplate();
    JndiDestinationResolver destMan = new JndiDestinationResolver();
    destMan.setJndiTemplate(new JndiTemplate() {
      @Override
      protected Context createInitialContext() {
        return jndiContext;
      }
    });
View Full Code Here

   * Set the JNDI environment to use for JNDI lookups.
   * Creates a JndiTemplate with the given environment settings.
   * @see #setJndiTemplate
   */
  public void setJndiEnvironment(Properties jndiEnvironment) {
    this.jndiTemplate = new JndiTemplate(jndiEnvironment);
  }
View Full Code Here

  private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
    // Rely on default serialization; just initialize state after deserialization.
    ois.defaultReadObject();

    // Create template for client-side JNDI lookup.
    this.jndiTemplate = new JndiTemplate();

    // Perform a fresh lookup for JTA handles.
    initUserTransactionAndTransactionManager();
    initTransactionSynchronizationRegistry();
  }
View Full Code Here

   * Set the JNDI environment to use for JNDI lookups.
   * Creates a JndiTemplate with the given environment settings.
   * @see #setJndiTemplate
   */
  public void setJndiEnvironment(Properties jndiEnvironment) {
    this.jndiTemplate = new JndiTemplate(jndiEnvironment);
  }
View Full Code Here

  private void readObject(ObjectInputStream ois) throws IOException, ClassNotFoundException {
    // Rely on default serialization; just initialize state after deserialization.
    ois.defaultReadObject();

    // Create template for client-side JNDI lookup.
    this.jndiTemplate = new JndiTemplate();

    // Perform a fresh lookup for JTA handles.
    initUserTransactionAndTransactionManager();
    initTransactionSynchronizationRegistry();
  }
View Full Code Here

  private SimpleRemoteSlsbInvokerInterceptor configuredInterceptor(
      MockControl contextControl, final String jndiName) throws Exception {

    final Context mockCtx = (Context) contextControl.getMock();
    SimpleRemoteSlsbInvokerInterceptor si = createInterceptor();
    si.setJndiTemplate(new JndiTemplate() {
      protected Context createInitialContext() {
        return mockCtx;
      }
    });
    si.setResourceRef(true);
View Full Code Here

TOP

Related Classes of org.springframework.jndi.JndiTemplate

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.