Custom JSP taglib. Lets you deploy JMS service in your JSP pages.
For example:
Tags are:
sendMessage
Body tag. Sends JMS message defined in the body. Parameters are:
1) topic JNDI name for topic
2) topicConnectionFactory JNDI name for TopicConnectionFactory
3) queue JNDI name for queue
4) queueConnectionFactory JNDI name for QueueConnectionFactory
5) context Context Id (see JNDI taglib)
6) contextScope scope for Context Id. Possible values are page, request, session or application.
Defines scope for created variable. Default value is page.
7) topicId result of lookup for topic (see JNDI taglib)
8) topicScope scope for topicId. Possible values are page, request, session or application.
Defines scope for created variable. Default value is page.
9) queueId result of lookup for queue (see JNDI taglib)
10) queueScope scope for queueId. Possible values are page, request, session or application.
Defines scope for created variable. Default value is page.
11) topicConnectionFactoryId result of lookup for TopicConnectionFactory (see JNDI taglib)
12) topicConnectionFactoryScope scope for TopicConnectionFactory. Possible values are page, request, session or application.
Defines scope for created variable. Default value is page.
13) queueConnectionFactoryId result of lookup for QueueConnectionFactory (see JNDI taglib)
14) queueConnectionFactoryScope scope for QueueConnectionFactory. Possible values are page, request, session or application.
Defines scope for created variable. Default value is page.
Let us see more example. You may use JNDI names for queue (or topic) and QueueConnectionFactory (or TopicConnectionFactory) -
see code piece above. Or you may deploy JNDI taglib and use
results for Context and lookup tag:
or
textMessage
Body tag. Produces text message. Parameters are: none
bytesMessage
Body tag. Produces bytes message. Parameters are: none
for downloading:
Library: jmstag.jar Description: taglib.tld
See also Coldtags suite - the largest collection of custom JSP tags.