Fog Creek Software
Discussion Board

Delphi/J2EE Integration

We are currently trying to link up our Delphi 7 application to some existing EJB's.  Has anyone here tackled anything like this before?  The way I see it, we have a few possibilities:

1) Create a HTTP Transport layer (have a servlet call the EJB and format the results into a binary/XML formatted response for the client)

2) Create a java app that listens on a socket for a connection from the Delphi client and make it work similar to option 1

3) Use some sort of Java/COM integration (this would probably require creating a java app that runs on the client also.

We would like to limit the amount of changes made to the client application if at all possible


Tuesday, April 27, 2004

The Delphi remoting library called 'kbmMW' has some built-in functionality that looks to me pretty close to what you're looking for.  You can apparently create a kbmMW server in Delphi that will provide kbmMW clients with access to EJB-based services.

See the site at http:/ and the 'white paper' on integrating kbmMW with Java at:

I use kbmMW myself and it's a solid library.  Haven't done anything in it with Java so can't give much of an opinion there, but I'd expect that Kim Madsen (author of kbmMW) has done a good job there, too.

Herbert Sitz
Tuesday, April 27, 2004

Along the lines of #1, use GLUE from webMethods ( ) to expose the EJB as a web service and then use whatever Delphi has for SOAP.

Lou Franco
Tuesday, April 27, 2004

Could you use CORBA for this?

John Topley (
Wednesday, April 28, 2004

There is a chapter on Delphi/EJB interfaces in the 'CORBA' chapter of the SAMS 'Delphi 6 Developer's Guide'. Later versions too probably.

Includes Delphi/web services too |8-)

Delphi newsgroups discuss this occasionally. It's a common need.

Friday, April 30, 2004

*  Recent Topics

*  Fog Creek Home