| Author |
Using views instead of SQL queries in SB?
|
Amit Shanker
Greenhorn
Joined: Mar 08, 2003
Posts: 23
|
|
Hi All, In our application, we fire SQL queries from SB methods. Now whenever we change the query, we need to compile the SB and restart the application server. To avoid the above scenario, we are planning to create oracle views and to fetch data just fire a "SELECT" on the view. If the query changes, we just have to modify the view, so there is no need to modify SB or restart the application server. Are there any problems in using views or calling them through SB methods?? Your experience and answers will be highly appreciated. We are using iPlanet Application server version 6.5 SP1 and database is Oracle 8i. Thank you very much. Amit.
|
 |
Paul Sturrock
Bartender
Joined: Apr 14, 2004
Posts: 10336
|
|
|
Its fine so long as your application is read only I think. There are however restrictions when it comes to updating data through views (search your oracle documentation for "updatable views").
|
JavaRanch FAQ HowToAskQuestionsOnJavaRanch
|
 |
 |
|
|
subject: Using views instead of SQL queries in SB?
|
|
|