[OCP 17 book] | [OCP 11 book] | [OCA 8 book] [OCP 8 book] [Practice tests book] [Blog] [JavaRanch FAQ] [How To Ask Questions] [Book Promos]
Other Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, TOGAF part 1 and part 2
Originally posted by Jeanne Boyarsky:
Greg,
Welcome to JavaRanch!
I'm moving this to our applets forum. While the question is about both JDBC and applets, people in the applets forum will have the security information about applets accessing databases.
Originally posted by Rachid Fydhan:
Excuse me,
But how can this be useful?I mean succeeding to connect to db through an applet?is this required?
How about connecting to a servlet with HttpConnection ,using http get method (like ajax) and displaying the results returned from the server?
Ensuring ,separating and holding your db access by server will help you maintain the project easyly too.
And also using applets only for UI must be more economic to maintain..
[ November 26, 2007: Message edited by: Rachid Fydhan ]
Originally posted by Greg Triant:
Thanks for the advice...
However I am not getting from the db. I am INSERTING to it. And doing that from a servlet would require me to pass around a pretty huge java object.
Plus, I am not making something for public use. It will simply run on a local network....
BTW, problem still remains
Originally posted by Rachid Fydhan:
Ok. I will try to tell my opinion as simple as i can.
Now you say "you will design it for use of in local network and Wont make the DB Access in APPLICATION SERVER..."
So what for an APPLICATION SERVER is used?
Only for displaying your applet?
As app. server sent applet to your win.exploerer,then is all job of app. server finishes?Is that all, it has to do? Nothing else?
I think this can be designed as standalone Swing application too.
No need to run an Application server.
Am i right?
Originally posted by Rachid Fydhan:
Trying to connect trough Class.ForName and creating Connection by DriverManager might do that...
But one thing is that i am afraid of is Driver classes classpath may make issues to you too ...
(
Originally posted by Jignesh Patel:
He can put his driver classes jar file in ext folder of the JDK so that he doesn't need to define class path. Remember JDK first loads bootstrap classes(java.lang) then extension classes and then go for classpath.
"how to sent classes to client machine together with applet load"?
Help gets you when you need it!
You know it is dark times when the trees riot. I think this tiny ad is their leader:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|