Classes in this File | Line Coverage | Branch Coverage | Complexity | ||||
MessageDrivenObject |
|
| 1.0;1 |
1 | /* | |
2 | * Copyright (C) The Apache Software Foundation. All rights reserved. | |
3 | * | |
4 | * This software is published under the terms of the Apache Software License | |
5 | * version 1.1, a copy of which has been included with this distribution in | |
6 | * the LICENSE file. | |
7 | * | |
8 | * $Id: MessageDrivenObject.java 155459 2005-02-26 13:24:44Z dirkv $ | |
9 | */ | |
10 | package org.apache.commons.messagelet; | |
11 | ||
12 | import javax.jms.MessageListener; | |
13 | import javax.servlet.ServletContext; | |
14 | import javax.servlet.ServletException; | |
15 | ||
16 | /** <p><code>MessageDrivenObject</code> is a message driven bean | |
17 | * which is deployed in a Servlet engine as its application server.</p> | |
18 | * | |
19 | * @author <a href="mailto:jstrachan@apache.org">James Strachan</a> | |
20 | * @version $Revision: 155459 $ | |
21 | */ | |
22 | public interface MessageDrivenObject extends MessageListener { | |
23 | ||
24 | /** | |
25 | * Called when this message listener bean is initialized | |
26 | * by the Serlvet container. | |
27 | */ | |
28 | public void init(ServletContext context) throws ServletException; | |
29 | ||
30 | ||
31 | /** | |
32 | * Called when the web application (servlet context) is being | |
33 | * destroyed, giving the bean chance to do a graceful shutdown | |
34 | */ | |
35 | public void destroy(); | |
36 | } | |
37 |