Wrox Programmer Forums
|
Visual C++ Questions specific to Microsoft's Visual C++. For questions not specific to this Microsoft version, use the C++ Programming forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Visual C++ section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old October 15th, 2003, 11:49 AM
Registered User
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default Dynamic GUID?

Hi,

I am a newcomer to the world of COM having come from the world of DCE
and DFS and I was hoping that some of you helpful spirits out there
could give me a few hints. Here is my problem. Where I come from, Encina (IBM Websphere), DCE and DFS, it is quite easy to send a request from a client to a specific server, since you have a server/ interface browser, in version 5 this is what is called Universal Binding, contrary to Transparent Binding, where you don't really care what server/database connection you want to run on, scaling is by the way not an issue either. In the application I have to port from DC/DFS/Encina to COM+ it is of paramount importance that a client can pin-point the server it want's to run on and also that the configuration is scalable, i.e. you can easily slap-on an extra server if needed. With my meager knowledge of COM+ it appears that GUIDs are static and is sort of hard-coded in the IDL code at compile time and cannot be assigned at run-time. Am I correct in this assumption? If that is the case it would make it very hard to scale things properly, since you sort of have to compile a new server with a new GUID every time you want to expand. I were thinking of pre-making a bunch of GUIDs in the registry and then assign them as they started up. Is there any "official" way (or hack, I don't care) you could do this?

 
Old October 15th, 2003, 12:33 PM
Registered User
 
Join Date: Oct 2003
Posts: 2
Thanks: 0
Thanked 0 Times in 0 Posts
Default

To make it more clear, when talking about server I really mean a copy of the COM+ executable that services the COM+ client. i.e. I envision having multiple identical copies of the same executable running each servicing a subset of clients and each having one connection to the database.






Similar Threads
Thread Thread Starter Forum Replies Last Post
Validate a GUID(UUID) iceandrews XSLT 6 May 29th, 2008 11:35 AM
Ask IIS for a GUID? Raconteur ASP.NET 2.0 Professional 2 April 25th, 2007 03:25 PM
GUID cdhansen BOOK: Beginning Visual Basic 2005 Databases ISBN: 978-0-7645-8894-5 1 October 21st, 2006 04:56 AM
generating two different GUID shaileshmark General .NET 5 August 1st, 2004 01:25 PM
Creating a GUID xgbnow Visual C++ 1 May 6th, 2004 11:10 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.