Question about Sun Java Programming Language (cdj-275)

1 Answer

Hello sir, How do we link a java applet code to an oracle database..

Posted by on

Ad

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    Corporal:

    An expert that hasĀ over 10 points.

    Mayor:

    An expert whose answer gotĀ voted for 2 times.

    Problem Solver:

    An expert who has answered 5 questions.

  • Contributor
  • 14 Answers

The java applet code can only communicate with the server the applet was loaded from (unless it is signed and trusted by the browser).

Then, you need one of the following : Either
*) Your database server will need to be the same as your web server (and open to the world). This is not recommended at all, for security reasons mainly, but also performance reasons.
*) You will need some server side scripts (php and/or cgi) to handle specific requests from the applet and send the information back. (Give some thought to the fact that people might access these scripts without the applet, and will be able to see all the communication between applet and script)

Is there a specific reason for using an applet, rather than javascript/AJAX ? I ask because more browsers support the latter than the former.

Posted on May 28, 2010

Ad

1 Suggested Answer

6ya6ya
  • 2 Answers

SOURCE: I have freestanding Series 8 dishwasher. Lately during the filling cycle water hammer is occurring. How can this be resolved

Hi,
a 6ya expert can help you resolve that issue over the phone in a minute or two.
Best thing about this new service is that you are never placed on hold and get to talk to real repairmen in the US.
New users get 2 Free calls (no credit card required) and instant help on almost anything you can think of (from cars to computers, appliances, handyman, and even pets).
click here to download the app (for users in the US for now) and get all the help you need.
Goodluck!

Posted on Jan 02, 2017

Ad

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

3 Answers

I want to install oracle 8i in windows 7, how i do this?


sir, i have a window7 in all in one hp but there is a software called mstar which run on oracle 8i when i install the oracle 8i there is a problem and show dll file corrupted. Pls tell me the solution because my client want it very urgently and i am not able to install and run the programm.

Feb 26, 2010 | Veritas Cluster Server for Solaris Oracle...

1 Answer

Sir,How to write the code in visual basic to create database in oracle? please help me.


Hi
I guess when you say database thats what you mean and not schema . the terms of database and schema are different from one db to another .
Usually you don't create database from vb or other language, although i guess you can do that .
follow the commnds in the folowing link you just have to embed them in your vb code .

good luck


Mar 03, 2009 | Onkyo TX-SR705 Receiver

1 Answer

Sir how to set a messagebox in vb.net


To display a MessageBox:

MessageBox.Show("This is your messahe text!", "Title of Your MessageBox", MessageBoxButtons.OK, MessageBoxIcon.Exclamation)

Regarding connecting to an Oracle database, you'd have to search for the connection string.

Feb 15, 2009 | Keystone Active Server Pages (ASP)/Visual...

1 Answer

How to write jdbc connections


http://www.jdbc-tutorial.com/

window.google_render_ad();

welcome_title_image.gif Java JDBC Tutorial Java JDBC Tutorial
The JDBC ( Java Database Connectivity) API defines interfaces and classes for writing database applications in Java by making database connections. Using JDBC you can send SQL, PL/SQL statements to almost any relational database. JDBC is a Java API for executing SQL statements and supports basic SQL functionality. It provides RDBMS access by allowing you to embed SQL inside Java code. Because Java can run on a thin client, applets embedded in Web pages can contain downloadable JDBC code to enable remote database access. You will learn how to create a table, insert values into it, query the table, retrieve results, and update the table with the help of a JDBC Program example.


window.google_render_ad();
Although JDBC was designed specifically to provide a Java interface to relational databases, you may find that you need to write Java code to access non-relational databases as well.
JDBC Architecture jdbc.jpg Java application calls the JDBC library. JDBC loads a driver which talks to the database. We can change database engines without changing database code.
JDBC Basics - Java Database Connectivity Steps Before you can create a java jdbc connection to the database, you must first import the
java.sql package.
import java.sql.*; The star ( * ) indicates that all of the classes in the package java.sql are to be imported.
1. Loading a database driver,
In this step of the jdbc connection process, we load the driver class by calling Class.forName() with the Driver class name as an argument. Once loaded, the Driver class creates an instance of itself. A client can connect to Database Server through JDBC Driver. Since most of the Database servers support ODBC driver therefore JDBC-ODBC Bridge driver is commonly used.
The return type of the Class.forName (String ClassName) method is “Class”. Class is a class in
java.lang package.
try { Class.forName(”sun.jdbc.odbc.JdbcOdbcDriver”); //Or any other driver } catch(Exception x){ System.out.println( “Unable to load the driver class!” ); } 2. Creating a oracle jdbc Connection

The JDBC DriverManager class defines objects which can connect Java applications to a JDBC driver. DriverManager is considered the backbone of JDBC architecture. DriverManager class manages the JDBC drivers that are installed on the system. Its getConnection() method is used to establish a connection to a database. It uses a username, password, and a jdbc url to establish a connection to the database and returns a connection object. A jdbc Connection represents a session/connection with a specific database. Within the context of a Connection, SQL, PL/SQL statements are executed and results are returned. An application can have one or more connections with a single database, or it can have many connections with different databases. A Connection object provides metadata i.e. information about the database, tables, and fields. It also contains methods to deal with transactions.
JDBC URL Syntax:: jdbc: <subprotocol>: <subname> JDBC URL Example:: jdbc: <subprotocol>: <subname>•Each driver

Feb 01, 2009 | Microsoft Windows XP Home Edition

1 Answer

Unable to View Java Applet


"load: class JFI.class not found."
Based on the console output, it means that it cannot find the java applet class. In other words, the applet is missing on the server side. There is nothing that you can do about it, unless you know the person who created the applet. Good luck :)

Dec 23, 2008 | ArcMedia JavaScript Source Code 3000 Pro...

1 Answer

Oracle SQL Error


Does it connect after the error ?. First try to connect from your client to Oracle server using SQL plus client.

Second - Do a tnsping <server name>

This will give you the correct Host name, SID and Port number.

Make sure that your JDBC connection parameters match with the actual connection from TNS output

Sep 04, 2008 | Oracle 10g Database Standard (ODBSEONUPP0)

1 Answer

I want to know the meaning northgate/iworld, the way it's used and what it is used for


It is a distributed database application (Sx3/Northgate iWorld) that went live in May 2004 for 100+ users. Issues included; project planning, risk assessment, data cleansing, data loading (in the region of 50 million records), data archiving, development of output, testing, interfacing, security, end-user training, procedural change, progress reports, presentations and the configuration of both the back-end server and the end-user WUI (Web User Interface). The system is three-tiered, with a back-end Oracle database linked to an application server feeding a JVM/J-initiator applet on the client machine.

Apr 27, 2008 | Computers & Internet

1 Answer

Java code for frames


sir,
i click on c drive with double click pc ask open with what reasons

Mar 14, 2008 | Compaq Presario M2000 Notebook

1 Answer

MS JVM and Sun JVM problem


Have you tried the oracle java site.

https://java.com/en/download/

you can download the latest or archived Java Runtime Environment or Java Development Kit from this site.

oracle obtained Java as part of the Sun buyout

Mar 17, 2017 | Computers & Internet

Not finding what you are looking for?
Computers & Internet Logo

Related Topics:

156 people viewed this question

Ask a Question

Usually answered in minutes!

Top Sun Computers & Internet Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18402 Answers

Cosma Papouis
Cosma Papouis

Level 3 Expert

409 Answers

Robin Hill
Robin Hill

Level 3 Expert

1263 Answers

Are you a Sun Computer and Internet Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...