Subject | Re: [firebird-support] UDF |
---|---|
Author | David Johnson |
Post date | 2005-06-24T12:24:13Z |
I take this back. I can see how and why.
You would wrap the embedded engine (DLL) in a JNI wrapper.
Your UDF would be JNI calls back to the JVM that owns the embedded
piece.
This would give your Java app a fast embedded engine, whether your are
running a local desktop app or a J2EE server app.
Why - in this application, your JVM loading overhead has already been
done, so why go to the overhead of another language.
This would only be useful for Java applications with the embedded model.
The technique would not allow you to write a UDF for classic or
superserver installations.
You would wrap the embedded engine (DLL) in a JNI wrapper.
Your UDF would be JNI calls back to the JVM that owns the embedded
piece.
This would give your Java app a fast embedded engine, whether your are
running a local desktop app or a J2EE server app.
Why - in this application, your JVM loading overhead has already been
done, so why go to the overhead of another language.
This would only be useful for Java applications with the embedded model.
The technique would not allow you to write a UDF for classic or
superserver installations.
On Fri, 2005-06-24 at 07:12 -0500, David Johnson wrote:
> A Java UDF would not truly be a java UDF. It would be C with either a
> Sockets connection to Java, or some sort of Java -Firebird - C JNI back
> to java wrapper thing.
>
> I can see how it could be done, but it would be an awfully complicated
> thing to try to do, and I'm not sure why you would do it.
>
> Oracle has hooks so you can use Java for UDF type work. Maybe you got
> them confused? (shot in the dark)
>
> On Thu, 2005-06-23 at 12:37 +0000, SebastiĆ£o Carlos Santos wrote:
> > Somebody ja wrote udf's in java for firebird 1.5? It is possible?
> > Where meeting reference or examples on the subject?
> >
> >
> >
> >
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >
> > Visit http://firebird.sourceforge.net and click the Resources item
> > on the main (top) menu. Try Knowledgebase and FAQ links !
> >
> > Also search the knowledgebases at http://www.ibphoenix.com
> >
> > ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
> >
> > Yahoo! Groups Links
> >
> >
> >
> >
> >
> >
>
>
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Visit http://firebird.sourceforge.net and click the Resources item
> on the main (top) menu. Try Knowledgebase and FAQ links !
>
> Also search the knowledgebases at http://www.ibphoenix.com
>
> ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
>
> Yahoo! Groups Links
>
>
>
>
>