The annotation enables auto-configuration and component scanning.The class will setup a JmsListener on the "SpringTestQueue" which should already be created. This class shows how simple it is to create a Spring Boot app that receives events from a PubSub+ queue. Open the SpringBootReceiver.java file in the "spring-boot-autoconfig-receiver" project. Sample code is here if not already imported in previous steps. solace-jms-spring-boot-starter 1.0.0 Learn about the Receiver You can also create a queue from the CLI.If using an appliance, ask your administrator to create the queue for you.Once logged in choose your message VPN, click "Queues" on the left, and click the "+Queue" button on the top right to create your queue. If using a local docker instance login to the PubSub+ Manager at localhost:8080/#/login.If using Solace Cloud, create the queue by following these instructions: Create Queue.We will be creating a queue named "SpringTestQueue". In order for us to run our sender/receiver we need to first create the Queue that they will send/receive from. A username and password to access the Solace appliance.The host name or IP address of the Solace appliance hosting your Message-VPN.A PubSub+ Message-VPN where you can produce and consume direct and persistent messages.Option 3: Get access to a PubSub+ ApplianceĬontact your PubSub+ appliance administrators and obtain the following: Note: By default, the PubSub+ Software "default" message VPN has authentication disabled. Host: (IP address assigned to the VMR in tutorial instructions)Ĭlient Username: sampleUser (can be any value)Ĭlient Password: samplePassword (can be any value) The messaging connectivity information are the following: The tutorials outline where to download and how to install the PubSub+ Software. You will need:įollow these instructions to start the PubSub+ Software in leading Clouds, Container Platforms or Hypervisors. The messaging connectivity information is found in the service details in the connectivity tab (shown below). Follow these instructions to quickly spin up a cloud-based PubSub+ messaging service for your applications. ![]() There are several ways you can get access to PubSub+ Messaging and find these required properties. The PubSub+ message router Message VPN that this client should connect to. ![]() This is the address clients use when connecting to the PubSub+ messaging to send and receive messages. Specifically you need to know the following: Resources This tutorial requires access Solace PubSub+ messaging and requires that you know several connectivity properties about your Solace messaging. More information can be found at the links below. It is very commonly used by Java Developers to build event driven applications. The Java Message Service (JMS) API is a Java message-oriented middleware API for sending messages between two or more clients. ![]() Java Messaging Service (JMS) Introduction More information can be found at the link below. Instead of having to manually inject each dependency Spring Boot takes an opinionated view that gets you started more quickly. The Spring Boot project makes it easy to create production grade Spring based Applications.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |