Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

VSA scripting

Posted on 2003-11-14
5
Medium Priority
?
250 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

Introduction Although it is an old technology, serial ports are still being used by many hardware manufacturers. If you develop applications in C#, Microsoft .NET framework has SerialPort class to communicate with the serial ports.  I needed to…
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…
Sometimes it takes a new vantage point, apart from our everyday security practices, to truly see our Active Directory (AD) vulnerabilities. We get used to implementing the same techniques and checking the same areas for a breach. This pattern can re…
In this video, Percona Solutions Engineer Barrett Chambers discusses some of the basic syntax differences between MySQL and MongoDB. To learn more check out our webinar on MongoDB administration for MySQL DBA: https://www.percona.com/resources/we…

705 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