Commerce Server General - CatalogManager initialization

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > August 2005 > CatalogManager initialization





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author CatalogManager initialization
Jack

2005-08-26, 5:56 pm

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.

Vinayak Tadas[MSFT]

2005-08-26, 5:56 pm

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.


Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com