0 Replies Latest reply: Nov 18, 2013 8:51 AM by Leaf Woods RSS

    Is this class thread safe: com.orionserver.http.OrionHttpJspPage

    Leaf Woods

      Hello All

       

      We use JDeveloper 10.1.3.4 to develop a web application. We deploy the application on OC4J running on linux. We put java code in the jsp page directly. In the jsp page, we have general java code, for example, <% String invoice_id = ""; %>. Here the variable invoice_id is an instance variable in jsp. We also have tag such as <jbo:ApplicationModule> and <jbo:DataSource> to handle database transactions. We have such a jsp called paymentApproved.jsp. This jsp is called by a third party gateway. In other words, the jsp is called from outside of our application. My question is, in such a scenario, is this jsp paymentApproved.jsp thread safe? I checked the translated jsp page, the class extends com.orionserver.http.OrionHttpJspPage, and the logic is in this method:


      public void _jspService(HttpServletRequest request, HttpServletResponse response) throws java.io.IOException, ServletException

       

      Specifically, I am not sure whether an instance variable defined in such a jsp is thread safe while multiple requests coming in to call the page? Or is there anyway to test it? Thanks

       

      Leaf