27.04.2013 Views

330 Java Tips.pdf - FTP Server

330 Java Tips.pdf - FTP Server

330 Java Tips.pdf - FTP Server

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Databases & beans<br />

Receive our newsletter with new tips! Almost 6,000 subscribers (by June 2001) can not be wrong!<br />

They read our tips every week! To subscribe to The <strong>Java</strong> FAQ Daily send empty e-mail to:<br />

javafaq-tips-subscribe@topica.com or visit at:<br />

http://www.topica.com/lists/javafaq-tips/<br />

Databases & beans<br />

Q: Anybody does know a freeware JDBC driver for a dsn-less connection to MS<br />

SQL-<strong>Server</strong>? Would even consider a "cheapware" version.<br />

Answer: Go to http://industry.java.sun.com/products/jdbc/drivers and search for<br />

Microsoft SQL <strong>Server</strong>. Any Type4 (i.e. pure <strong>Java</strong>) driver should work without a DSN.<br />

The only free one I'm aware of is at http://www.freetds.org - but it is rather limited in<br />

what it can do. You'd need to try it out to see whether it fits your requirements.<br />

--<br />

Stefan<br />

P.S. DSN - Data Source Name<br />

Q: I just want to know which programs and virtual machines you have to have to<br />

make and run enterprise java beans...<br />

Answer: To compile and run Enterprise <strong>Java</strong>Beans, you need a couple of things.<br />

Visit us here and you will find<br />

much more tips!<br />

First, you need the J2EE SDK. This kit includes APIs full of packages which are<br />

considered extensions to the standard <strong>Java</strong> language APIs, as well as other tools,<br />

which come with the J2SE SDK, which you should already have. Install the SDK and<br />

make sure its jar file is in your development environment's classpath.<br />

Second, you need a container, which in this case you can also refer to as an<br />

application server, though technically a container is just one part of the server. The<br />

container acts as a liaison between the client object and the Enterprise <strong>Java</strong>Bean.<br />

When you talk to an Enterprise <strong>Java</strong>Bean, you actually talk to a proxy (a substitute),<br />

and the proxy, which knows how to do networking stuff, talks to the container, which<br />

in turn talks to the actual implementation object which is what you think of when you<br />

think of an Enterprise <strong>Java</strong>Bean.<br />

file:///F|/350_t/350_tips/database_beans.htm (1 of 2) [2002-02-27 21:17:52]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!