Solved

VSA scripting

Posted on 2003-11-14
5
246 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
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

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

Summary: Persistence is the capability of an application to store the state of objects and recover it when necessary. This article compares the two common types of serialization in aspects of data access, readability, and runtime cost. A ready-to…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
Established in 1997, Technology Architects has become one of the most reputable technology solutions companies in the country. TA have been providing businesses with cost effective state-of-the-art solutions and unparalleled service that is designed…

778 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