Solved

VSA scripting

Posted on 2003-11-14
5
234 Views
Last Modified: 2010-04-16
I am working on a method of extending our application to allow customers to create scripts and have these scripts run at certain key points within our system.

I have managed to get the scripts loaded, and can execute them successfully.

However to speed the run time process up I want to precompile all the scripts and have subsequent calls make reference to these pre compiled scripts.  The issue I have is that I have no idea when the site loses the compiled scripts.  Under IIS the objects seem to hang around between calls, if I create the script site under a regular Windows App the site goes away after I close the app.

I thought about creating a service to keep the site definetly running, however I notice that you only get one call to the GetGlobalInstance, which probably means that a single global object would be used by many clients, and therefore can not be used in a multi user environment.

Lots of things don't make sense and I can't find any answers, your help would be appreciated.
0
Comment
Question by:dhodge
  • 2
5 Comments
 
LVL 10

Expert Comment

by:smegghead
Comment Utility
What to you mean by 'the site loses the compiled scripts' ?? and 'the site goes away'??
0
 
LVL 2

Author Comment

by:dhodge
Comment Utility
I guess when the engine I have created goes out of scope the scripts are no longer loaded.  This is kind of what you'd expect, however when you create a site you specify a URI that identifies your code to the script engine.  I would have expected this URI to be available to other objects.  I basically want to be able to compile once and run many.

When I try adding the object to a service (or remoting it) I get problems instantiating the object, I think that's because the class I have to derive from IBaseVsa class can not be serialized.
0
 
LVL 2

Author Comment

by:dhodge
Comment Utility
I made the object serializable and that seems to work now.  Thanks for the help.
0
 

Accepted Solution

by:
ee_ai_construct earned 0 total points
Comment Utility
PAQed, with points refunded (500)
ee_ai_construct - CS Mod
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Extention Methods in C# 3.0 by Ivo Stoykov C# 3.0 offers extension methods. They allow extending existing classes without changing the class's source code or relying on inheritance. These are static methods invoked as instance method. This…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
Access reports are powerful and flexible. Learn how to create a query and then a grouped report using the wizard. Modify the report design after the wizard is done to make it look better. There will be another video to explain how to put the final p…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

763 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

9 Experts available now in Live!

Get 1:1 Help Now