I am investigating the Java Stored Procedure, first to gain better
understanding on what this is,
and also if it would be suitable for a new project which will be running on
Sun One AS7
(Client is Swing)
I have spent about a day reading through many docs, mostly in Oracle site
and also the
past newsgroup discussions. Still, I am not clear really on who this Java
Stored Proc
technology is intended for. Most of the example are toy examples really.
Any consensus on who this technology is aimed at and who should really be
using it?
Would you use Java Stored Proc and have it contain lots of JDBC calls inside
it and have it be
called either by a client or a EJB session bean?
Any info based on experience would be helpful
THANKS 7 5075
"Hawkeye" <me@my-deja.nospamcom> wrote in message news:<iYVXb.409 26$yE5.160182@a ttbi_s54>... I am investigating the Java Stored Procedure, first to gain better understanding on what this is, and also if it would be suitable for a new project which will be running on Sun One AS7 (Client is Swing)
I have spent about a day reading through many docs, mostly in Oracle site and also the past newsgroup discussions. Still, I am not clear really on who this Java Stored Proc technology is intended for. Most of the example are toy examples really. Any consensus on who this technology is aimed at and who should really be using it?
Would you use Java Stored Proc and have it contain lots of JDBC calls inside it and have it be called either by a client or a EJB session bean?
Any info based on experience would be helpful
THANKS
The power of including java in the DB is difficult to explain but easy
to understand for those who know Oracle and have experience in working
on it. Basicaly, it opens a new world of functionalities that can be
implemented inside the database just there, where PL/SQL lacks.
It DOES NOT NEED to make JDBC calls to work, it can work without them
(nevertheless, the built-in JDBC driver works quite fast).
I will give you an example that is currently working OK in our DB:
We needed a CRC to secure output XML files. Did we progammed a PL/SQL
code to implement it? No. We used a java class that does it for us
(CRC) and loaded it into the DB. Then we wrapped the class in a PL/SQL
package and now we can call for the CRC for any object we need
(varchar, clob, etc...). It took us 20 minutes all the process.
Note that this is how many built-in Oracle procedures are stored.
Regards.
"Carlos" <mi************ **@netscape.net > wrote in message
news:1d******** *************** ***@posting.goo gle.com... "Hawkeye" <me@my-deja.nospamcom> wrote in message
news:<iYVXb.409 26$yE5.160182@a ttbi_s54>... I am investigating the Java Stored Procedure, first to gain better understanding on what this is, and also if it would be suitable for a new project which will be running
on Sun One AS7 (Client is Swing)
I have spent about a day reading through many docs, mostly in Oracle
site and also the past newsgroup discussions. Still, I am not clear really on who this
Java Stored Proc technology is intended for. Most of the example are toy examples really. Any consensus on who this technology is aimed at and who should really
be using it?
Would you use Java Stored Proc and have it contain lots of JDBC calls
inside it and have it be called either by a client or a EJB session bean?
Any info based on experience would be helpful
THANKS
The power of including java in the DB is difficult to explain but easy to understand for those who know Oracle and have experience in working on it. Basicaly, it opens a new world of functionalities that can be implemented inside the database just there, where PL/SQL lacks. It DOES NOT NEED to make JDBC calls to work, it can work without them (nevertheless, the built-in JDBC driver works quite fast).
I will give you an example that is currently working OK in our DB:
We needed a CRC to secure output XML files. Did we progammed a PL/SQL code to implement it? No. We used a java class that does it for us (CRC) and loaded it into the DB. Then we wrapped the class in a PL/SQL package and now we can call for the CRC for any object we need (varchar, clob, etc...). It took us 20 minutes all the process.
Does your java code contain any calls to the DB? if so, does it use JDBC
and/or SQLJ?
Or is it just java "helper" code Note that this is how many built-in Oracle procedures are stored.
Regards.
My experience with JSPs is that JDBC calls to the databse are about
3.5X slower than the same SQL implemented in PL/SQL. Oracle Support
confirmed that these numbers are what you should expect when running a
side by side test between PL/SQL and JSPs. If you are going to write
SQL code that will need to perform optimally, JSPs may not be the
answer. If your code does not perform SQL or the overhead of the JDBC
call is acceptable, then java makes a lot of sense.
"Hawkeye" <me@my-deja.nospamcom> wrote in message news:<iYVXb.409 26$yE5.160182@a ttbi_s54>... I am investigating the Java Stored Procedure, first to gain better understanding on what this is, and also if it would be suitable for a new project which will be running on Sun One AS7 (Client is Swing)
I have spent about a day reading through many docs, mostly in Oracle site and also the past newsgroup discussions. Still, I am not clear really on who this Java Stored Proc technology is intended for. Most of the example are toy examples really. Any consensus on who this technology is aimed at and who should really be using it?
Would you use Java Stored Proc and have it contain lots of JDBC calls inside it and have it be called either by a client or a EJB session bean?
Any info based on experience would be helpful
THANKS
I read somewhere in documetation that PL/SQL is better for
database-intensive operations, and JSP for logic-intensive operations.
I can tell you what I use JSP for. We have some XML exchange with our
vendors. Every time new order is created, trigger calls JSP that creates XML
and sends it to servlet on Apache/Tomcat server (outside firewall) which
forwards XML to our vendors. With java classes, it's very easy to program
things like that. Possible that it can be done with PL/SQL, but this way
it's easyer.
Right now, I'm planing to connect my oracle with non-oracle database. Since
I'm on UNIX, lack of ODBC driver prevents me from using heterogeneous
connectivity. I'm trying to load JDBC driver for this non-Oracle database,
and connecto to it through JSP.
What is the DB you need to connect to? I work for an ODBC Driver
vendor (Openlink Software) and we are used in Oracle HS on a regular
basis. The drivers can be less expensive than you might think. Visit
our Website www.openlinksw.com , Or email me directly if you need any
answers.
"x" <x@x.hr> wrote in message news:<c0******* ***@ls219.htnet .hr>... I read somewhere in documetation that PL/SQL is better for database-intensive operations, and JSP for logic-intensive operations.
I can tell you what I use JSP for. We have some XML exchange with our vendors. Every time new order is created, trigger calls JSP that creates XML and sends it to servlet on Apache/Tomcat server (outside firewall) which forwards XML to our vendors. With java classes, it's very easy to program things like that. Possible that it can be done with PL/SQL, but this way it's easyer.
Right now, I'm planing to connect my oracle with non-oracle database. Since I'm on UNIX, lack of ODBC driver prevents me from using heterogeneous connectivity. I'm trying to load JDBC driver for this non-Oracle database, and connecto to it through JSP.
On Mon, 16 Feb 2004, me@my-deja.nospamcom wrote: I am investigating the Java Stored Procedure, first to gain better understanding on what this is, and also if it would be suitable for a new project which will be running on Sun One AS7 (Client is Swing)
I have spent about a day reading through many docs, mostly in Oracle site and also the past newsgroup discussions. Still, I am not clear really on who this Java Stored Proc technology is intended for. Most of the example are toy examples really. Any consensus on who this technology is aimed at and who should really be using it?
I can tell you how we are using it. We are converting an applet
based application into a J2EE with Oracle backend. The old
applet actually has alot of data coded in its java code (They
later tried to retrofit this into a relational store). Instead
of rewriting all of this hardwired code, we are judiciously
loading key java code into Oracle and calling it directly.
Would you use Java Stored Proc and have it contain lots of JDBC calls inside it and have it be called either by a client or a EJB session bean?
I don't think I would recommend the java making jdbc calls. I
would recommend using it when PL/SQL doesn't support your needs.
--
Galen Boyer
FirstSQL/J uses Java as the SP language - static methods are SPs and can be
called anywhere from standard SQL.
See www.firstsql.com
Dave M.
"Hawkeye" <me@my-deja.nospamcom> wrote in message
news:iYVXb.4092 6$yE5.160182@at tbi_s54... I am investigating the Java Stored Procedure, first to gain better understanding on what this is, and also if it would be suitable for a new project which will be running
on Sun One AS7 (Client is Swing)
I have spent about a day reading through many docs, mostly in Oracle site and also the past newsgroup discussions. Still, I am not clear really on who this Java Stored Proc technology is intended for. Most of the example are toy examples really. Any consensus on who this technology is aimed at and who should really be using it?
Would you use Java Stored Proc and have it contain lots of JDBC calls
inside it and have it be called either by a client or a EJB session bean?
Any info based on experience would be helpful
THANKS
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Suresh Tri |
last post by:
Hi all,
I am in search of any Enterprise level Opensource Project that uses
Java Stored Procedures supported by Oracle. I could not find any by
googling. Can any one plese point me to any such projects?
Actually i'm intereseted in knowing to what extent java stored
procedures are used in enterprise applications. A opensource project
will let me look into the code to get better idea.
|
by: Alex |
last post by:
Hi all,
I am trying to install a java stored procedure via the windows
development centre.
The linux box is running 8.1 FP4 as is the windoze platform. If I am
on the linux box i can install the sample jdbc stored procedures o.k.
For the purpose of this test I created a sample procedure that
executes "select * from department" when conected to the sample
database on the linux box.
|
by: Rhino |
last post by:
I've spent the last couple of hours trying to figure out how to debug a Java
stored procedure and am just going in circles. The last straw came when I
got "Cannot open input stream for default" when I launched the IBM
Distributed Debugger via
D:\IBMDebug>idebug.exe -qdaemon -quiport=8000,8001
First, a bit of background.
I am running DB2 V7.2 with Fixpack 9 applied on Windows XP Professional (all
critical service applied). I've written...
|
by: Rhino |
last post by:
Is it possible for a Java Stored Procedure in DB2 V7.2 (Windows) to pass a
Throwable back to the calling program as an OUT parameter?
If yes, what datatype should I use when registering the Throwable as an OUT
parameter and what datatype should I use in the CREATE PROCEDURE and DROP
PROCEDURE statements?
Here's what I tried:
- the method signature for the stored procedure included: Throwable
throwable
|
by: Kumar |
last post by:
Hi
I am trying to recreate a database under the following environments :
From: Solaris with DB2UDB version 7.2 with FP 9
To: Linux with DB2UDB version 7.2 with FP 9
It will be of really a great help if any one help me in step-by-step
guidelines to migrate SPs written in Java & C languages. I have
successfully recreated SQL procedures.
| |
by: Alex |
last post by:
Hi all,
Just been dabbling with java stored procedures and I'm having
problems replacing
System: db2 8.1.4 on RH 7.1 linux system
1). Look at java jdbc samples as supplied with db2 and run the
SpServer and Spclient progs against the default database SAMPLE. And
everything works.
|
by: Kent Lewandowski |
last post by:
hi all,
Recently I wrote some stored procedures using java jdbc code
(admittedly my first stab) and then tried to implement the same within
java packages (for code reuse). I encountered problems doing this.
I wanted to implemented a generic "Helper" class like this:
/**
* Helper
|
by: Rafael Faria |
last post by:
Hi All,
We are starting a large data warehousing project using DB2 8.2 on AIX.
There is a direction to move any new internal development to Java and a
question was raised: Would it be a good idea to have all stored
procedures that we might need (ETL, additional transformers, etc) for
this project and any other project written in Java as opposed to SQL/P?
Does anyone have any number or experience in terms of performance
differences?
|
by: esmith2112 |
last post by:
We all of a sudden find ourselves in dire straits, because we have one
of those mysteries where everything used to work, and apparently, all
of a sudden everything went to pot just in time for a major software
release. All of our Java stored procedures have developed some bad
behavior and we've exhausted our resources in figuring this out.
Symptoms:
1. Store procedures have stopped returning result sets. Whereas before,
it would...
|
by: Michael |
last post by:
Running DB2 v7 UDB ("DB2 v7.1.0.93", "n031208" and "WR21333") on Windows XP,
I am unable to find out why the "Build for Debug" option within Stored
Procedure Builder is not enabled on Java stored procedures. It is enabled
for SQL stored procedures.
It is possible to "Build" and "Run" the Java SPs, it just isn't possible to
click on the "Build for Debug" option. Thanks for any help in advance.
Michael
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look !
Part I. Meaning of...
| |
by: Hystou |
last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it.
First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
|
by: Hystou |
last post by:
Overview:
Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
by: TSSRALBI |
last post by:
Hello
I'm a network technician in training and I need your help.
I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs.
The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
by: adsilva |
last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
|
by: 6302768590 |
last post by:
Hai team
i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
| |
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
|
by: bsmnconsultancy |
last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...
| |