|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Object
|
+--javax.servlet.GenericServlet
|
+--javax.servlet.http.HttpServlet
|
+--org.openeai.implementations.servlets.jmsrelay.JmsRelayServlet
The JmsRelay servlet is a MessageRelay used to allow applications that are not Java aware or XML aware to participate in integrations via messaging using a foreign message format and a foreign transport. In this case, the format is "name/value delimited" format and the protocol is HTTP or HTTPS. This is in contrast to the message format and transport specified by the OpenEAI protocol (XML and JMS). The relay servlet takes the foreign format that it was sent via the foreign transport and converts the data into an Enteprise Message (xml). Then it takes the enterprise message and performs the action specified in the data it was sent and processes the result via JMS. Finally, it converts the enterprise message result back into the foreign format and returns it to the calling application via the foreign transport (HTTP or HTTPS in this case).
Note, this reference implementation does not currently use an OpenEAI EnterpriseLayoutManager to convert the data from Raw data to XML and back. Instead, that logic is coded directly into this class. In the future, it will use an EnterpriseLayoutManager impementation to perform these conversions.
These are the configuration parameters associated to this servlet.
| Property Name | Required | Description |
|---|---|---|
| ProducerConfigs | yes | This is the Sync-Error-Sync publisher that the Router will use when/if there are any errors while processing a message it consumes. It should be configured accordingly. All SyncCommand implementations require a PubSubProducer that must be named 'SyncErrorPublisher' that they use to publish Sync-Error-Sync message if errors occur when they're processing the message. This is useful for SyncCommand implementations in particular because they're generally ran unattended. |
| Constructor Summary | |
JmsRelayServlet()
|
|
| Method Summary | |
java.lang.String |
getServletInfo()
Get Servlet information |
void |
init(javax.servlet.ServletConfig config)
Load properities file associated to the servlet and build the AppConfig object from the contents of the OpenEAI Deployment document referred to by the properties file. |
void |
service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse httpResponse)
Authenticate the user making the request. |
| Methods inherited from class javax.servlet.http.HttpServlet |
doDelete, doGet, doOptions, doPost, doPut, doTrace, getLastModified, service |
| Methods inherited from class javax.servlet.GenericServlet |
destroy, getInitParameter, getInitParameterNames, getServletConfig, getServletContext, getServletName, init, log, log |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public JmsRelayServlet()
| Method Detail |
public void init(javax.servlet.ServletConfig config)
throws javax.servlet.ServletException
init in interface javax.servlet.Servletinit in class javax.servlet.GenericServletjavax.servlet.ServletException
public void service(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse httpResponse)
throws javax.servlet.ServletException,
java.io.IOException
service in class javax.servlet.http.HttpServletjavax.servlet.ServletException
java.io.IOExceptionpublic java.lang.String getServletInfo()
getServletInfo in interface javax.servlet.ServletgetServletInfo in class javax.servlet.GenericServlet
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||