Package com.arjuna.common.util.propertyservice

Examples of com.arjuna.common.util.propertyservice.PropertyManager


    private boolean isRecoveryManagerRunning() throws Exception
    {
        boolean active = false;
        int port = 0;
        PropertyManager pm = PropertyManagerFactory.getPropertyManager("com.arjuna.ats.propertymanager", "recoverymanager");

        if ( pm != null )
        {
            String portStr = pm.getProperty(com.arjuna.ats.arjuna.common.Environment.RECOVERY_MANAGER_PORT);

            if (portStr != null)
            {
                try
                {
View Full Code Here


    private boolean isRecoveryManagerRunning() throws Exception
    {
        boolean active = false;
        int port = 0;
        PropertyManager pm = PropertyManagerFactory.getPropertyManager("com.arjuna.ats.propertymanager", "recoverymanager");

        if ( pm != null )
        {
            String portStr = pm.getProperty(com.arjuna.ats.arjuna.common.Environment.RECOVERY_MANAGER_PORT);

            if (portStr != null)
            {
                try
                {
View Full Code Here

    private boolean isRecoveryManagerRunning() throws Exception
    {
        boolean active = false;
        int port = 0;
        PropertyManager pm = PropertyManagerFactory.getPropertyManager("com.arjuna.ats.propertymanager", "recoverymanager");

        if ( pm != null )
        {
            String portStr = pm.getProperty(com.arjuna.ats.arjuna.common.Environment.RECOVERY_MANAGER_PORT);

            if (portStr != null)
            {
                try
                {
View Full Code Here

  public static PropertyManager getPropertyManager(String name)
  {
    synchronized (managers)
    {
      PropertyManager theManager = managers.get(name);

      if (theManager == null)
      {
        theManager = initialise(name);
View Full Code Here

     * for verbose output from the PropertyManager.
     */

    try
    {
      PropertyManager propertyManager = PropertyManagerFactory.getPropertyManager("org.jboss.soa.esb.propertymanager." + name, name);
 
      String propertiesFilename = System.getProperty(Environment.PROPERTIES_FILE, Environment.DEFAULT_PROPERTY_FILE);
 
      /*
       * Does not cause reloading of the same file over and over. Once it is
       * loaded, subsequent attempts to reload are ignored internally.
       */
 
      try
      {
        propertyManager.load(XMLFilePlugin.class.getName(), propertiesFilename);
      }
      catch (LoadPropertiesException ex)
      {
        _logger.fatal("ModulePropertyManager failed to load property file "+propertiesFilename);
       
View Full Code Here

        Document configDoc = YADOMUtil.parseStream(esbConfig, false, false);
        NodeList propertiesList = configDoc.getElementsByTagName("properties");
        for(int i = 0; i < propertiesList.getLength(); i++) {
            Element properties = (Element) propertiesList.item(i);
            String name = properties.getAttribute("name");
            PropertyManager propertyManager = new PropertyManagerImpl(name);
            NodeList propertyList = properties.getElementsByTagName("property");

            addProperties(propertyList, propertyManager);
            managers.put(name, propertyManager);
        }
View Full Code Here

      Session sess = jcrm.newRepositorySession();
      fail("Should not be able to create new repository session with no user/pass");
    } catch (RepositoryException re) {
    }

    PropertyManager mpm = ModulePropertyManager.getPropertyManager(ModulePropertyManager.DBSTORE_MODULE);
    mpm.setProperty(Environment.MSG_STORE_JCR_USERNAME, "joe");
    mpm.setProperty(Environment.MSG_STORE_JCR_PASSWORD, "shmoe");
    mpm.setProperty(Environment.MSG_STORE_DB_DATASOURCE_NAME, "datasource");
    mpm.setProperty(Environment.MSG_STORE_JCR_JNDI_PATH, "path");
    PropertyManager core = ModulePropertyManager.getPropertyManager(ModulePropertyManager.CORE_MODULE);
    core.setProperty(Environment.JNDI_SERVER_CONTEXT_FACTORY, "org.mockejb.jndi.MockContextFactory");
    core.setProperty(Environment.JNDI_SERVER_PKG_PREFIX, "org.mockejb.jndi");
    Repository repository = null;
    try {
      repository = new TransientRepository();
    } catch (IOException e1) {
      // TODO Auto-generated catch block
View Full Code Here

  public static void setUp() throws Exception
  {
    _logger.debug("tmp directory = <"+_tmpDir+">");
    purgeStaleFiles();
   
    PropertyManager pm = ModulePropertyManager.getPropertyManager(ModulePropertyManager.FILTER_MODULE);
    pm.setProperty("org.jboss.soa.esb.filter.0", "org.jboss.internal.soa.esb.message.filter.MetaDataFilter");
    pm.setProperty("org.jboss.soa.esb.filter.1", "org.jboss.internal.soa.esb.message.filter.EntryExitTimeFilter");
  }
View Full Code Here

    private static final String DEFAULT_TEST_MAX_THREADS = "DefaultTestMaxThreads" ;
   
    @BeforeClass
    public static void setUp () throws Exception
    {
        final PropertyManager propertyManager = ModulePropertyManager.getPropertyManager(ModulePropertyManager.JCA_MODULE) ;
        propertyManager.setProperty(Environment.JCA_ACTIVATION_MAPPER + ".jms-ra.rar", JBossActivationMapper.class.getName()) ;
        propertyManager.setProperty(Environment.JCA_ACTIVATION_MAPPER + ".test-ra.rar", TestActivationMapper.class.getName()) ;
    }
View Full Code Here

    private static final String DEFAULT_TEST_MAX_THREADS = "DefaultTestMaxThreads" ;
   
    @BeforeClass
    public static void setUp () throws Exception
    {
        final PropertyManager propertyManager = ModulePropertyManager.getPropertyManager(ModulePropertyManager.JCA_MODULE) ;
        propertyManager.setProperty(Environment.JCA_ACTIVATION_MAPPER + ".jms-ra.rar", JBossActivationMapper.class.getName()) ;
        propertyManager.setProperty(Environment.JCA_ACTIVATION_MAPPER + ".test-ra.rar", TestActivationMapper.class.getName()) ;
    }
View Full Code Here

TOP

Related Classes of com.arjuna.common.util.propertyservice.PropertyManager

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.