Re: Only 1 GUI thread & dialogs (was Re: 2 JavaFX applets in the same JVM)
On 7/9/2014 1:51 AM, ngalarn...@abinitio.com wrote: Hi Steve, My understanding of Swing was that when in a modal dialog, which blocked the EDT, a second EDT was fired up for the duration of the dialog to keep the events flowing. Swing doesn't do that. When a modal dialog is shown, it starts a nested event loop on the same event dispatching thread. JavaFX dialogs are implemented the same way. When you say, below, that only 1 GUI thread is supported (and that thread is the native GUI thread), how are (will?) modal dialogs handled? See above. They are implemented with nested event loops. Thanks, Artem Thanks, Neil P.S. I've been trying to read Jonathan's article on dialogs on fxexperience.com, but haven't been able to because I get redirected to hosting.xmission.com From: Stephen F Northover To: Kevin Rushforth , ngalarn...@abinitio.com, Cc: openjfx-dev@openjdk.java.net Date: 07/08/2014 03:41 PM Subject: Re: 2 JavaFX applets in the same JVM This would imply that there was more than on distinguished GUI thread per process. JavaFX runs in the native GUI thread by design and more than one GUI thread is not supported in JavaFX and on some platforms (ie. Mac). Steve On 2014-07-08, 3:31 PM, Kevin Rushforth wrote: Is running 2 JavaFX applets in the same JVM supported? No, this is not supported. RT-29969 (and the non-public RT-32321) is about running multiple applets from the same web page, each in their own JVM. By design, JavaFX runs each applet in its own VM. It is very unlikely that we would ever add the ability to run more than JavaFX applet in the same VM. -- Kevin ngalarn...@abinitio.com wrote: Hello, What is the status of running 2 JavaFX applets in the same JVM (separate_jvm = false)? When we try to load 2 applets into the same JVM we get a runtime error (I think it was class loader related). When I searched in jira I found RT-29969 (the 2 applet test it refers to may or may not be in the same JVM) which points to RT-32321 which seems to be private (it gives me an error when I try to access it). Is running 2 JavaFX applets in the same JVM supported? If not, is that a bug or a feature? Thanks, Neil NOTICE from Ab Initio: This email (including any attachments) may contain information that is subject to confidentiality obligations or is legally privileged, and sender does not waive confidentiality or privilege. If received in error, please notify the sender, delete this email, and make no further use, disclosure, or distribution. NOTICE from Ab Initio: This email (including any attachments) may contain information that is subject to confidentiality obligations or is legally privileged, and sender does not waive confidentiality or privilege. If received in error, please notify the sender, delete this email, and make no further use, disclosure, or distribution.
Re: Only 1 GUI thread & dialogs (was Re: 2 JavaFX applets in the same JVM)
Curiously the redirect happens to me in Chrome & Firefox, but not in IE. Using Chrome's debugger I can see that it reaches the real site, gets an http 200 (not a redirect) from it & then goes to the xmission site. Unfortunately chrome doesn't show me why it does so. Oh well, at least I can read the article in IE now. :-) From: Jonathan Giles To: Richard Bair , ngalarn...@abinitio.com, Cc: openjfx-dev@openjdk.java.net Date: 07/08/2014 06:02 PM Subject:Re: Only 1 GUI thread & dialogs (was Re: 2 JavaFX applets in the same JVM) Fxexperience.com is fine for me from Australia. I recommend a ctrl-F5 to force a refresh. -- Jonathan Sent from a touch device. Please excuse my brevity. On 9 July 2014 07:54:39 GMT+10:00, Richard Bair wrote: Hmmm… FX Experience is running for me. Is anybody else having this problem? Richard On Jul 8, 2014, at 2:51 PM, ngalarn...@abinitio.com wrote: Hi Steve, My understanding of Swing was that when in a modal dialog, which blocked the EDT, a second EDT was fired up for the duration of the dialog to keep the events flowing. When you say, below, that only 1 GUI thread is supported (and that thread is the native GUI thread), how are (will?) modal dialogs handled? Thanks, Neil P.S. I've been trying to read Jonathan's article on dialogs on fxexperience.com, but haven't been able to because I get redirected to hosting.xmission.com From: Stephen F Northover To: Kevin Rushforth , ngalarn...@abinitio.com, Cc: openjfx-dev@openjdk.java.net Date: 07/08/2014 03:41 PM Subject: Re: 2 JavaFX applets in the same JVM This would imply that there was more than on distinguished GUI thread per process. JavaFX runs in the native GUI thread by design and more than one GUI thread is not supported in JavaFX and on some platforms (ie. Mac). Steve On 2014-07-08, 3:31 PM, Kevin Rushforth wrote: Is running 2 JavaFX applets in the same JVM supported? No, this is not supported. RT-29969 (and the non-public RT-32321) is about running multiple applets from the same web page, each in their own JVM. By design, JavaFX runs each applet in its own VM. It is very unlikely that we would ever add the ability to run more than JavaFX applet in the same VM. -- Kevin ngalarn...@abinitio.com wrote: Hello, What is the status of running 2 JavaFX applets in the same JVM (separate_jvm = false)? When we try to load 2 applets into the same JVM we get a runtime error (I think it was class loader related). When I searched in jira I found RT-29969 (the 2 applet test it refers to may or may not be in the same JVM) which points to RT-32321 which seems to be private (it gives me an error when I try to access it). Is running 2 JavaFX applets in the same JVM supported? If not, is that a bug or a feature? Thanks, Neil NOTICE from Ab Initio: This email (including any attachments) may contain information that is subject to confidentiality obligations or is legally privileged, and sender does not waive confidentiality or privilege. If received in error, please notify the sender, delete this email, and make no further use, disclosure, or distribution. NOTICE from Ab Initio: This email (including any attachments) may contain information that is subject to confidentiality obligations or is legally privileged, and sender does not waive confidentiality or privilege. If received in error, please notify the sender, delete this email, and make no further use, disclosure, or distribution. NOTICE from Ab Initio: This email (including any attachments) may contain information that is subject to confidentiality obligations or is legally privileged, and sender does not waive confidentiality or privilege. If received in error, please notify the sender, delete this email, and make no further use, disclosure, or distribution.
Re: Only 1 GUI thread & dialogs (was Re: 2 JavaFX applets in the same JVM)
Me and my stupid fingers. I meant to type: JavaFX does the same thing for a blocking, modal dialog. It *isn't* done using another thread, though. Kevin Rushforth wrote: JavaFX does the same thing for a blocking, modal dialog. It done using another thread, though. -- Kevin ngalarn...@abinitio.com wrote: Hi Steve, My understanding of Swing was that when in a modal dialog, which blocked the EDT, a second EDT was fired up for the duration of the dialog to keep the events flowing. When you say, below, that only 1 GUI thread is supported (and that thread is the native GUI thread), how are (will?) modal dialogs handled? Thanks, Neil P.S. I've been trying to read Jonathan's article on dialogs on fxexperience.com, but haven't been able to because I get redirected to hosting.xmission.com From: Stephen F Northover To: Kevin Rushforth , ngalarn...@abinitio.com, Cc: openjfx-dev@openjdk.java.net Date: 07/08/2014 03:41 PM Subject: Re: 2 JavaFX applets in the same JVM This would imply that there was more than on distinguished GUI thread per process. JavaFX runs in the native GUI thread by design and more than one GUI thread is not supported in JavaFX and on some platforms (ie. Mac). Steve On 2014-07-08, 3:31 PM, Kevin Rushforth wrote: Is running 2 JavaFX applets in the same JVM supported? No, this is not supported. RT-29969 (and the non-public RT-32321) is about running multiple applets from the same web page, each in their own JVM. By design, JavaFX runs each applet in its own VM. It is very unlikely that we would ever add the ability to run more than JavaFX applet in the same VM. -- Kevin ngalarn...@abinitio.com wrote: Hello, What is the status of running 2 JavaFX applets in the same JVM (separate_jvm = false)? When we try to load 2 applets into the same JVM we get a runtime error (I think it was class loader related). When I searched in jira I found RT-29969 (the 2 applet test it refers to may or may not be in the same JVM) which points to RT-32321 which seems to be private (it gives me an error when I try to access it). Is running 2 JavaFX applets in the same JVM supported? If not, is that a bug or a feature? Thanks, Neil NOTICE from Ab Initio: This email (including any attachments) may contain information that is subject to confidentiality obligations or is legally privileged, and sender does not waive confidentiality or privilege. If received in error, please notify the sender, delete this email, and make no further use, disclosure, or distribution. NOTICE from Ab Initio: This email (including any attachments) may contain information that is subject to confidentiality obligations or is legally privileged, and sender does not waive confidentiality or privilege. If received in error, please notify the sender, delete this email, and make no further use, disclosure, or distribution.
Re: Only 1 GUI thread & dialogs (was Re: 2 JavaFX applets in the same JVM)
Fxexperience.com is fine for me from Australia. I recommend a ctrl-F5 to force a refresh. -- Jonathan Sent from a touch device. Please excuse my brevity. On 9 July 2014 07:54:39 GMT+10:00, Richard Bair wrote: >Hmmm… FX Experience is running for me. Is anybody else having this >problem? > >Richard > >On Jul 8, 2014, at 2:51 PM, ngalarn...@abinitio.com wrote: > >> Hi Steve, >> >> My understanding of Swing was that when in a modal dialog, which >blocked >> the EDT, a second EDT was fired up for the duration of the dialog to >keep >> the events flowing. >> >> When you say, below, that only 1 GUI thread is supported (and that >thread >> is the native GUI thread), how are (will?) modal dialogs handled? >> >> >> Thanks, >> >> Neil >> >> P.S. I've been trying to read Jonathan's article on dialogs on >> fxexperience.com, but haven't been able to because I get redirected >to >> hosting.xmission.com >> >> >> >> From: Stephen F Northover >> To: Kevin Rushforth , >> ngalarn...@abinitio.com, >> Cc: openjfx-dev@openjdk.java.net >> Date: 07/08/2014 03:41 PM >> Subject:Re: 2 JavaFX applets in the same JVM >> >> >> >> This would imply that there was more than on distinguished GUI thread > >> per process. JavaFX runs in the native GUI thread by design and more > >> than one GUI thread is not supported in JavaFX and on some platforms >> (ie. Mac). >> >> Steve >> >> On 2014-07-08, 3:31 PM, Kevin Rushforth wrote: >>> >>>> Is running 2 JavaFX applets in the same JVM supported? >>> >>> No, this is not supported. RT-29969 (and the non-public RT-32321) is > >>> about running multiple applets from the same web page, each in their > >>> own JVM. By design, JavaFX runs each applet in its own VM. It is >very >>> unlikely that we would ever add the ability to run more than JavaFX >>> applet in the same VM. >>> >>> -- Kevin >>> >>> >>> ngalarn...@abinitio.com wrote: >>>> Hello, >>>> >>>> What is the status of running 2 JavaFX applets in the same JVM >>>> (separate_jvm = false)? >>>> When we try to load 2 applets into the same JVM we get a runtime >>>> error (I think it was class loader related). >>>> >>>> When I searched in jira I found RT-29969 (the 2 applet test it >refers >>>> to may or may not be in the same JVM) which points to RT-32321 >which >>>> seems to be private (it gives me an error when I try to access it). >>>> >>>> Is running 2 JavaFX applets in the same JVM supported? >>>> >>>> If not, is that a bug or a feature? >>>> >>>> >>>> Thanks, >>>> >>>> Neil >>>> >>>> >>>> >>>> NOTICE from Ab Initio: This email (including any attachments) may >>>> contain information that is subject to confidentiality obligations >or >>>> is legally privileged, and sender does not waive confidentiality or > >>>> privilege. If received in error, please notify the sender, delete >>>> this email, and make no further use, disclosure, or distribution. >> >> >> >> >> >> NOTICE from Ab Initio: This email (including any attachments) may >contain >> information that is subject to confidentiality obligations or is >legally >> privileged, and sender does not waive confidentiality or privilege. >If >> received in error, please notify the sender, delete this email, and >make >> no further use, disclosure, or distribution.
Re: Only 1 GUI thread & dialogs (was Re: 2 JavaFX applets in the same JVM)
JavaFX does the same thing for a blocking, modal dialog. It done using another thread, though. -- Kevin ngalarn...@abinitio.com wrote: Hi Steve, My understanding of Swing was that when in a modal dialog, which blocked the EDT, a second EDT was fired up for the duration of the dialog to keep the events flowing. When you say, below, that only 1 GUI thread is supported (and that thread is the native GUI thread), how are (will?) modal dialogs handled? Thanks, Neil P.S. I've been trying to read Jonathan's article on dialogs on fxexperience.com, but haven't been able to because I get redirected to hosting.xmission.com From: Stephen F Northover To: Kevin Rushforth , ngalarn...@abinitio.com, Cc: openjfx-dev@openjdk.java.net Date: 07/08/2014 03:41 PM Subject: Re: 2 JavaFX applets in the same JVM This would imply that there was more than on distinguished GUI thread per process. JavaFX runs in the native GUI thread by design and more than one GUI thread is not supported in JavaFX and on some platforms (ie. Mac). Steve On 2014-07-08, 3:31 PM, Kevin Rushforth wrote: Is running 2 JavaFX applets in the same JVM supported? No, this is not supported. RT-29969 (and the non-public RT-32321) is about running multiple applets from the same web page, each in their own JVM. By design, JavaFX runs each applet in its own VM. It is very unlikely that we would ever add the ability to run more than JavaFX applet in the same VM. -- Kevin ngalarn...@abinitio.com wrote: Hello, What is the status of running 2 JavaFX applets in the same JVM (separate_jvm = false)? When we try to load 2 applets into the same JVM we get a runtime error (I think it was class loader related). When I searched in jira I found RT-29969 (the 2 applet test it refers to may or may not be in the same JVM) which points to RT-32321 which seems to be private (it gives me an error when I try to access it). Is running 2 JavaFX applets in the same JVM supported? If not, is that a bug or a feature? Thanks, Neil NOTICE from Ab Initio: This email (including any attachments) may contain information that is subject to confidentiality obligations or is legally privileged, and sender does not waive confidentiality or privilege. If received in error, please notify the sender, delete this email, and make no further use, disclosure, or distribution. NOTICE from Ab Initio: This email (including any attachments) may contain information that is subject to confidentiality obligations or is legally privileged, and sender does not waive confidentiality or privilege. If received in error, please notify the sender, delete this email, and make no further use, disclosure, or distribution.
Re: Only 1 GUI thread & dialogs (was Re: 2 JavaFX applets in the same JVM)
What is the question? How are modal dialogs done in FX? A new event loop is stacked on top of the old, running in the same thread. Steve On 2014-07-08, 5:54 PM, Richard Bair wrote: Hmmm… FX Experience is running for me. Is anybody else having this problem? Richard On Jul 8, 2014, at 2:51 PM, ngalarn...@abinitio.com wrote: Hi Steve, My understanding of Swing was that when in a modal dialog, which blocked the EDT, a second EDT was fired up for the duration of the dialog to keep the events flowing. When you say, below, that only 1 GUI thread is supported (and that thread is the native GUI thread), how are (will?) modal dialogs handled? Thanks, Neil P.S. I've been trying to read Jonathan's article on dialogs on fxexperience.com, but haven't been able to because I get redirected to hosting.xmission.com From: Stephen F Northover To: Kevin Rushforth , ngalarn...@abinitio.com, Cc: openjfx-dev@openjdk.java.net Date: 07/08/2014 03:41 PM Subject: Re: 2 JavaFX applets in the same JVM This would imply that there was more than on distinguished GUI thread per process. JavaFX runs in the native GUI thread by design and more than one GUI thread is not supported in JavaFX and on some platforms (ie. Mac). Steve On 2014-07-08, 3:31 PM, Kevin Rushforth wrote: Is running 2 JavaFX applets in the same JVM supported? No, this is not supported. RT-29969 (and the non-public RT-32321) is about running multiple applets from the same web page, each in their own JVM. By design, JavaFX runs each applet in its own VM. It is very unlikely that we would ever add the ability to run more than JavaFX applet in the same VM. -- Kevin ngalarn...@abinitio.com wrote: Hello, What is the status of running 2 JavaFX applets in the same JVM (separate_jvm = false)? When we try to load 2 applets into the same JVM we get a runtime error (I think it was class loader related). When I searched in jira I found RT-29969 (the 2 applet test it refers to may or may not be in the same JVM) which points to RT-32321 which seems to be private (it gives me an error when I try to access it). Is running 2 JavaFX applets in the same JVM supported? If not, is that a bug or a feature? Thanks, Neil NOTICE from Ab Initio: This email (including any attachments) may contain information that is subject to confidentiality obligations or is legally privileged, and sender does not waive confidentiality or privilege. If received in error, please notify the sender, delete this email, and make no further use, disclosure, or distribution. NOTICE from Ab Initio: This email (including any attachments) may contain information that is subject to confidentiality obligations or is legally privileged, and sender does not waive confidentiality or privilege. If received in error, please notify the sender, delete this email, and make no further use, disclosure, or distribution.
Re: Only 1 GUI thread & dialogs (was Re: 2 JavaFX applets in the same JVM)
Hmmm… FX Experience is running for me. Is anybody else having this problem? Richard On Jul 8, 2014, at 2:51 PM, ngalarn...@abinitio.com wrote: > Hi Steve, > > My understanding of Swing was that when in a modal dialog, which blocked > the EDT, a second EDT was fired up for the duration of the dialog to keep > the events flowing. > > When you say, below, that only 1 GUI thread is supported (and that thread > is the native GUI thread), how are (will?) modal dialogs handled? > > > Thanks, > > Neil > > P.S. I've been trying to read Jonathan's article on dialogs on > fxexperience.com, but haven't been able to because I get redirected to > hosting.xmission.com > > > > From: Stephen F Northover > To: Kevin Rushforth , > ngalarn...@abinitio.com, > Cc: openjfx-dev@openjdk.java.net > Date: 07/08/2014 03:41 PM > Subject:Re: 2 JavaFX applets in the same JVM > > > > This would imply that there was more than on distinguished GUI thread > per process. JavaFX runs in the native GUI thread by design and more > than one GUI thread is not supported in JavaFX and on some platforms > (ie. Mac). > > Steve > > On 2014-07-08, 3:31 PM, Kevin Rushforth wrote: >> >>> Is running 2 JavaFX applets in the same JVM supported? >> >> No, this is not supported. RT-29969 (and the non-public RT-32321) is >> about running multiple applets from the same web page, each in their >> own JVM. By design, JavaFX runs each applet in its own VM. It is very >> unlikely that we would ever add the ability to run more than JavaFX >> applet in the same VM. >> >> -- Kevin >> >> >> ngalarn...@abinitio.com wrote: >>> Hello, >>> >>> What is the status of running 2 JavaFX applets in the same JVM >>> (separate_jvm = false)? >>> When we try to load 2 applets into the same JVM we get a runtime >>> error (I think it was class loader related). >>> >>> When I searched in jira I found RT-29969 (the 2 applet test it refers >>> to may or may not be in the same JVM) which points to RT-32321 which >>> seems to be private (it gives me an error when I try to access it). >>> >>> Is running 2 JavaFX applets in the same JVM supported? >>> >>> If not, is that a bug or a feature? >>> >>> >>> Thanks, >>> >>> Neil >>> >>> >>> >>> NOTICE from Ab Initio: This email (including any attachments) may >>> contain information that is subject to confidentiality obligations or >>> is legally privileged, and sender does not waive confidentiality or >>> privilege. If received in error, please notify the sender, delete >>> this email, and make no further use, disclosure, or distribution. > > > > > > NOTICE from Ab Initio: This email (including any attachments) may contain > information that is subject to confidentiality obligations or is legally > privileged, and sender does not waive confidentiality or privilege. If > received in error, please notify the sender, delete this email, and make > no further use, disclosure, or distribution.
Only 1 GUI thread & dialogs (was Re: 2 JavaFX applets in the same JVM)
Hi Steve, My understanding of Swing was that when in a modal dialog, which blocked the EDT, a second EDT was fired up for the duration of the dialog to keep the events flowing. When you say, below, that only 1 GUI thread is supported (and that thread is the native GUI thread), how are (will?) modal dialogs handled? Thanks, Neil P.S. I've been trying to read Jonathan's article on dialogs on fxexperience.com, but haven't been able to because I get redirected to hosting.xmission.com From: Stephen F Northover To: Kevin Rushforth , ngalarn...@abinitio.com, Cc: openjfx-dev@openjdk.java.net Date: 07/08/2014 03:41 PM Subject: Re: 2 JavaFX applets in the same JVM This would imply that there was more than on distinguished GUI thread per process. JavaFX runs in the native GUI thread by design and more than one GUI thread is not supported in JavaFX and on some platforms (ie. Mac). Steve On 2014-07-08, 3:31 PM, Kevin Rushforth wrote: > > > Is running 2 JavaFX applets in the same JVM supported? > > No, this is not supported. RT-29969 (and the non-public RT-32321) is > about running multiple applets from the same web page, each in their > own JVM. By design, JavaFX runs each applet in its own VM. It is very > unlikely that we would ever add the ability to run more than JavaFX > applet in the same VM. > > -- Kevin > > > ngalarn...@abinitio.com wrote: >> Hello, >> >> What is the status of running 2 JavaFX applets in the same JVM >> (separate_jvm = false)? >> When we try to load 2 applets into the same JVM we get a runtime >> error (I think it was class loader related). >> >> When I searched in jira I found RT-29969 (the 2 applet test it refers >> to may or may not be in the same JVM) which points to RT-32321 which >> seems to be private (it gives me an error when I try to access it). >> >> Is running 2 JavaFX applets in the same JVM supported? >> >> If not, is that a bug or a feature? >> >> >> Thanks, >> >> Neil >> >> >> >> NOTICE from Ab Initio: This email (including any attachments) may >> contain information that is subject to confidentiality obligations or >> is legally privileged, and sender does not waive confidentiality or >> privilege. If received in error, please notify the sender, delete >> this email, and make no further use, disclosure, or distribution. NOTICE from Ab Initio: This email (including any attachments) may contain information that is subject to confidentiality obligations or is legally privileged, and sender does not waive confidentiality or privilege. If received in error, please notify the sender, delete this email, and make no further use, disclosure, or distribution.
Re: 2 JavaFX applets in the same JVM
Gentlemen, Thank you for the informative replies. My understanding with plugin2 and Swing back in Java 6 was that as long as the jvm parameters for each applet were the same, 2 applets on the same html page could share the jvm. I can see, however, that JavaFX running in the native GUI thread would make it really hard to support 2 applets (and therefore 2 javafx.application.Applications) in the same JVM. To Kevin's question, we were looking for 2 things from multiple applets in a shared JVM: 1) reduced resource consumption compared to separate JVMs 2) hopefully easier inter applet communication With a trivial Java 8 update 20 applet needing 141 Meg, if there are several, they can start to add up memory wise. As to #2, we can probably have the multiple applets communicate through javascript (since the javascript support seems to be pretty strong). Not as elegant, but it will probably work. Thanks, Neil From: Kevin Rushforth To: Richard Bair , Cc: Stephen F Northover , ngalarn...@abinitio.com, openjfx-dev@openjdk.java.net Date: 07/08/2014 03:48 PM Subject: Re: 2 JavaFX applets in the same JVM Hi Neil, What problem are you trying to solve? Running multiple applets in the same VM is a means to some end for you, so knowing what you are trying to do might lead to a discussion of another way to accomplish what you need. -- Kevin Richard Bair wrote: And to top it all off, supporting shared JVMs is extremely security challenging. On Jul 8, 2014, at 12:40 PM, Stephen F Northover wrote: This would imply that there was more than on distinguished GUI thread per process. JavaFX runs in the native GUI thread by design and more than one GUI thread is not supported in JavaFX and on some platforms (ie. Mac). Steve On 2014-07-08, 3:31 PM, Kevin Rushforth wrote: Is running 2 JavaFX applets in the same JVM supported? No, this is not supported. RT-29969 (and the non-public RT-32321) is about running multiple applets from the same web page, each in their own JVM. By design, JavaFX runs each applet in its own VM. It is very unlikely that we would ever add the ability to run more than JavaFX applet in the same VM. -- Kevin ngalarn...@abinitio.com wrote: Hello, What is the status of running 2 JavaFX applets in the same JVM (separate_jvm = false)? When we try to load 2 applets into the same JVM we get a runtime error (I think it was class loader related). When I searched in jira I found RT-29969 (the 2 applet test it refers to may or may not be in the same JVM) which points to RT-32321 which seems to be private (it gives me an error when I try to access it). Is running 2 JavaFX applets in the same JVM supported? If not, is that a bug or a feature? Thanks, Neil NOTICE from Ab Initio: This email (including any attachments) may contain information that is subject to confidentiality obligations or is legally privileged, and sender does not waive confidentiality or privilege. If received in error, please notify the sender, delete this email, and make no further use, disclosure, or distribution.
Re: 2 JavaFX applets in the same JVM
Hi Neil, What problem are you trying to solve? Running multiple applets in the same VM is a means to some end for you, so knowing what you are trying to do might lead to a discussion of another way to accomplish what you need. -- Kevin Richard Bair wrote: And to top it all off, supporting shared JVMs is extremely security challenging. On Jul 8, 2014, at 12:40 PM, Stephen F Northover wrote: This would imply that there was more than on distinguished GUI thread per process. JavaFX runs in the native GUI thread by design and more than one GUI thread is not supported in JavaFX and on some platforms (ie. Mac). Steve On 2014-07-08, 3:31 PM, Kevin Rushforth wrote: Is running 2 JavaFX applets in the same JVM supported? No, this is not supported. RT-29969 (and the non-public RT-32321) is about running multiple applets from the same web page, each in their own JVM. By design, JavaFX runs each applet in its own VM. It is very unlikely that we would ever add the ability to run more than JavaFX applet in the same VM. -- Kevin ngalarn...@abinitio.com wrote: Hello, What is the status of running 2 JavaFX applets in the same JVM (separate_jvm = false)? When we try to load 2 applets into the same JVM we get a runtime error (I think it was class loader related). When I searched in jira I found RT-29969 (the 2 applet test it refers to may or may not be in the same JVM) which points to RT-32321 which seems to be private (it gives me an error when I try to access it). Is running 2 JavaFX applets in the same JVM supported? If not, is that a bug or a feature? Thanks, Neil NOTICE from Ab Initio: This email (including any attachments) may contain information that is subject to confidentiality obligations or is legally privileged, and sender does not waive confidentiality or privilege. If received in error, please notify the sender, delete this email, and make no further use, disclosure, or distribution.
Re: 2 JavaFX applets in the same JVM
And to top it all off, supporting shared JVMs is extremely security challenging. On Jul 8, 2014, at 12:40 PM, Stephen F Northover wrote: > This would imply that there was more than on distinguished GUI thread per > process. JavaFX runs in the native GUI thread by design and more than one > GUI thread is not supported in JavaFX and on some platforms (ie. Mac). > > Steve > > On 2014-07-08, 3:31 PM, Kevin Rushforth wrote: >> >> > Is running 2 JavaFX applets in the same JVM supported? >> >> No, this is not supported. RT-29969 (and the non-public RT-32321) is about >> running multiple applets from the same web page, each in their own JVM. By >> design, JavaFX runs each applet in its own VM. It is very unlikely that we >> would ever add the ability to run more than JavaFX applet in the same VM. >> >> -- Kevin >> >> >> ngalarn...@abinitio.com wrote: >>> Hello, >>> >>> What is the status of running 2 JavaFX applets in the same JVM >>> (separate_jvm = false)? >>> When we try to load 2 applets into the same JVM we get a runtime error (I >>> think it was class loader related). >>> >>> When I searched in jira I found RT-29969 (the 2 applet test it refers to >>> may or may not be in the same JVM) which points to RT-32321 which seems to >>> be private (it gives me an error when I try to access it). >>> >>> Is running 2 JavaFX applets in the same JVM supported? >>> >>> If not, is that a bug or a feature? >>> >>> >>> Thanks, >>> >>> Neil >>> >>> >>> >>> NOTICE from Ab Initio: This email (including any attachments) may contain >>> information that is subject to confidentiality obligations or is legally >>> privileged, and sender does not waive confidentiality or privilege. If >>> received in error, please notify the sender, delete this email, and make no >>> further use, disclosure, or distribution. >
Re: 2 JavaFX applets in the same JVM
This would imply that there was more than on distinguished GUI thread per process. JavaFX runs in the native GUI thread by design and more than one GUI thread is not supported in JavaFX and on some platforms (ie. Mac). Steve On 2014-07-08, 3:31 PM, Kevin Rushforth wrote: > Is running 2 JavaFX applets in the same JVM supported? No, this is not supported. RT-29969 (and the non-public RT-32321) is about running multiple applets from the same web page, each in their own JVM. By design, JavaFX runs each applet in its own VM. It is very unlikely that we would ever add the ability to run more than JavaFX applet in the same VM. -- Kevin ngalarn...@abinitio.com wrote: Hello, What is the status of running 2 JavaFX applets in the same JVM (separate_jvm = false)? When we try to load 2 applets into the same JVM we get a runtime error (I think it was class loader related). When I searched in jira I found RT-29969 (the 2 applet test it refers to may or may not be in the same JVM) which points to RT-32321 which seems to be private (it gives me an error when I try to access it). Is running 2 JavaFX applets in the same JVM supported? If not, is that a bug or a feature? Thanks, Neil NOTICE from Ab Initio: This email (including any attachments) may contain information that is subject to confidentiality obligations or is legally privileged, and sender does not waive confidentiality or privilege. If received in error, please notify the sender, delete this email, and make no further use, disclosure, or distribution.
Re: 2 JavaFX applets in the same JVM
> Is running 2 JavaFX applets in the same JVM supported? No, this is not supported. RT-29969 (and the non-public RT-32321) is about running multiple applets from the same web page, each in their own JVM. By design, JavaFX runs each applet in its own VM. It is very unlikely that we would ever add the ability to run more than JavaFX applet in the same VM. -- Kevin ngalarn...@abinitio.com wrote: Hello, What is the status of running 2 JavaFX applets in the same JVM (separate_jvm = false)? When we try to load 2 applets into the same JVM we get a runtime error (I think it was class loader related). When I searched in jira I found RT-29969 (the 2 applet test it refers to may or may not be in the same JVM) which points to RT-32321 which seems to be private (it gives me an error when I try to access it). Is running 2 JavaFX applets in the same JVM supported? If not, is that a bug or a feature? Thanks, Neil NOTICE from Ab Initio: This email (including any attachments) may contain information that is subject to confidentiality obligations or is legally privileged, and sender does not waive confidentiality or privilege. If received in error, please notify the sender, delete this email, and make no further use, disclosure, or distribution.
Re: 2 JavaFX applets in the same JVM
In general the number of JREs used to run applets and sharing of JREs should be expected to be indeterminate. The deploy code attempts to minimize the number of JREs spun up to run applets based on resource usage and security constraints, but there is no guarantee that you can share a JRE. If you have a use case that you want to solve by sharing a JRE between apps you should probably look for a different solution because this approach isn’t going to be supportable or predictable. On Jul 8, 2014, at 11:53 AM, ngalarn...@abinitio.com wrote: > Hello, > > What is the status of running 2 JavaFX applets in the same JVM > (separate_jvm = false)? > When we try to load 2 applets into the same JVM we get a runtime error (I > think it was class loader related). > > When I searched in jira I found RT-29969 (the 2 applet test it refers to > may or may not be in the same JVM) which points to RT-32321 which seems to > be private (it gives me an error when I try to access it). > > Is running 2 JavaFX applets in the same JVM supported? > > If not, is that a bug or a feature? > > > Thanks, > > Neil > > > > NOTICE from Ab Initio: This email (including any attachments) may contain > information that is subject to confidentiality obligations or is legally > privileged, and sender does not waive confidentiality or privilege. If > received in error, please notify the sender, delete this email, and make > no further use, disclosure, or distribution.