Continuous Server Applications - Possible?

Ok, I'm a long-time user of Flash and Actionscripting, but
totally new to SSAS.
I'm creating (or trying to) a multi-user, persistant world,
Flash-Based game.
So far, all the examples I've seen of SSAS start the script
when someone connects/requests it and closes directly after all
users are disconnected.
Is there a way to create a server app that would run and
continue running regardless of current connections, or lack
thereof?

Hello :)
if you don't use the Macromedia framework... all it's
possible for me :)
1 - open a new folder application : applications/test/
2 - create a new main.asc
3 - write in this file :
repeat = function ()
trace("go : " + new Date()) ;
var id /*Number*/ = setInterval( repeat , 1000 ) ;
4 - save your file
5 - lauch the FMS console
6 - open your "Server Live Log"
7 - launch you application
8 - wait and see the trace message.
9 - close your console
10 - restart you console.. the setInterval continue to
incremente your
trace :)
MM Framework encapsulate the core's object in SSAS framework.
But you
can use the core's object and create your continuous
application framework.
I have write a first alpha SSAS version of my OpenSource
framework "VEGAS" :
>
http://osflash.org/vegas
>
http://code.google.com/p/vegas/
(second server)
The SSAS version implement lot of methods and class to help
you if you
want : FrontController, Design Pattern(MVC), Event Model W3C
DOM2/3,
Gateway with client, Log tools, a new Application
implementation in
asgard.server.* package, etc... all my code use polymorphisme
with AS3
framework.
For your application you can use my vegas.util.Timer class :
http://svn1.cvsdude.com/osflash/vegas/SSAS/trunk/src/src/vegas/util/Timer.asc
To use my framework :
1 - use SVN (subversion) client like TortoiseSVN or RapidSVN
to installe
the SVN in your hard disk.
2 - copy all the SSAS/trunk/src files in your FMS application
folder.
3 - in your main.asc
// ----o include VEGAS
load("src/vegas.asc") ;
// ---- Unit Test
// load("unittests/Application.asc") ; // units tests
// --- imports
Delegate = vegas.events.Delegate ;
Timer = vegas.util.Timer ;
var onDebug = function ( e )
trace("> " + e.getType()) ;
var timer = new Timer(1000, 4) ;
timer.addGlobalEventListener( new Delegate(this, onDebug) ) ;
trace("> " + timer) ;
timer.start() ;
EKA+ :)
> You also need to consider garbage collection. FMS will
kill application
> instances after they have been idle for a while (as in
no clients connected),
> so you need to tell FMS to not shut your app down.
>
> Look in the docs for the application.onappStop method to
see how to prevent an
> instance from being GC'd.
>

Similar Messages

  • TS3854 Media Server application unexpectedly quit

    Hi,
    when i use Final Cut Pro 10.0.6 the below mwssage appears
    i cannot save the project in any format and i have updated all versions
    Media Server application unexpectedly quit
    what does this mean??? and what to do??
    Please Assist

    Well, I'm not sure what exactly is going on yet, but here's what I've done:
    I followed these steps for the "Unable to connect to background process" issue that Compressor sometimes has, even though that wasn't the issue. It sort of made sense to do, though, because when I reinstalled FCP and DVDSP, I did DVDSP4 first, then FCP HD 4.5, which predates DVDSP 4 by a generation (I think). So it was possible that Compressor got screwed up in the install...still hard to tell, though.
    So then I just tried a bunch of videos in Compressor. After several various attempts, it appears that *perhaps, maybe* it was just a bad custom preset. The built-in 150 min 2-Pass is currently working away on the video, and is 10% into it, which is 10% more than the custom preset ever got.
    So, I'm gong to let that encode, and then try to make the preset again, from scratch, and see I can figure anything out. The only thing different between the 150 min 2-Pass preset and my version of it was the addition of a Gamma Correction filter. So, who knows...
    If anyone knows anything else, please make a post.

  • Error in Event viewer - COM Server application security Issue

    Dear All,
    I am installing one software on windows cluster environment. But while installing I am getting continuous error in System in Event Viewer as 'The application-specific permission settings do not grant Local Activation permission for the COM Server application
    with CLSID {xxxxxxxxxxxxx} and APPID {xxxxxxxxxxxxx} to the user NT SERVICE\SQL Server Distributed Replay Client SID (S-1-5-80-3249811479-4343554-65656-65665) from address LocalHost (Using LRPC). The security permission can be modified using the Component
    Services administrative tool.'
    I have seen in component services, that app ID I am getting for DReplayController service. On security tab if I want to give permission to that particular user then to which user I want to add in 'Launch and Activate permissions'. I am not getting 'SQL Server
    Distributed Replay Controller' user in list.
    So, please help me.
    Thanks in advance.

    Hi,
    Please try to add this account: NT AUTHORITY\SYSTEM.
    More information for you:
    The application-specific permission settings do not grant Local Activation permission for the COM Server application with CLSID 2012
    https://social.technet.microsoft.com/forums/systemcenter/en-US/cd8a2c95-70db-4df6-b7f5-eedcc5d898c7/the-applicationspecific-permission-settings-do-not-grant-local-activation-permission-for-the-com
    Event ID 10016 issue in SQL Cluster Server
    https://social.technet.microsoft.com/Forums/sqlserver/en-US/c5a27692-05c0-4ee4-b97f-1ea438b4e5f7/event-id-10016-issue-in-sql-cluster-server?forum=sqldisasterrecovery
    In addition, if there are any further requirements regarding SQL, here are some SQL forums below for you:
    https://social.technet.microsoft.com/Forums/sqlserver/en-US/home?category=sqlserver&filter=alltypes&sort=lastpostdesc
    Best Regards,
    Amy
    Please remember to mark the replies as answers if they help and un-mark them if they provide no help. If you have feedback for TechNet Subscriber Support, contact [email protected]

  • Exception Handling in Client/Server Application

    Hi All,
    My application is a Server application that receives socket connections from a client which pass an image file, the server saves the file in a specified directory..
    Some errors may appear during writing the file by the server, Socket or IO Exception may occurr( i.e. the network connection cut, no space on the disk....)
    i noticed that the server terminates when an exception occurs. I catch this exception and handls it just by printing the exception message to the command line.
    So when it occurs server prints the exception message then the application terminates.
    I want to handle the exception in a way the server doesn�t terminate and also can receives more connections?
    Note: i tried the case in wich there is no enough memory space so the server will copy the passed image file on the drive a.(floppy disk)
    Here are my Server, Client source code ...
    Server.java
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import javax.swing.*;
    class Server{
    public static void main(String[] args){
    try{
    System.out.println("Server Started.........");
    ServerSocket ss = new ServerSocket(9999);
    while(true){
    Socket s = ss.accept();
    System.out.println("Socket from : "+s.getInetAddress().getHostName()+ " "+s.getInetAddress().getHostAddress());
    BufferedInputStream bis = new BufferedInputStream(s.getInputStream());
    FileOutputStream fis = new FileOutputStream("a:/abc1.bmp");
    BufferedOutputStream bos = new BufferedOutputStream(fis);
    int c;
    c = bis.read();
    while( c != -1){
    bos.write(c);
    c = bis.read();
    bos.flush();
    bos.close();
    fis.close();
    bis.close();
    s.close();
    System.out.println("Complete");
    }catch(SocketException se){
    System.out.println("Socket Error : "+se.toString());
    catch(IOException ioe){
    System.out.println("IO Error : "+ioe.toString());
    Client.java
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    public class Client{
    public static void main(String[] args){
    try{
    FileInputStream fis = new FileInputStream("abc.bmp");
    BufferedInputStream bis = new BufferedInputStream(fis);
    int available = bis.available();
    byte[] b = new byte[available];
    int read = bis.read(b,0,available);
    bis.close();
    fis.close();
    Socket s = new Socket("localhost",9999);
    BufferedOutputStream bos = new BufferedOutputStream(s.getOutputStream());
    bos.write(b,0,available);
    bos.flush();
    bos.close();
    s.close();
    catch(Exception e){
    System.out.println(e);
    System.out.println("Complete");
    thanx in advance.
    shelal

    Get the try catch block inside the while loop. In that case, even if an exception occurs, it is going to continue in the while loop.
    Server.java
    import java.io.*;
    import java.net.*;
    import java.awt.*;
    import javax.swing.*;
    class Server{
    public static void main(String[] args){
    try{
    System.out.println("Server Started.........");
    ServerSocket ss = new ServerSocket(9999);
    catch(Exception e)
    System.out.println("Server socket creation failed");
    // you may wish to exit here.
    while(true){
    try
    Socket s = ss.accept();
    System.out.println("Socket from : "+s.getInetAddress().getHostName()+ " "+s.getInetAddress().getHostAddress());
    BufferedInputStream bis = new BufferedInputStream(s.getInputStream());
    FileOutputStream fis = new FileOutputStream("a:/abc1.bmp");
    BufferedOutputStream bos = new BufferedOutputStream(fis);
    int c;
    c = bis.read();
    while( c != -1){
    bos.write(c);
    c = bis.read();
    bos.flush();
    bos.close();
    fis.close();
    bis.close();
    s.close();
    System.out.println("Complete");
    }catch(SocketException se){
    System.out.println("Socket Error : "+se.toString());
    catch(IOException ioe){
    System.out.println("IO Error : "+ioe.toString());
    }

  • "error occurred setting the server application active"

    Hi All,
    I found following error when I save outline in ASO application. It seems that the application cannot be started correctly. Other applications (BSO/ASO) are running correctly.
    "error occurred setting the server application active"

    try this:
    Issue can be from both server and application side:
    1)Addition of SERVERTHREADS with a proper value. When any database operation is requested then monitor the number of process, memory etc. Idea is to identify which process is trying to use max resource on server level.
    2) Also, if possible try and increase the ulimit setting to "unlimited".
    3) Verify NETDELAY and NETRETRYCOUNT -- Guess you have checked this so values should be fine here.
    4) If the environment is windows then:
    a)Open the Registry
    b)Navigate to Local Machine\System\CurrentControlSet\Services\TCPIP\Parameters
    c)Add new DWORD Value named TcpTimedWaitDelay, right click and select Modify. Select decimal radio button, type in 30. (The default value of this parameter is 2 minutes. This is how long it will take for a TCP/IP port that was used by the network for a connection to be released and made available again. 30 sec is the minimum allowed by Microsoft)
    d)Add new DWORD Value named MaxUserPort, right click and select Modify. Select decimal radio button, type in 65534. (The default value is 5000. This determines the highest port number TCP can assign when an application requests an available user port from the system).
    e)Add new DWORD Value named MaxFreeTcbs, right click and select Modify. Select decimal radio button, type in 6250. (The default value is 2000. This determines the number of TCP control blocks (TCBs) the system creates to support active connections. Because each connection requires a control block, this value determines how many active connections TCP can support simultaneously. If all control blocks are used and more connection requests arrive, TCP can prematurely release connections in the TIME_WAIT state in order to free a control block for a new connection).
    f) Reboot the server.
    5) On application side, look at the cache settings, If they are very high then try lowering them and check.
    Cheers!!
    HA:-)
    Edited by: user9513506 on Sep 2, 2008 5:03 AM

  • Media Server application unexpectedly quit??

    Greetings All,
    I am trying to export from FCPS to compressor using a cluster created with Qmaster. In the cluster there are 2 machines. One computer is set up as services only and the other is set with services and cluster controller. When Batch monitor comes up I get the following Error. Failed: Host [hostname.local] Media Server application unexpectedly quit. Have I set up the cluster wrong? what might cause this error??
    Thanks

    Well, I'm not sure what exactly is going on yet, but here's what I've done:
    I followed these steps for the "Unable to connect to background process" issue that Compressor sometimes has, even though that wasn't the issue. It sort of made sense to do, though, because when I reinstalled FCP and DVDSP, I did DVDSP4 first, then FCP HD 4.5, which predates DVDSP 4 by a generation (I think). So it was possible that Compressor got screwed up in the install...still hard to tell, though.
    So then I just tried a bunch of videos in Compressor. After several various attempts, it appears that *perhaps, maybe* it was just a bad custom preset. The built-in 150 min 2-Pass is currently working away on the video, and is 10% into it, which is 10% more than the custom preset ever got.
    So, I'm gong to let that encode, and then try to make the preset again, from scratch, and see I can figure anything out. The only thing different between the 150 min 2-Pass preset and my version of it was the addition of a Gamma Correction filter. So, who knows...
    If anyone knows anything else, please make a post.

  • Catn start J2EE server application

    Hi, everyone, i'm trying to start up the server application version 8 in a WinXP system but it throws a message on the console screen saying:
    "Starting Domain domain1, please wait
    Log redirected to ...
    com/sun/jmx/mbeanserver/GetPropertyAction
    Press any key to continue..." and it doesn't start. i checked if there is some instances of a java vm running
    on memory but it isn't so.
    somone can help me?
    Cheers, Victor.

    If you don't see logs directory at all, it is very likely that domain configuration failed at installation time (and due to a known bug in this release, this situation is sometimes not being correctly reported on Windows platforms).
    To resolve this, you can either uninstall this installation using provided uninstaller and try installing again, or you can try to create domain manually. To do that you should:
    1. delete C:\Sun\AppServer\domains\domain1 folder
    2. open command prompt and run following command:
    C:\Sun\AppServer\bin\asadmin create-domain adminport 4848 adminuser admin adminpassword adminadmin instanceport 8080 domain1
    (these are default values for ports and admin username - if you remember using different values during the installation provide those values instead)

  • Oraclient9i.dll error in multi threaded delphi server application

    I created a multi threaded server application in delphi using oracle9i and indy server components. When I run my application, I am getting an error "oraclient9i.dll" error when executing my SQL statements. I have check communication between my server application and the client application without using oracle and its working fine, its only when I started executing SQL statements when I got this error.
    Can anybody help me with this problem or point me to the right direction on how to resolve this issue.
    thanks

    > I have tried what you suggested. I have created a
    seperate TOracleSession on each thread that I create
    on the OnConnect event however I am having Problems
    using the oraclesession created on the OnExecute
    event. Somehow it is still executing the SQL that I
    have created on the main form where I first opened an
    oraclesession component created on the main form.
    It sounds then like the TOracleSession object in the thread is a copy of the one in the main thread/form.
    > Do you think that It would work if I create an
    instance of the TOracleDatasets and TOracleQuery on
    the OnExecute event and also at the same time create
    my TOracleSession on this event and continue
    processing the data receive from the client server.
    I've never used the Indy components for threading. The default TThread class worked just fine for me.
    What I used to do is define the session and database objects as privates in my new thread class (let's call it TThreadSQL) - which was subclassed from TThread.
    The constructor of this new TThreadSQL class did the following (writing here purely from memory - have not done Delphi for some time now): constructor TThreadSQL.Create( TNSalias, username, password : string );
    // constructor is called with the Oracle session connection details
    begin
      inherited Create; // call the parent class constructor
      CreateOracleSession; // call own private method to create an Oracle connection
    end;
    The CreateOracleSession method would then:
    - create a BDE Session (TSession) object
    - create a BDE Database (TDatabase) object, using the BDE Oracle native driver and an Oracle TNS alias plus username and password for connection
    The destructor would close the connection. The Execute method which is used to fire up the thread, would use a TQuery object (or whatever) to execute a SQL using it owns connection.

  • Client-Server Application

    Hi everybody!
    I'd like to confirm if it's possible to replace the programs developed in Visual Basic.NET by Java? Including local file access, Databases, ODBC, GUI etc.
    In other words, to develop traditional MS Client-Server application to run standalone in a PC.
    Thanks

    Yes. - MOD

  • Client - Server applications

    I wanted to know if it was possible to build a Server application that would run on a single machine, and create the client application to run on another machine, that aren't on the same network, and get both applications to connect together using an IP and a Port number...
    I tried doing this using Socket and ServerSocket, but it seems they only work in local network... Any help will be appreciated :)

    Well, I'm not behind a firewall, but because I have the "Shared Connection" option from windows turned on to give access to internet to the other computers on my network, I cannot receive files from ICQ, and things like that.. So I guess the Shared Connection is my problem..
    How could I solve it?

  • Missing Server Application?

    I went to make changes to my server, and the Server Application is misssing? Hows this possible? Any shortcut way to bring it back, or perhaps launch from terminal? Services still appear to be running correctly, everything else is fine, just cant find that application. Spotlight cant find it either.
    This is like the 3rd time I've noticed things just dissappearing.

    Hi
    See Portal Documentation Pages on OTN: http://www.oracle.com/technology/products/ias/portal/documentation.html
    User's Guide - HTML
    ==================
    http://download-west.oracle.com/docs/cd/B10464_03/portal.904/b10358/toc.htm
    User's Guide - PDF
    =================
    http://download-west.oracle.com/docs/cd/B10464_03/portal.904/b13922.pdf
    Thanks
    Rosie

  • Suggestions for a cooking recipe web server application

    I have my own web server running the WordPress software for our family blog. I'd like to run a web server application that will allow us to add and view cooking recipes. The only thing I've been able to find so far are three WordPress plugins: one is out of date, and the other two integrate rather awkwardly with WordPress.
    I'm looking for something rather simple: a web server application I can run to allow us to easily see our family recipes. A stand alone application (not a WordPress plugin) is actually preferred. Well, actually, any suggestion about any possible solution is preferred.
    Does anyone know of a cooking recipe web server application?
    Thank you!
    (By the way, the reason I keep saying "cooking recipe" is because, apparently, "recipe" means something special in the web development world. Makes doing Internet searches for my problem a little tricky. )

    There might be a Django app for that. You can plug Django apps in one big project (ex. a blog, cooking recipes, portfolio, etc). I can't explain it well, you might want to read about Django on the official website.
    EDIT:
    http://code.google.com/p/django-recipes/
    Last edited by ixnine (2012-10-11 01:46:33)

  • HT5678 What the important thing we need before we can setup The Mountain Lion Server application

    I want to set up mountain lion server application on my mac osx 10.83 , may i have some suggestion before i set up it to my macBook .

    I'd ask what requirements you're looking to fulfill by using OS X Server on a MacBook system, as that's not a typical hardware configuration for a server.
    OS X Server and most other server operating systems expect static IP addresses and full-time availability, where a MacBook tends to be mobile and to thus have a variety of dynamic DHCP IP addresses and networks, and MacBook systems also tend to be closed and hibernating at random times.
    It's certainly possible to use this hardware as a server (and it can be useful when you're learning how to manage a server and have a "scratch" MacBook available), but the hardware is not necessarily a good fit.
    As you add services, you'll want to have DNS services established and verified, and — on a typical NAT'd local area network with no other LAN-local DNS services — that involves configuring DNS services on OS X Server itself.  DNS is a prerequisite for various other OS X Server services.
    But yes, do have a disk backup, either Time Machine, or as an external disk backup, or however you preserve your data.  Skimming the OS X Server manuals can help save some time figuring out the platform, too.

  • Terminal server application and contextless login

    Hi,
    Using zen6.5sp2 here
    terminal server application, to a win2k3 with client 4.91sp2 (french +
    patch kit c for test)
    the credentials are passed correctly from the client to the server, and
    the "single-sign-on" works ok only if I specify the context into the client.
    I can't get the LDAP contextlogin login to work, neither the old
    LgnCLW32.dll
    If I do a local authentification, or throught mstsc as usual, it works
    it's only via the zenworks apps.
    The client 4.91sp1 or sp2 (don't remember) had a bug that it wasn't able
    to pass credentials at all, and that's not what I'm looking for...
    Any clue ?
    Marc

    I beleive this is true, but I'm talking about Novell login... What the
    SAM has todo with this ???
    I do not bother avec Windows login, I have ZEnworks that creates an
    account for me...
    Steps to replicate the problem:
    1) create user1 under context1 into edir
    2) create user2 under context2 into edir
    3) create zen dlu policies, for loging into a regular winxp, and win2003
    terminal server
    4) install novell client (configure the location profile with the
    treename, and the CONTEXT of CONTEXT1 & configure ldap contextless
    login) & zfd on the TS
    5) at this point, if anyone uses mstsc.exe to connect to the TS server,
    he should be able to login to the TS, with a DLU, and get a desktop
    6) create a TS application into ZENworks, which points to the TS, and
    start any app (notepad.exe)
    7) login into a winxp workstation, with user1, start NAl, click the app,
    it should so an "SSO" login to the TS, and start notepad without asking
    a password
    8) login will FAIL with user2, because he's under context2, and zen
    doesn't try todo contextless login
    Yeah, I can create alias, but to me, it's not elegant... and a waste of time
    Yeah, I can use IDM to create another tree, sync all my accounts into 1
    context...
    Yeah, I can live with that for the rest of my users under context2....
    Marc, just trying to help...
    craig wilson wrote:
    > All I can tell you is that it is not going to happen.
    > Contextless Login is done via the client login utilities.
    > These utilities are not involved in the pass-through authentication
    > process. It may not even be possible to do.
    >
    > Through the use of IDM or Lynx this can be completely automated.
    > ------------------------------------------------------------------
    >
    > Create a local account on a workstation and a matching account on a
    > Domain with a matching password.
    >
    > Login locally to the PC and try to access the DC.
    > It works.
    >
    > Try to access a member server to which the domain account has rights.
    > It fails and prompts you to enter your user ID. Specify the ID in
    > domain/id format and you get in.
    >
    > Basically a failure of Passthrough authentication because the "Default"
    > security container is the local SAM for both systems. One holds the ID
    > one does not.
    >
    > This is really the same basic issue Novell is having via passthrough
    > authentication.
    >
    >
    >
    >
    >
    > Marc-Andre Vallee wrote:
    >> come on..........
    >> RFE....
    >

  • Failed: Media Server application unexpectedly quit

    Hi!
    I have a 2.5 hour movie which I have sent to Compressor to convert using the DVD Best Quality 150min preset. However, after 2 tries (leaving it rendering voer night) I keep getting the message- Failed: Media Server application unexpectedly quit.
    I got the audio track perfect, but the video track seems to be the problematic one.
    What does this mean? It is very frustrating, especially i am on a tight deadline now. What did I do wrong?

    Well, I'm not sure what exactly is going on yet, but here's what I've done:
    I followed these steps for the "Unable to connect to background process" issue that Compressor sometimes has, even though that wasn't the issue. It sort of made sense to do, though, because when I reinstalled FCP and DVDSP, I did DVDSP4 first, then FCP HD 4.5, which predates DVDSP 4 by a generation (I think). So it was possible that Compressor got screwed up in the install...still hard to tell, though.
    So then I just tried a bunch of videos in Compressor. After several various attempts, it appears that *perhaps, maybe* it was just a bad custom preset. The built-in 150 min 2-Pass is currently working away on the video, and is 10% into it, which is 10% more than the custom preset ever got.
    So, I'm gong to let that encode, and then try to make the preset again, from scratch, and see I can figure anything out. The only thing different between the 150 min 2-Pass preset and my version of it was the addition of a Gamma Correction filter. So, who knows...
    If anyone knows anything else, please make a post.

Maybe you are looking for

  • Problem in Loading apex images during the installation

    This is the state now...... SQL> @apxldimg D:\apex PL/SQL procedure successfully completed. old   1: create directory APEX_IMAGES as '&1/apex/images' new   1: create directory APEX_IMAGES as 'D:\apex/apex/images' Directory created. PL/SQL procedure s

  • Clarification needed : status field in ME22N

    Hi all, I had problem if i send PO Output to an email. <b><b>ME22N->messages->..i got status Yellow light</b> If i check the same in scot Utilities->overview of send orders-> if i execute that screen , i got message in status text like "Message canno

  • Click JButton in JApplet, write text to file to download

    Ok, here's what i want to do... i don't even know if it's possible. I want to click a button and have a popup window asking where to save the file to that was just created from output (a text file) instead of just clicking a button to write it to a p

  • ITunes 11.0.1 window size issue

    The window size on my copy of iTunes 11.0.1 has stretched beyond the bottom of the screen.  I am no longer able to resize the window except in width.  This came about when I lowered the window until only the top of the menu bar was exposed at the bot

  • WiFi Adapter Not Detected

    Hello, I recently just got a WiFi adapter for my Mac because my Mac's inbuilt one doesn't have that good range. I'm running Mavericks 10.9.5. When I plugged in the dongle, it did not light up and my Mac did not even recognize it, but when I plugged i