This week's book giveaway is in the Java 8 forum.
We're giving away four copies of Java 8 in Action and have Raoul-Gabriel Urma, Mario Fusco, and Alan Mycroft on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Using views instead of SQL queries in SB? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Using views instead of SQL queries in SB?" Watch "Using views instead of SQL queries in SB?" New topic
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
 
jQuery in Action, 2nd edition
 
subject: Using views instead of SQL queries in SB?
 
Similar Threads
dynamic connection Pool Problem
App startup issue: Getting objects into an L2 cache.
Hibernate - Query language independency
JSF scalability and performance issues... please help... important
Is my MVC design under RMI reasonable?