[mapguide-dev] Does MapGuide support service loading dynamically?

Xuewei Ren xren at hannastrategies.com
Fri Aug 11 16:13:23 EDT 2006


So is the portability issue. From the deployment perspective, MapGuide
Server looks impressive. It can be deployed to Windows and other OS.
But, if we take a look at source code, we can easily conclude that we
are doing it in hard way. For example, we can easily find the macros
like 

#ifdef WIN32 

   ......

#else 

   ...... 

 

 #endif

 

Using such macros assumes that the developers know the programming
syntax on all supporting OS platforms for the functions they want to
write. And, this expectation is certainly too high. The interface
abstraction is needed to make it independent to the OS platforms, at
least in programming level for majorities.

 

To me, binary expansion and interface abstraction are the two key issues
to prevent MapGuide Server from expansion.

 

Thanks for your quick reply, Bruce.

 

Xuewei 

 

________________________________

From: Bruce Dechant [mailto:bruce.dechant at autodesk.com] 
Sent: Friday, August 11, 2006 12:27 PM
To: dev at mapguide.osgeo.org
Subject: RE: [mapguide-dev] Does MapGuide support service loading
dynamically?

 

MapGuide does not currently support this dynamic loading. Though doing
this in the future is definitely something we are looking into.

 

Bruce

 

________________________________

From: Xuewei Ren [mailto:xren at hannastrategies.com] 
Sent: Friday, August 11, 2006 10:24 AM
To: dev at mapguide.osgeo.org
Subject: [mapguide-dev] Does MapGuide support service loading
dynamically?

 

Hi, All,

 

I am trying to develop several new services on MapGuide Server. The
ideal approach would be the dynamic approach. It can be described as: 

      1. Create a new service project separately from the existing code
base;

      2. Let MgServer.exe load the service DLL at runtime based on the
serverconfig.ini.

 

This approach can avoid recompiling the entire code base for the new
services.

 

But, by studying MapGuide Server source code, I found that Server Core
project has the links to all other 7 services. Obviously, the existing
services were not developed using this dynamic loading approach (correct
me if I am wrong). So, here is the question. Does MapGuide server
support dynamic loading for the newly-developed service DLL? 

 

Thanks,  

 

Xuewei Ren

Hanna Strategies, LLC.

2700 Cumberland PWKY

Suite 400

Atlanta, GA 30339

xren at hannastrategies.com <mailto:xren at hannastrategies.com> 

678-305-3134

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/mapguide-internals/attachments/20060811/6ead399c/attachment.html


More information about the Mapguide-internals mailing list