开发者

how to implement sample jms, springs program in my eclipse

I'm new to jms and springs and eclipse as well. i'm trying to implement jms example using Springs in MyEclipse 7.1, and i have been referring the following url.

http://java-x.blogspot.com/2006/12/implementing-jms-with-spring-messaging.html

But Iam unable to understand how to execute the program, it contains a servlet but does not have any html or jsp page, should i create a web proje开发者_如何学编程ct for it or java application? How do i run the program.

Thanks and Best Regards.


You should create a web project to hold the servlet. A web project will have a directory for java source and a directory for web content (images, html, jsp, etc.). Make sure that you put the servlet code inside the java source directory. You will also need to register the servlet in web.xml unless it is a Java EE 5 servlet with annotations.

To run your servlet, right click on it and select Run As -> Run on Server

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜