Unix Technical Forum

9i trigger to call a java program, outside oracle jvm

This is a discussion on 9i trigger to call a java program, outside oracle jvm within the Oracle Miscellaneous forums, part of the Oracle Database category; --> We need an oracle trigger or java stored procedure to be able to call a java application outside of ...


Go Back   Unix Technical Forum > Database Server Software > Oracle Database > Oracle Miscellaneous

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-07-2008, 10:47 PM
chris
 
Posts: n/a
Default 9i trigger to call a java program, outside oracle jvm

We need an oracle trigger or java stored procedure to be able to call
a java application outside of the oracle jvm. Can this be done?

From sun website, looks like JSP can only call java program inside
oracle jvm. They also list a way around this, by using appserver and
webservices approach.

Anything else?

thanks.

c
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-07-2008, 10:47 PM
Richard Kuhler
 
Posts: n/a
Default Re: 9i trigger to call a java program, outside oracle jvm

chris wrote:
> We need an oracle trigger or java stored procedure to be able to call
> a java application outside of the oracle jvm. Can this be done?
>
> From sun website, looks like JSP can only call java program inside
> oracle jvm. They also list a way around this, by using appserver and
> webservices approach.
>
> Anything else?


Well, presumably you're trying to avoid starting a new VM for this "java
application" or you'd just use Runtime.exec(). The only way I can think
of avoiding that is to have something that looks like a service running.
It's not particularly difficult to roll your own simple SOAP
substitute using UTL_TCP and a Java daemon.

--
Richard Kuhler

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-07-2008, 10:48 PM
Frank Piron
 
Posts: n/a
Default Re: 9i trigger to call a java program, outside oracle jvm

Am Tue, 09 Nov 2004 22:47:05 GMT schrieb Richard Kuhler
<noone@nowhere.com>:

> chris wrote:
>> We need an oracle trigger or java stored procedure to be able to call
>> a java application outside of the oracle jvm. Can this be done?
>>
>> From sun website, looks like JSP can only call java program inside
>> oracle jvm. They also list a way around this, by using appserver and
>> webservices approach.
>>
>> Anything else?


You may call the java application from an external library (.dll or .so).
See "External Routines" in "Application Developer’s Guide - Fundamentals"
from the Oracle Documentation.

--
Frank Piron,
etfrankatkonaddotn
(leftrotate two)
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-07-2008, 10:51 PM
steve
 
Posts: n/a
Default Re: 9i trigger to call a java program, outside oracle jvm

On Wed, 10 Nov 2004 05:40:11 +0800, chris wrote
(in article <c452700a.0411091340.609edd3c@posting.google.com>) :

> We need an oracle trigger or java stored procedure to be able to call
> a java application outside of the oracle jvm. Can this be done?
>
> From sun website, looks like JSP can only call java program inside
> oracle jvm. They also list a way around this, by using appserver and
> webservices approach.
>
> Anything else?
>
> thanks.
>
> c


you can call it using normal java calls.
just supply the classpath.
or if you want to get clever , you can compile it from within the , using the
java compiler outside the vm, then call it.

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 05:58 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com