Class JmsResource


  • @Path("/messaging")
    public class JmsResource
    extends Object
    • Field Detail

      • producerTemplate

        @Inject
        org.apache.camel.ProducerTemplate producerTemplate
      • consumerTemplate

        @Inject
        org.apache.camel.ConsumerTemplate consumerTemplate
      • context

        @Inject
        org.apache.camel.CamelContext context
    • Constructor Detail

      • JmsResource

        public JmsResource()
    • Method Detail

      • consumeJmsQueueMessage

        @Path("/jms/{queueName}")
        @GET
        @Produces("text/plain")
        public String consumeJmsQueueMessage​(@PathParam("queueName")
                                             String queueName)
      • produceJmsQueueMessage

        @Path("/jms/{queueName}")
        @POST
        @Consumes("text/plain")
        public javax.ws.rs.core.Response produceJmsQueueMessage​(@PathParam("queueName")
                                                                String queueName,
                                                                String message)
                                                         throws Exception
        Throws:
        Exception
      • jmsMessageType

        @Path("/jms/type/{type}")
        @POST
        @Consumes("text/plain")
        @Produces("text/plain")
        public javax.ws.rs.core.Response jmsMessageType​(@PathParam("type")
                                                        String type,
                                                        String messageBody)
                                                 throws Exception
        Throws:
        Exception
      • jmsMapMessage

        @Path("/jms/map")
        @POST
        @Consumes("application/json")
        @Produces("application/json")
        public javax.ws.rs.core.Response jmsMapMessage​(Map<String,​String> payload)
                                                throws Exception
        Throws:
        Exception
      • customMessageListenerContainerFactory

        @Path("/jms/custom/message/listener/factory")
        @POST
        @Consumes("text/plain")
        @Produces("text/plain")
        public String customMessageListenerContainerFactory​(String message)
      • customDestinationResolver

        @Path("/jms/custom/destination/resolver")
        @POST
        @Consumes("text/plain")
        @Produces("text/plain")
        public String customDestinationResolver​(String message)
      • customMessageConverter

        @Path("/jms/custom/message/converter")
        @POST
        @Consumes("text/plain")
        @Produces("text/plain")
        public String customMessageConverter​(String message)
      • jmsSelector

        @Path("/jms/selector/{expression}")
        @GET
        @Produces("text/plain")
        public String jmsSelector​(@PathParam("expression")
                                  String expression)
      • jmsTransaction

        @Path("/jms/transaction")
        @GET
        @Produces("text/plain")
        public javax.ws.rs.core.Response jmsTransaction()
                                                 throws Exception
        Throws:
        Exception
      • testTransferExchange

        @Path("/jms/transfer/exchange")
        @Consumes("text/plain")
        @Produces("text/plain")
        @POST
        public javax.ws.rs.core.Response testTransferExchange​(String message)
                                                       throws InterruptedException
        Throws:
        InterruptedException
      • topicPubSub

        @Path("/jms/topic")
        @Consumes("text/plain")
        @POST
        public void topicPubSub​(String message)
                         throws Exception
        Throws:
        Exception
      • consumePahoMessage

        @Path("/paho/{queueName}")
        @GET
        @Produces("text/plain")
        public String consumePahoMessage​(@PathParam("queueName")
                                         String queueName)
      • producePahoMessage

        @Path("/paho/{queueName}")
        @POST
        @Consumes("text/plain")
        public javax.ws.rs.core.Response producePahoMessage​(@PathParam("queueName")
                                                            String queueName,
                                                            String message)
                                                     throws Exception
        Throws:
        Exception
      • consumePahoMessageWs

        @Path("/paho-ws/{queueName}")
        @GET
        @Produces("text/plain")
        public String consumePahoMessageWs​(@PathParam("queueName")
                                           String queueName)
      • producePahoMessageWs

        @Path("/paho-ws/{queueName}")
        @POST
        @Consumes("text/plain")
        public javax.ws.rs.core.Response producePahoMessageWs​(@PathParam("queueName")
                                                              String queueName,
                                                              String message)
                                                       throws Exception
        Throws:
        Exception
      • consumeSjmsMessage

        @Path("/sjms/{queueName}")
        @GET
        @Produces("text/plain")
        public String consumeSjmsMessage​(@PathParam("queueName")
                                         String queueName)
      • produceSjmsMessage

        @Path("/sjms/{queueName}")
        @POST
        @Consumes("text/plain")
        public javax.ws.rs.core.Response produceSjmsMessage​(@PathParam("queueName")
                                                            String queueName,
                                                            String message)
                                                     throws Exception
        Throws:
        Exception