terryhanks
02-22-2005, 10:41 AM
Hi,
I recently downloaded your server and wish to develop games using flash mx. My experience is mainly server side java. Servlets and EJBs. I am new to flash and actionscript , but I have had experience with javascript though mainly for form validation. Please excuse my spelling.
By the way the examples of Java plugins that you show in this forum look very straight forward.
Your plugins have no main class – do they run as threads in your server?
Are there multithreading issues in developing Java plugins?
I assume that it is best to use method variables, and to expect that no state is maintained between invocations of a plugin?
Can either room or server plug-ins maintain any type of state- other than writing to a file?
If a structure can be shared and updated across plugins, then I quess that is should be synchronized? Say use a hashtable rather than a hashmap?
Are there ways to serialize access to a shared object? My experience with multithreading is were I either create my own threads and take care of synchronization, or I use ejbs and let the ejb container take care of threading issues.
Do plug-in setInterval events correspond to Java timer threads?
If multiple plug-ins share access to a file that they append with writeFile, does a plugin have a write lock during the append? I experience this kind of issue with log4j daily appender.
Can plug-ins create their own i/o streams?
If I create a simple standalone http client class and import it, can my java plugin call an HTTP servlet running on the same host? – I might have tomcat or jboss running on the host.
I assume that plug-ins can use helper classes as long as you import them?
Can I use almost any java library that I place in the server lib directory in my plugin? If I place a jar file in the server lib file, must I modify the electroserver classpath to access it?
Is it a bad idea to spawn a thread in a plug-in? Would be like spawning a thread in a thread?
Sorry to be asking so many questions. I am really impressed with the quality of the games at your site, and with what I can see of some of the example applications that you show.
Thanks for your help.
Terry
I recently downloaded your server and wish to develop games using flash mx. My experience is mainly server side java. Servlets and EJBs. I am new to flash and actionscript , but I have had experience with javascript though mainly for form validation. Please excuse my spelling.
By the way the examples of Java plugins that you show in this forum look very straight forward.
Your plugins have no main class – do they run as threads in your server?
Are there multithreading issues in developing Java plugins?
I assume that it is best to use method variables, and to expect that no state is maintained between invocations of a plugin?
Can either room or server plug-ins maintain any type of state- other than writing to a file?
If a structure can be shared and updated across plugins, then I quess that is should be synchronized? Say use a hashtable rather than a hashmap?
Are there ways to serialize access to a shared object? My experience with multithreading is were I either create my own threads and take care of synchronization, or I use ejbs and let the ejb container take care of threading issues.
Do plug-in setInterval events correspond to Java timer threads?
If multiple plug-ins share access to a file that they append with writeFile, does a plugin have a write lock during the append? I experience this kind of issue with log4j daily appender.
Can plug-ins create their own i/o streams?
If I create a simple standalone http client class and import it, can my java plugin call an HTTP servlet running on the same host? – I might have tomcat or jboss running on the host.
I assume that plug-ins can use helper classes as long as you import them?
Can I use almost any java library that I place in the server lib directory in my plugin? If I place a jar file in the server lib file, must I modify the electroserver classpath to access it?
Is it a bad idea to spawn a thread in a plug-in? Would be like spawning a thread in a thread?
Sorry to be asking so many questions. I am really impressed with the quality of the games at your site, and with what I can see of some of the example applications that you show.
Thanks for your help.
Terry