Solved

VSA scripting

Posted on 2003-11-14
5
248 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
5 Comments
 
LVL 10

Expert Comment

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

Author Comment

by:dhodge
ID: 9765169
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
ID: 9766688
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
ID: 11747194
PAQed, with points refunded (500)
ee_ai_construct - CS Mod
0

Featured Post

Free Tool: Site Down Detector

Helpful to verify reports of your own downtime, or to double check a downed website you are trying to access.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes a simple method to resize a control at runtime.  It includes ready-to-use source code and a complete sample demonstration application.  We'll also talk about C# Extension Methods. Introduction In one of my applications…
This article aims to explain the working of CircularLogArchiver. This tool was designed to solve the buildup of log file in cases where systems do not support circular logging or where circular logging is not enabled
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…

739 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