Article #28176: Cannot access deployed EJB in BES 5.0 with a Delphi Client
Problem
I installed Borland Enterprise Server 5.0 and deployed the EuroConverter EJB found in the EJB Demo that ships with Delphi 6. I cannot access the deployed EJB with the Delphi Client. When I try running the Delphi Client I keep getting Object Not Exist error.
Solution
First off, ensure that the osagent port inside Borland Enterprise Server is set to the same port number as the osagent that is running on the client machine.
In order for a Delphi Client to talk to an EJB deployed on BES 5.0, you must configure the Borland Enterprise Server so that SIDL is enabled. With Borland Application Server, this was always enabled as a default, however with BES 5.0 the default setting has SIDL disabled. The easiest way to enable SIDL is using the BES console. Do the following after starting up the BES server:
Start the Console
Expand your server
Expand the Partition where you deployed the Enterprise Java Bean.
Under the Partition, you will see Deployed Modules and Partition Services. Expand Partition Services.
Select the EJB Container, right click on it and select Configure.
Click the check box next to Enable SIDL. Click Okay.
You will be presented with the message: "The partition needs to be restarted in order for this change to take effect. Do you want to restart the partition now?". Click Yes.
Now when you start your Delphi client it will be able to access the deployed EJB.