Icon View Thread

The following is the text of the current message along with any replies.
Messages 1 to 4 of 4 total
Thread Calling Module DLL from a Web Server
Wed, Oct 19 2016 8:36 AMPermanent Link

Michael Dreher

Hi All,
I've to write a replacement for the ewbsrvr.exe for our needs. We've a custom module (derived from TEWBModule)
handling TServerRequests (no dataset/database handling).

Is there information available how to commumicate from a webserver with the module DLL when handling module rescource requests? There are exported functions in the DLL...
 - CloseEWBModule
 - GetEWBModuleErrorMsg
 - EWBExecute
 - OpenEWBModule
 - SetEWBModuleCallbackFunction
 - ValidateEWBModule
but I did'nt find descriptions in the Modules Manual.

Michael Dreher
Wed, Oct 19 2016 11:14 AMPermanent Link

Walter Matte

Tactical Business Corporation

If you are rewriting a server, then you will need to write all your own helper functions that you don;t even know exists in the current server, that support the dll - let alone worry about the function call to the dll.

If you are rewriting a server then you are petty much rewriting everything.

Walter
Wed, Oct 19 2016 2:27 PMPermanent Link

Raul

Globestar Systems

Team Elevate Team Elevate

On 10/19/2016 8:36 AM, Michael Dreher wrote:
> I've to write a replacement for the ewbsrvr.exe for our needs. We've a custom module (derived from TEWBModule)
> handling TServerRequests (no dataset/database handling).

Just to add to Walter's response - i'm curious why would you even bother
with the module if you're writing your own server ?

Just implement everything in the web server direct - everything is basic
web request/response and if you do need to support EWB TDataset then API
and JSON references are in the manual (last 2 links on this page :
http://www.elevatesoft.com/manual?action=topics&id=ewb2&section=using_databases)

Raul
Thu, Oct 20 2016 8:40 AMPermanent Link

Michael Dreher

Raul wrote:

 // Just to add to Walter's response - i'm curious why would you even bother
 // with the module if you're writing your own server ?
 // Just implement everything in the web server direct ....

My first thought was, it'll be simpler to call the module DLL for service, instead of integrating der module code in the server. The module does the database stuff, the server only knows about providing static rescources and forwarding module requests (decoupeling rules).

The more I think about what Raul wrote, it seems to be the better approach (no communication overhead, simpler implementation).

Thanks for the replies. No more answer required to the initial question.

Michael Dreher
Image