How to get CommerceContext in non web environment
Web Server forum
Back To The Forum Home!Search!Private Messaging System

Web Server Talk Web Server Talk > Web Servers reviews > Microsoft Commerce Server > Commerce Server General > How to get CommerceContext in non web environment




  Last Thread   Next Thread Next
  Show Printable Version Email this Page Subscribe to this Thread      Post New Thread    Post A Reply      

boveyking is offline     How to get CommerceContext in non web environment  
boveyking


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for boveyking Click here to Send boveyking a Private Message Find more posts by boveyking Add boveyking to your buddy list
 
08-11-04 06:34 PM

We have more than 10 separate sites in one commerce server, and we need issu
e config and manage operation across sites in a non-web environment. For exa
mple, we need create one user in 4 sites at the same time. My question is ho
w to get CommerceContext object based on  site name?
Because our task is  independant to specific site, we can not create a comme
rce project  Visual studio.
Is it possible to do that?

Thanks




[ Post a follow-up to this message ]



    RE: How to get CommerceContext in non web environment  
David Messner [MSFT]


View Ip Address Report This Message To A Moderator Edit/Delete Message


 
08-13-04 01:47 AM

Think of CommerceContext as CommerceHttpContext (that's what we should have
called it).  CommerceContext and the HTTP Modules are only available within
a Web app.

That said, most of the BCLs can be used outside of HTTPContext.  Only some
parts of the order system (e.g. PipelineInfo) has some limitations that it
must be used within HTTPContext.

E.g. you can create a ProfileContext or CatalogContext and pass a
ConsoleDebugContext to the constructor.  Be sure you cache the instance of
these for the lifetime of the app - they are meant to be singletons as they
are expensive to create.

-djm
--
This posting is provided "AS IS" with no warranties, and confers no rights.
You assume all risk for your use. © 2004 Microsoft Corporation.  All rights
reserved.

--------------------
From: boveyking <boveyking.1auix7@mail.webservertalk.com>
Subject: How to get CommerceContext in non web environment
Date: Wed, 11 Aug 2004 13:34:23 -0500
Message-ID: <boveyking.1auix7@mail.webservertalk.com>
Organization: Web Servers forum
User-Agent: www.webservertalk.com news gateway
X-Newsreader: www.webservertalk.com news gateway
X-Originating-IP: 64.42.239.181
Newsgroups: microsoft.public.commerceserver.general
NNTP-Posting-Host: ev1s-66-98-192-98.ev1servers.net 66.98.192.98
Lines: 1
Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTNGP11.phx.gbl
Xref: cpmsftngxa06.phx.gbl microsoft.public.commerceserver.general:14510
X-Tomcat-NG: microsoft.public.commerceserver.general


We have more than 10 separate sites in one commerce server, and we need
issue config and manage operation across sites in a non-web
environment. For example, we need create one user in 4 sites at the
same time. My question is how to get CommerceContext object based on
site name?
Because our task is  independant to specific site, we can not create a
commerce project  Visual studio.
Is it possible to do that?

Thanks



--
boveyking
------------------------------------------------------------------------
Posted via http://www.webservertalk.com
------------------------------------------------------------------------
View this thread: http://www.webservertalk.com/message346023.html







[ Post a follow-up to this message ]



boveyking is offline     Re: RE: How to get CommerceContext in non web environment  
boveyking


View Ip Address Report This Message To A Moderator Edit/Delete Message


Click Here to See the Profile for boveyking Click here to Send boveyking a Private Message Find more posts by boveyking Add boveyking to your buddy list
 
08-13-04 10:42 PM

Thanks David. It works with ConsoleDebugContext.




[ Post a follow-up to this message ]



    Sponsored Links  




 





   All times are GMT. The time now is 10:57 AM.      Post New Thread    Post A Reply      
  Last Thread   Next Thread Next


Most Popular forums 

Forum Jump:
Rate This Thread:

Forum Rules:
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
HTML code is OFF
vB code is ON
Smilies are ON
[IMG] code is OFF
 
Medical and Health forum | Computer Games Reviews | Graphics design forum

Back To The Top
Home | Usercp | Faq | Register