Smart questions
Smart answers
Smart people
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Member Login

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips now!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!

Join Tek-Tips
*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

LINK TO THIS FORUM!

Add Stickiness To Your Site By Linking To This Professionally Managed Technical Forum.
Just copy and paste the
code below into your site.

Partner With Us!

"Best Of Breed" Forums Add Stickiness To Your Site
Partner Button
(Download This Button Today!)

Feedback

"...I always seem to find what I need in previous threads without starting my own. I have started a couple but that's it..."

Geography

Where in the world do Tek-Tips members come from?
datapro1 (Programmer)
2 May 02 11:51
Hi,
  This is Sanjay here. I have a question on MTS(COM+ IN WIN2K).I hope you will respond soon.

Is it possible that in web-based environment ,if MTS holds a one instance of COM component,then same instance can be used by all the clients.

For example :

I have a COM Component installed on COM+ Server in Win-2000.

I need to access this component from 2 different ASP Pages.
But What I want to achieve is that once a instance of this component(in MTS) is created,it should be there in the MTS memory and this instance can be used by all ASP pages.


If I use in my ASP pages
  set obj = server.createobject("myproj.myclass")
to create instance of the COM component in MTS ,then different instances of this component will be created ,which i don't want to have.I just want once instance of the COM component to be used in all ASP pages.Is it possible?

If possible how to get the reference to the COM component in MTS using ASP.

I will appreicate your help.

Regards
Sanjay
nomi2000 (ISP)
3 May 02 2:31
Dear Sanjay
its not adviseable to do what u want because good MTS componets shoud be STATELESS all u want to maintain the state okay u can do this if u made ur compoenetn in VB then there is a property name "Persistant" in class of ur MTS object which make that object persistant
Regards
Nouman

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members!

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close