Package org.jboss.jca.core.spi.mdr

Examples of org.jboss.jca.core.spi.mdr.MetadataRepository


    @Test
    public void testMetadataConfiguration() throws Throwable {
        ServiceController<?> controller = serviceContainer.getService(ConnectorServices.IRONJACAMAR_MDR);
        assertNotNull(controller);
        MetadataRepository repository = (MetadataRepository) controller.getValue();
        assertNotNull(repository);
        Set<String> ids = repository.getResourceAdapters();

        assertNotNull(ids);
        //on a running server it's always 2 beacause HornetQResourceAdapter is always present
        assertEquals(1, ids.size());

        for (String piId : ids) {
            assertNotNull(piId);
            System.out.println("PID:" + piId);
            assertNotNull(repository.getResourceAdapter(piId));
        }
    }
View Full Code Here


    @Test
    public void testMetadataConfiguration() throws Throwable {
        ServiceController<?> controller = serviceContainer.getService(ConnectorServices.IRONJACAMAR_MDR);
        assertNotNull(controller);
        MetadataRepository repository = (MetadataRepository) controller.getValue();
        assertNotNull(repository);
        Set<String> ids = repository.getResourceAdapters();

        assertNotNull(ids);
        assertEquals(1, ids.size());

        String piId = ids.iterator().next();
        assertNotNull(piId);
        assertNotNull(repository.getResourceAdapter(piId));
    }
View Full Code Here

TOP

Related Classes of org.jboss.jca.core.spi.mdr.MetadataRepository

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.