Package org.springmodules.jini

Examples of org.springmodules.jini.JiniServiceFactoryBean


  /**
   * Can fail on Linux machines due to firewall problems (and thus disabled).
   * @throws Exception
   */
  public void tstJiniServiceLocator() throws Exception {
    JiniServiceFactoryBean serviceFactory = new JiniServiceFactoryBean();
    serviceFactory.setServiceClass(JavaSpace.class);
    serviceFactory.afterPropertiesSet();
    JavaSpace jiniSpace = (JavaSpace) serviceFactory.getObject();

    assertNotNull(space);
    assertNotNull(jiniSpace);
    // check class
    assertSame(space.getClass(), jiniSpace.getClass());
View Full Code Here


   * Will fail if the tx manager was not started separately.
   *
   * @throws Exception
   */
  public void testRetrieveTransactionManager() throws Exception {
    JiniServiceFactoryBean serviceFactory = new JiniServiceFactoryBean();
    serviceFactory.afterPropertiesSet();

    JiniTransactionManagerFactoryBean txFactory = new JiniTransactionManagerFactoryBean();
    txFactory.afterPropertiesSet();
    TransactionManager tm = (TransactionManager) txFactory.getObject();
    //assertNotNull(tm);
View Full Code Here

  /**
   * @see org.springmodules.transaction.jini.AbstractTransactionManagerFactoryBean#createTransactionManager()
   */
  protected TransactionManager createTransactionManager() throws Exception {
    JiniServiceFactoryBean serviceFactory = new JiniServiceFactoryBean();
    serviceFactory.setServiceClass(TransactionManager.class);
    serviceFactory.setServiceName(getTransactionManagerName());
    serviceFactory.afterPropertiesSet();
   
    TransactionManager txManager = (TransactionManager) serviceFactory.getObject();
    return txManager;
  }
View Full Code Here

  /**
   * @see org.springmodules.javaspaces.AbstractJavaSpaceFactoryBean#createSpace()
   */
  protected JavaSpace createSpace() throws Exception {
    JiniServiceFactoryBean serviceFactory = new JiniServiceFactoryBean();
    serviceFactory.setServiceClass(JavaSpace.class);
    serviceFactory.setServiceName(spaceName);
    serviceFactory.afterPropertiesSet();
   
    JavaSpace space = (JavaSpace) serviceFactory.getObject();
    return space;
  }
View Full Code Here

TOP

Related Classes of org.springmodules.jini.JiniServiceFactoryBean

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.