Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > Java > beanshell interpreter thread

Thread Tools

beanshell interpreter thread

Posts: n/a
Hi All,

I'm don't have any experience with threads in Java but when I added
the beanshell interpreter in a JConsole window as shown in the
examples on the Beanshell website, its starts in a new thread.
My beanshell scripts which modify the main application data structures
apparently conflict the main application paint() methods as they both
end accessing the data structures at the same time which causes a java
exception. The same scripts work when starting the interpreter in
the same thread not using the JConsole.

Is there a way synchronize the interpreter started in a new thread
that runs in the JConsole to the main application thread so this
conflict does not occur?

Thanks in advance for any help,
Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
beanshell interpreter timinganalyzer Java 0 07-07-2008 12:20 AM
Terminating a thread from beanshell Uppu Java 0 02-27-2006 09:23 AM
BeanShell Interpreter ImportCommands() Problems Michael Pitoniak Java 1 12-20-2003 07:25 PM
Beanshell - assignment operator not working? Wolfgang Groiss Java 0 11-19-2003 03:56 PM
[BEANSHELL] Extends SOl Java 0 07-19-2003 06:12 PM