Package org.jboss.soa.esb

Examples of org.jboss.soa.esb.Service


      assertEquals(4, TestChannel.count);
     
      Channel channel_3 = channel_map.get("channel_3");
      assertNotNull(channel_3);
      assertTrue(channel_3 instanceof ServiceChannel);
      Service service_3 = ((ServiceChannel)channel_3).getService();
      assertNotNull(service_3);
      assertEquals("category_3", service_3.getCategory());
      assertEquals("service_3", service_3.getName());
    }
View Full Code Here


        try {
            int numberOfMessages=20;
            MessageStore store = MessageStoreFactory.getInstance().getMessageStore();
            assertEquals((store != null), true);
            //first lets create an undeliverable message
            Service service = new Service("cat", "service");
            URI uid = createMessages(numberOfMessages, service, store);
            Map<URI, Message> messageMap = store.getAllMessages(RedeliverStore.CLASSIFICATION_RDLVR);
            assertEquals(messageMap.size(), numberOfMessages);
            System.out.println(new Date());
            runTestConfig("config-01.xml", 5000);
View Full Code Here

  {
        log.info("** redeliverOne");
        RedeliverStore store = MessageStoreFactory.getInstance().getRedeliverStore();
        assertEquals((store != null), true);
    //first lets create an undeliverable message
        Service service = new Service("cat", "service");
        URI uid = createMessages(1, service, store);
   
        store.redeliver(uid);
        Message message = store.getMessage(uid);
        //the message should no longer be in the store.
View Full Code Here

    {
        log.info("** redeliverOneThreads");
        MessageStore store = MessageStoreFactory.getInstance().getMessageStore();
        assertEquals((store != null), true);
        //first lets create an undeliverable message
        Service service = new Service("cat", "service");
        URI uid = createMessages(1, service, store);
        RedeliverClient redeliverClient = new RedeliverClient();
        Thread t1 = new Thread(redeliverClient, "CLIENT-1");
        t1.start();
       
View Full Code Here

        log.info("** redeliverTwoThreads");
        //first lets create an undeliverable message
        MessageStore store = MessageStoreFactory.getInstance().getMessageStore();
        assertEquals((store != null), true);
        //first lets create an undeliverable message
        Service service = new Service("cat", "service");
        URI uid = createMessages(1, service, store);
        RedeliverClient client1 = new RedeliverClient();
        RedeliverClient client2 = new RedeliverClient();
        Thread t1 = new Thread(client1, "CLIENT-1");
        Thread t2 = new Thread(client2, "CLIENT-2");
View Full Code Here

        log.info("** redeliverFiftyTwoThreads");
        //first lets create an undeliverable message
        MessageStore store = MessageStoreFactory.getInstance().getMessageStore();
        assertEquals((store != null), true);
        //first lets create an undeliverable message
        Service service = new Service("cat", "service");
        URI uid = createMessages(numberOfMessages, service, store);
        RedeliverClient client1 = new RedeliverClient();
        RedeliverClient client2 = new RedeliverClient();
        Thread t1 = new Thread(client1, "CLIENT-1");
        Thread t2 = new Thread(client2, "CLIENT-2");
View Full Code Here

    {
        log.info("** redeliverOneUnreachable");
        RedeliverStore store = MessageStoreFactory.getInstance().getRedeliverStore();
        assertEquals((store != null), true);
        //first lets create an undeliverable message
        Service service = new Service("cat", "unreachable_service");
        URI uid = createMessages(1, service, store);
       
        int maxRedeliveryCount = store.getMaxRedeliverCount();
        for (int i=0; i<maxRedeliveryCount; i++) {
            store.redeliver(uid);
View Full Code Here

        final WebserviceInfo webservice = webservices.get(0) ;
        final ESBServiceEndpointInfo endpointInfo = new ESBServiceEndpointInfo(webservice) ;
       
        final EPR deliverEPR = new EPR(new URI("test:deliver")) ;
        final MockCourier deliverCourier = new MockCourier(true);
        final Service service = webservice.getService() ;
        final String category = service.getCategory() ;
        final String name = service.getName() ;
        TestRegistry.register(category, name, deliverEPR, deliverCourier);

        final JAXWSProviderClassGenerator classGenerator = new JAXWSProviderClassGenerator() ;
       
        final byte[] bytes = classGenerator.generate("deploymentName", category, name, endpointInfo, false) ;
View Full Code Here

       
        @Override
        public List<EPR> findEPRs(final String category, final String serviceName)
            throws RegistryException
        {
            final Service service = new Service(category, serviceName) ;
            final Integer count = counts.get(service) ;
            if (count != null)
            {
                counts.put(service, Integer.valueOf(count.intValue() + 1)) ;
            }
View Full Code Here

            return super.findEPRs(category, serviceName) ;
        }
       
        public int getCount(final String category, final String serviceName)
        {
            final Service service = new Service(category, serviceName) ;
            final Integer count = counts.get(service) ;
            if (count != null)
            {
                return count.intValue() ;
            }
View Full Code Here

TOP

Related Classes of org.jboss.soa.esb.Service

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.