CatalogManager initialization
Windows Server Forum Index Windows Server
Server discussion on Windows platform.
 
 FAQFAQ   MemberlistMemberlist     RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 
 
Google
 
Web winserverhelp.com
CatalogManager initialization

 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server
Author Message
Jack
Guest





Posted: Fri Aug 26, 2005 8:52 pm    Post subject: CatalogManager initialization Reply with quote

I have an ASP site calling a VB component (COM+) I am using a commerce
server catalog as my datasource.

In the asp code, (for testing) I have an initialization call for the
CatalogLib.catalogmanager and Cataloglib.ProductCatalog. To initialize
these on every page that needs something from the catalog seems to be
alot of overhead.

In a regular cs2002 installation, it looks like the Catalogmanager is
initialized in the application on_start event, then referenced from
there.

Now, my understanding of using application scope variables and passing
them to COM+ components is not a best practice. Is this OK, or is
there another way I should be handling the initialization.

Thank you.
Back to top
Vinayak Tadas[MSFT]
Guest





Posted: Fri Aug 26, 2005 8:52 pm    Post subject: RE: CatalogManager initialization Reply with quote

You should try initializing the catalogmanager using the connection string.
This initialization is less costly than initializing the catalogmanager
with the sitename

Thanks
Vinayak Tadas
Microsoft
http://blogs.msdn.com/vinayakt

This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2002 Microsoft Corporation. All rights
reserved.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
Get Secure! For more info visit http://www.microsoft.com/security. Please
reply to the newsgroups only


--------------------
From: "Jack" <harleythumper@hotmail.com>
Newsgroups: microsoft.public.commerceserver.general
Subject: CatalogManager initialization
Date: 26 Aug 2005 11:58:34 -0700
Organization: http://groups.google.com
Lines: 18
Message-ID: <1125082714.591149.22170@o13g2000cwo.googlegroups.com>
NNTP-Posting-Host: 68.15.44.109
Mime-Version: 1.0
Content-Type: text/plain; charset="iso-8859-1"
X-Trace: posting.google.com 1125082719 27803 127.0.0.1 (26 Aug 2005
18:58:39 GMT)
X-Complaints-To: groups-abuse@google.com
NNTP-Posting-Date: Fri, 26 Aug 2005 18:58:39 +0000 (UTC)
User-Agent: G2/0.2
X-HTTP-UserAgent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1;
.NET CLR 1.0.3705),gzip(gfe),gzip(gfe)
Complaints-To: groups-abuse@google.com
Injection-Info: o13g2000cwo.googlegroups.com; posting-host=68.15.44.109;
posting-account=4JNJ6A0AAACwIGLdTX0w9zuOLzaiDDdt
Path:
TK2MSFTNGXA01.phx.gbl!TK2MSFTNGP08.phx.gbl!newsfeed00.sul.t-online.de!t-onli
ne.de!border2.nntp.dca.giganews.com!nntp.giganews.com!border1.nntp.dca.gigan
ews.com!nx02.iad01.newshosting.com!newshosting.com!news.glorb.com!postnews.g
oogle.com!o13g2000cwo.googlegroups.com!not-for-mail
Xref: TK2MSFTNGXA01.phx.gbl microsoft.public.commerceserver.general:3311
X-Tomcat-NG: microsoft.public.commerceserver.general

I have an ASP site calling a VB component (COM+) I am using a commerce
server catalog as my datasource.

In the asp code, (for testing) I have an initialization call for the
CatalogLib.catalogmanager and Cataloglib.ProductCatalog. To initialize
these on every page that needs something from the catalog seems to be
alot of overhead.

In a regular cs2002 installation, it looks like the Catalogmanager is
initialized in the application on_start event, then referenced from
there.

Now, my understanding of using application scope variables and passing
them to COM+ components is not a best practice. Is this OK, or is
there another way I should be handling the initialization.

Thank you.
Back to top
 
Post new topic   Reply to topic    Windows Server Forum Index -> Commerce Server All times are GMT
Page 1 of 1

 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum




New Topics Powered by phpBB