aspose file tools*
The moose likes JDBC and the fly likes jdbc with applets Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Databases » JDBC
Reply locked New topic
Author

jdbc with applets

zack chancery
Ranch Hand

Joined: Aug 19, 2004
Posts: 33
i intend on using a java applet in conjuction with a mySql databse using jdbc. Before i throw myself into it, can this be done?
and if so is there anything i should watch out for?
or additionally need to install or download?
best regards,
zapf
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61653
    
  67

"zapf chancery",

We're pleased to have you here with us on the Ranch, but there are a few rules that need to be followed, and one is that proper names are required. Please take a look at the JavaRanch Naming Policy and adjust your display name to match it.

In particular, your display name must be a first and a last name separated by a space character, and must not be obviously fictitious.

Thanks!
bear
Forum Bartender


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
zack chancery
Ranch Hand

Joined: Aug 19, 2004
Posts: 33
i intend on using a java applet in conjuction with a mySql databse using jdbc. Before i throw myself into it, can this be done?
and if so is there anything i should watch out for?
or additionally need to install or download?
best regards,
zack,

apologies for the above!
Julian Kennedy
Ranch Hand

Joined: Aug 02, 2004
Posts: 823
I think the gotchas are on the Applet site rather than on the JDBC side, so you may be better off posting in the Applets forum. Here are a few things to bear in mind that I've picked up from using this forum (I've never used Applets myself, however):
  • You'll need to use a type 3 (pure Java, net protocol) JDBC driver
  • You can only connect to a DB via the same location that served the applet
  • I've seen first-timers struggling with JNDI and javax.sql.DataSource; something to do with configuration parameters

  • It is possible. Hope you find this useful.

    Jules
    zack chancery
    Ranch Hand

    Joined: Aug 19, 2004
    Posts: 33
    thanks
    Bear Bibeault
    Author and ninkuma
    Marshal

    Joined: Jan 10, 2002
    Posts: 61653
        
      67

    Please continue any discussion here.

    Julian, please don't encourage people to cross-post in other forums. Rather, ask a bartender to move the post. Makes less work for us. Thanks!
     
    wood burning stoves
     
    subject: jdbc with applets