Commerce Server General - Re-using App

This is Interesting: Free IT Magazines  
Home > Archive > Commerce Server General > May 2005 > Re-using App





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 Re-using App
Tbone

2005-05-06, 5:57 pm

I'm looking to take the code that we use for one site and leverage for
another site.
This is a CS2002 FP1 C# application. VS 2003 is the IDE.

I'm hoping to feed both applications from one base catalog as the new app
will only need a subset of the data in the original catalog.

I've been going through the CS docs etc. looking for some examples of how I
might do this but I've not run into anything yet.

What I've tired so far:
Creating new site and adding the existing items from the source site.
Using VS Copy Project
Packing and unpacking project.

Can anyone direct me to web site, CS doc section etc. that might cover what
I'm attempting to do?

Thank you,




Ravi Shankar

2005-05-06, 5:57 pm

If I understand you correctly, you want to create another application IN the
same site ? If so then all you need to do is as follows

1. Use the latest PUP of your site.
2. Do a custom unpack and select add an application.
3. Select the site application
4. for installation change the name of the application during installation

This will add the same application twice to your site.. As an example if
you've unpacked Retail2002 then you'd have three applications retail2002,
retail2002bizdesk and retail2002b2b... now from commerce server manager if
you select the retail2002 site and select add another application and
reselect retail2002.pup as the package it'll again sohw you the same three
applications, select retail2002 and change the application name to retail2003
.... After this you'd have FOUR applications in the site retail2002,
retail2003, retail2002bizdesk & retail2002b2b...

Once this is done... you'll have to manually go and change the name of the
project file under c:\intetpub\wwwroot\retail2003 directory from Retail2002
to retail2003 and then load it into VS2003 and rebuild it...

Then you can modify this add/remove as per this applications requirement.
After you've tested this then when you create a FRESH PUP, this application
will get packed into it also.

then you can take this PUP and unpack the application only into production.

"Tbone" wrote:

> I'm looking to take the code that we use for one site and leverage for
> another site.
> This is a CS2002 FP1 C# application. VS 2003 is the IDE.
>
> I'm hoping to feed both applications from one base catalog as the new app
> will only need a subset of the data in the original catalog.
>
> I've been going through the CS docs etc. looking for some examples of how I
> might do this but I've not run into anything yet.
>
> What I've tired so far:
> Creating new site and adding the existing items from the source site.
> Using VS Copy Project
> Packing and unpacking project.
>
> Can anyone direct me to web site, CS doc section etc. that might cover what
> I'm attempting to do?
>
> Thank you,
>
>
>
>

Tbone

2005-05-06, 5:57 pm

Ravi,

Thanks so much for the point in the right direction. I followed your
insturctions using the Fourth Coffee site and was up and running with the
copy right away.

This really helps in getting started. I still have many obstacles to
overcome (such as linking any new site to BizTalk and the legacy system) but
this gives me a running start.



"Ravi Shankar" wrote:
[vbcol=seagreen]
> If I understand you correctly, you want to create another application IN the
> same site ? If so then all you need to do is as follows
>
> 1. Use the latest PUP of your site.
> 2. Do a custom unpack and select add an application.
> 3. Select the site application
> 4. for installation change the name of the application during installation
>
> This will add the same application twice to your site.. As an example if
> you've unpacked Retail2002 then you'd have three applications retail2002,
> retail2002bizdesk and retail2002b2b... now from commerce server manager if
> you select the retail2002 site and select add another application and
> reselect retail2002.pup as the package it'll again sohw you the same three
> applications, select retail2002 and change the application name to retail2003
> ... After this you'd have FOUR applications in the site retail2002,
> retail2003, retail2002bizdesk & retail2002b2b...
>
> Once this is done... you'll have to manually go and change the name of the
> project file under c:\intetpub\wwwroot\retail2003 directory from Retail2002
> to retail2003 and then load it into VS2003 and rebuild it...
>
> Then you can modify this add/remove as per this applications requirement.
> After you've tested this then when you create a FRESH PUP, this application
> will get packed into it also.
>
> then you can take this PUP and unpack the application only into production.
>
> "Tbone" wrote:
>
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com