//in C:\JRun4\servers\default\flex\WEB-INF\classes\test
package test;
import flex.messaging.FlexSession;
import flex.messaging.FlexSessionListener;
import flex.data.DataServiceTransaction;
public class MyTest implements FlexSessionListener
{
private static FeedThread thread;
public MyTest()
{
thread = new FeedThread();
thread.start();
FlexSession.addSessionCreatedListener(this);
}
public void sessionCreated( FlexSession session )
{
System.out.println( "sessionDestroyed!" );
}
public void sessionDestroyed( FlexSession session )
{
System.out.println( "sessionDestroyed!" );
}
public static class FeedThread extends Thread
{
public boolean running = true;
public void run()
{
while (running)
{
/*
DataServiceTransaction dtx = DataServiceTransaction.begin( false );
dtx.refreshFill( "myDest", new ArrayList() );
*/
System.out.println( "running!" );
try
{
Thread.sleep(1000);
}
catch (InterruptedException e)
{
}
}
}
}
}
__._,_.___
--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com
SPONSORED LINKS
| Web site design development | Computer software development | Software design and development |
| Macromedia flex | Software development best practice |
YAHOO! GROUPS LINKS
- Visit your group "flexcoders" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.

