I've got a bizarre problem I can't solve.  First let me describe the architecture:

+--------+             +-------------+   JDBC/  +-----------------+
|        |   CORBA     |Solaris/Alpha| jConnect |     (Alpha)     |
| CLIENT |-------------|   SERVER    |----------| Database SERVER |
|        |             | VisiBroker  |  dblib   |     Sybase      |
+--------+             +-------------+          +-----------------+

 o I have a Java applet on a client which communicates with a server
   via CORBA using VisiBroker 3.2.
 o On the server I use a Java class which calls some legacy C code
   using JNI.
 o The Java class first makes a database access to the database
   server using JDBC (Sybase's jConnect v3.0).  The database server
   is on a separate host (DEC Alpha v3.2)
 o The Java class calls the legacy C code which makes Sybase database
   accesses using dblib.

The particular login/connect sequence is as follows:

     LOGINREC *pLogin;
     DBPROCESS *pdb;
     pLogin = dblogin();
     pdb = dbopen(pLogin, "SERVERNAME");

If I run the ORB on a Solaris it works just fine.

If I run the Java class on the Solaris using a driver (skipping
the ORB) it works just fine.

If I run the Java class on the Alpha using a driver (skipping the
ORB) it works just fine.

But, if I run the ORB on a DEC Alpha (v4.0) the login fails with
a SYEBCONN error (Unable to connect socket -- SQL Server is
unavailable or does not exist).

Well the $SYBASE/interfaces file is fine, I can ISQL on the Alpha
to the database server, there a plenty of available connections,
etc.  I've got a strong suspicion that the problem lies with
VisiBroker's Alpha solution, but it could be Sybase or even the JVM.

Any solutions, recommendations or suggestions would be greatly
appreciated.

Ron Drake
ronald.j.drake@gsc.gte.com