Hi,
I am using a type 4 driver for connecting to MySQL database.The Class
file(driver file) is being detected, but I am not able to connect to the
database.There are no exceptions being thrown stating that connection is not
being created.Can any body send me some sample code as to how to connec
Hi,
I need to wrap C++ classes istream and ostream of the GNU libstc++ with
Java classes, so that a C++ library can for example read from an istream
that maps to an InputStream on the Java side.
Has anybody done this before? Are there existing implementations?
Thanks in advance,
Matthias
--
Ma
how to close server socket without throwing an
exception?
if i call close then it throws exception which gets
caught in catch 1 not in catch 2
can anybody explain
ServerSocket ss = new
ServerSocket(iPort);
try
{
ss.accept();
}
catch(Exception e) /* 1
*/
{
///
}
try
{
ss.c
how to close server socket without throwing an
exception?
if i call close then it throws exception which gets
caught in catch 1 not in catch 2
can anybody explain
ServerSocket ss = new
ServerSocket(iPort);
try
{
ss.accept();
}
catch(Exception e) /* 1
*/
{
///
}
try
{
ss.clos
Your best bet is to take a look at the Gnu Java project. They
provide a Native C++ interface called CNI that would really
help you out.
http://sourceware.cygnus.com/java/
http://sourceware.cygnus.com/java/papers/cni/t1.html
Mo Dejong
Red Hat Inc.
On Sat, 13 May 2000, Matthias Pfisterer wrote:
Hope the code below helps. Also if you're using a new version of java (1.2
or above, I believe) make sure you're using the noopt version of the class
files.
try
{
Class.forName("twz1.jdbc.mysql.jdbcMysqlDriver").newInstance();
}
catch(Exception e)
{
this.err
Miles Sabin <[EMAIL PROTECTED]> writes:
> Agreed. One big headache is the fact that asynchronous IO
> (POSIX or otherwise) is typically going to require that buffers
> be at fixed addresses, ...
> I guess that in principle it ought to be possible to tweak
> JVMs to special-case a priviledged clas