Home » Developer & Programmer » Forms » Java Beans in forms (Win -8 ,Forms 11g)
Java Beans in forms [message #629382] Mon, 08 December 2014 05:27 Go to next message
Xandot
Messages: 235
Registered: January 2014
Location: India
Senior Member
Hello all,

Which is the following best via to use java in oracle :-
1- Using java beans in oracle forms?
2- Using java function in oracle DB?


Thanks,
Xandot
Re: Java Beans in forms [message #629383 is a reply to message #629382] Mon, 08 December 2014 05:31 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
I don't know much about java but I'm pretty sure the answer depends on what you want the java to do.
Re: Java Beans in forms [message #629384 is a reply to message #629383] Mon, 08 December 2014 05:37 Go to previous messageGo to next message
Xandot
Messages: 235
Registered: January 2014
Location: India
Senior Member
I want to call java class's from the jar files. So I just want to know which one is the best via to do this.

[Updated on: Mon, 08 December 2014 05:37]

Report message to a moderator

Re: Java Beans in forms [message #629385 is a reply to message #629384] Mon, 08 December 2014 05:40 Go to previous messageGo to next message
cookiemonster
Messages: 13920
Registered: September 2008
Location: Rainy Manchester
Senior Member
I don't see how that changes my point.
Re: Java Beans in forms [message #629408 is a reply to message #629384] Mon, 08 December 2014 12:46 Go to previous messageGo to next message
CraigB
Messages: 386
Registered: August 2014
Location: Utah, USA
Senior Member
Xandot wrote on Mon, 08 December 2014 04:37
I want to call java class's from the jar files. So I just want to know which one is the best via to do this.

This still doesn't tell what you want to do through Java.
Re: Java Beans in forms [message #629799 is a reply to message #629408] Tue, 16 December 2014 03:55 Go to previous messageGo to next message
Xandot
Messages: 235
Registered: January 2014
Location: India
Senior Member
For example in java class:-

public class Add
{
   public int addition (int a , int b)
   {
            return(a+b);
  }
}


I want to call this java class from my Oracle forms. In Forms I have two input and one output field and one ADD button. on ADD button i want to call java class which is responsible for return the addition.

Please help me out .
Re: Java Beans in forms [message #629847 is a reply to message #629799] Tue, 16 December 2014 08:45 Go to previous messageGo to next message
CraigB
Messages: 386
Registered: August 2014
Location: Utah, USA
Senior Member
Using Java to perform a simple calculation doesn't make any sense. There is no need to use Java for something PL/SQL can do for you without the overhead of the Javabean.

Now, if you want to extend Forms functionality by changing the look and feel of a Form - then using a Javabean in your Form would be the way to go. If you wanted to subscribe to some type of web service and display the output of that web service in a Form, then using a Javabean in your Form would be the way to go. If you want to use Java to perform some type of process that stores the result in a table or causes some other action to be scheduled in the Database, then using Java in the database would be the way to go.

A simple Internet search on "Examples of using Java with Oracle database" or "Examples of using Java with Oracle Forms" would have given you some ideas of how and when you should use Java with Oracle.
Re: Java Beans in forms [message #629901 is a reply to message #629847] Wed, 17 December 2014 03:20 Go to previous message
Xandot
Messages: 235
Registered: January 2014
Location: India
Senior Member
Thanks CraigB...
Previous Topic: 305500 non-oracle-exception in oracle form
Next Topic: How to Shutdown oracle Database Through Forms 6i
Goto Forum:
  


Current Time: Fri Apr 19 23:15:48 CDT 2024