Hello,
I prefer, generally, let the beans do their jobs. In my schema, beans do the
connection to databases (job logic) and jsps call methods of them(consumer logic).
I think that's a better pattern. With Oracle databases, it works fine.
Bye
sandarbh a �crit :
> Hi all,
>
> I am having the following code on my jsp page.
>
> ***********************************************************
> Driver myDriver = (Driver)
> Class.forName("weblogic.jdbc.pool.Driver").newInstance();
> Properties props = new Properties();
> props.put("connectionPoolID", "dashboardPool");
> Connection conn1 = myDriver.connect("jdbc:weblogic:pool", props);
>
> System.out.println("Connection started");
>
> *****************************
> then i am sending values to a bean in the following fashion
>
> <% errorFlag = schedule.checkFeedSchedule(feedTag,myDriver,conn1);%>
>
> *************************************
> This is taking time , is this approach correct?? or is there a better way
> than this.
>
> please help
>
> Regards,
> Sandarbh
>
> ===========================================================================
> To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
> For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
> Some relevant FAQs on JSP/Servlets can be found at:
>
> http://java.sun.com/products/jsp/faq.html
> http://www.esperanto.org.nz/jsp/jspfaq.html
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
> http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets
--
---------------
Alexandre Equoy
ALICANTE
Parc Eurasant�, 180 Ave. Eug�ne Avin�e
59120 LOOS
T�l: 03 28 55 92 50 - Fax: 03 28 55 92 51
===========================================================================
To unsubscribe: mailto [EMAIL PROTECTED] with body: "signoff JSP-INTEREST".
For digest: mailto [EMAIL PROTECTED] with body: "set JSP-INTEREST DIGEST".
Some relevant FAQs on JSP/Servlets can be found at:
http://java.sun.com/products/jsp/faq.html
http://www.esperanto.org.nz/jsp/jspfaq.html
http://www.jguru.com/jguru/faq/faqpage.jsp?name=JSP
http://www.jguru.com/jguru/faq/faqpage.jsp?name=Servlets