| org.objectweb.jonas.webapp.jonasadmin.deploy.BaseDeployAction org.objectweb.jonas.webapp.jonasadmin.resourceadapter.ApplyCreateResourceAdapterAction
ApplyCreateResourceAdapterAction | public class ApplyCreateResourceAdapterAction extends BaseDeployAction (Code) | | The action used when a Resource Adapter is created.
This uses a Velocity template to build up the XML and creates a RAR file.
author: Patrick Smith |
Method Summary | |
protected String | createEmptyJonasRa() Creates an empty jonas-ra.xml content header. | protected void | createJonasRa(CreateResourceAdapterForm oForm, VelocityEngine ve, String serverName) Create a ra.xml file (from a Velocity template) and adds it to a RAR file. | protected void | createRa(CreateResourceAdapterForm oForm, VelocityEngine ve, String serverName) Create a ra.xml file (from a Velocity template) and adds it to a RAR file. | public ActionForward | executeAction(ActionMapping p_Mapping, ActionForm p_Form, HttpServletRequest p_Request, HttpServletResponse p_Response) The action to use when the Struts action is executed.
Create the appropriate RAR and forward to the RAR configuration tool
if no errors exist.
Parameters: p_Mapping - The ActionMapping for the action. Parameters: p_Form - The form used in this action. Parameters: p_Request - HTTP Request for the action. Parameters: p_Response - The HTTP Response. throws: IOException - , ServletException if the there is a problem with thetemplate files, creation of the RARs, or a servlet error. |
createEmptyJonasRa | protected String createEmptyJonasRa()(Code) | | Creates an empty jonas-ra.xml content header.
The content of an empty jonas-ra XML file. |
createJonasRa | protected void createJonasRa(CreateResourceAdapterForm oForm, VelocityEngine ve, String serverName) throws Exception(Code) | | Create a ra.xml file (from a Velocity template) and adds it to a RAR file.
Parameters: oForm - The struts form used in this Struts action. Parameters: ve - The Velocity engine that contains the appropriate template. throws: Exception - If the invokation of creating the RAR or adding a file to the RAR fails. |
createRa | protected void createRa(CreateResourceAdapterForm oForm, VelocityEngine ve, String serverName) throws Exception(Code) | | Create a ra.xml file (from a Velocity template) and adds it to a RAR file.
Parameters: oForm - The struts form used in this Struts action. Parameters: ve - The Velocity engine that contains the appropriate template. throws: Exception - If the invokation of creating the RAR or adding a file to the RAR fails. |
executeAction | public ActionForward executeAction(ActionMapping p_Mapping, ActionForm p_Form, HttpServletRequest p_Request, HttpServletResponse p_Response) throws IOException, ServletException(Code) | | The action to use when the Struts action is executed.
Create the appropriate RAR and forward to the RAR configuration tool
if no errors exist.
Parameters: p_Mapping - The ActionMapping for the action. Parameters: p_Form - The form used in this action. Parameters: p_Request - HTTP Request for the action. Parameters: p_Response - The HTTP Response. throws: IOException - , ServletException if the there is a problem with thetemplate files, creation of the RARs, or a servlet error. A forward to the next Struts page. |
|
|