简体   繁体   中英

Spring JMS standalone module initialization

I've look to simple sample for create standalone module that used spring for handling JMS.

I try to google some example but i only found cuts of configuration and java code - not full sample of application. So my main issue that i don't understand requirements for init and run standalone JMS module with Spring.

I have one requirement - output type of artifact should EAR (restriction).

For example, i found the code for consumer and configuration in doc: http://docs.spring.io/spring/docs/3.0.x/spring-framework-reference/html/jms.html , part 21.4.2 Asynchronous Reception - Message-Driven POJOs, but i don't understand how to wrap this code to run it under any EE container.

An EAR application is not standalone, but requires a Java EE application server to run.

This official tutorial shows a basic JMS sample as an EAR application.

You need to download and setup the Glassfish application server, Netbeans IDE and tutorial source code, instructions are found here .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM