×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • 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!
  • Students Click Here

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

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

Jobs

MTS Question Please Help Urgent !

MTS Question Please Help Urgent !

MTS Question Please Help Urgent !

(OP)
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

RE: MTS Question Please Help Urgent !

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

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

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! Already a Member? Login

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