-->
These old forums are deprecated now and set to read-only. We are waiting for you on our new forums!
More modern, Discourse-based and with GitHub/Google/Twitter authentication built-in.

All times are UTC - 5 hours [ DST ]



Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 
Author Message
 Post subject: running hibernate as oracle server-side java code?
PostPosted: Thu Feb 26, 2004 5:12 am 
Newbie

Joined: Sat Jan 10, 2004 8:02 am
Posts: 15
Location: Munich, Germany
Has anybody successfully used hibernate in a oracle server-side application?

Since Oracle 8.1.5 you can deploy non-gui java code directly on the db server
to improve the performance of your business logic (by reducing the network overhead).

There are only some limitations on that code, so I am wondering if hibernate can be used for this.

The limitations of the server-side code are (as far as I know):
- no GUI (only business logic)
- forced to use one of two oracle jdbc driver (jdbc.oracle.thin or jdbc.oracle.oci8)
- the connection is implicit (no explicit init possible)
- the connection cannot be closed
- the conneciton must be to the db in which the code is running

Is this a problem for hibernate?

Thx,
Juergen


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 26, 2004 8:37 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Seems not. Check the JVM version too.

What does that mean
the connection is implicit

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 26, 2004 8:38 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
Note that this architecture is not really recommanded, since it's not scalable at all. And it's very expensive: a DB CPU license is more expensive than others

_________________
Emmanuel


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 26, 2004 9:17 am 
Newbie

Joined: Sat Jan 10, 2004 8:02 am
Posts: 15
Location: Munich, Germany
>> what does that mean the connection is implicit?

oracle provides an instance of the connection object which is ready to use...

>> this architecture is not really recommanded, since it's not scalable at all. And it's very expensive: a DB CPU license is more expensive than others

that's right, that's why it is only useful for business logic with heavy db i/o to improve the performance and to be able to use java (instead of pl/sql) if pl/sql is to complicated to implement logic (like difficult calculations)


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 26, 2004 9:19 am 
Newbie

Joined: Sat Jan 10, 2004 8:02 am
Posts: 15
Location: Munich, Germany
My first try was not successful:

There seems to be a problem with the jar files:

Archives may NOT be compressed...

Furthermore I hope that the byte code manipulation for the proxies
doesn't make problems...


Top
 Profile  
 
 Post subject:
PostPosted: Thu Feb 26, 2004 9:42 am 
Hibernate Team
Hibernate Team

Joined: Sun Sep 14, 2003 3:54 am
Posts: 7256
Location: Paris, France
The connection provided by Oracle should be given to Hibernate as a user tx

_________________
Emmanuel


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
© Copyright 2014, Red Hat Inc. All rights reserved. JBoss and Hibernate are registered trademarks and servicemarks of Red Hat, Inc.