Probl launch multiple swing app in the same vm

Hello,
I lauch multiple swing applications in the same vm ; my problem is that applications launched are not isolated :
shared look and feel
only one modal dialog box can be shown
is there a way to isolate applications ?
thanks.

it make some work,but if you rename instances(or and classes) for the second appl. the second application doesnt know the first application
not fine,but me work.

Similar Messages

  • Multiple web-app sharing the same database.

    hi experts,
    If I have several websites running on the same server. Most of the are sub-domains of the same domain, they share the same database, but each sub-domain will have their own web-apps(This also means that they are running on a different java virtual machine, right? ). My question is that how can I make them communicate with each other. Also, will there be any conflict with the database insert/update issues, and How do I solve that?
    For example, if one user is already logon from "tips.mydomain.com", then when the users goes to another sub-domain, say "java.mydomain.com", he/she doesn't need to re-login again.
    thanks.

    Well yes, having databases accessed by multiple users simultaneously is an issue that many many developers have had to face. But the answer to "How do I solve that" doesn't fit in this little box or in the limited time that people have available to answer questions here. It's an extremely complex issue about which entire books have been written.
    As to the bit about the subdomains, it is possible to map them to the same web server, as far as I know, but that's a web configuration issue and nothing to do with Java programming.

  • Multiple AIR apps with the same local cache?

    Hi guys,
    Is it possible to create multiple AIR apps (for mobile & desktop) that can use the same local cache?
    For example: 2 apps for iPad will use the same data store (local cache). If we synchronize (with LCDS) and get all the data for 1 application, if we open the second application, can we access the data set from the other application?
    Thx!

    Hi Vikram,
    Eventhough I think it is techincally not possible, even if it was I would not recommend doing this. I think this is asking for problems and you can wait for the day that somebody messes up your production system, thinking it is DEV.
    I would use names like DEV_Oracle_BI_DW_Base and PRD_Oracle_BI_DW_Base, to clearly distinguish between the environments. But then again, I think Informatica forces you to use different names.
    Regards,
    Toin.
    ~Corrected typo.
    Edited by: Toin on Oct 16, 2008 4:02 PM

  • Cannot work with two Swing app. at the same time.

    Hi guys,
    I bring this problem here may somebody experienced that.
    I developed two client side applications(applets). Locate them on Apache/Tomcat. There is also a Index.html file with two links, so when user clicks on each link the associated application will downloaded on his/her PC and ready to work. (In index.html I used JavaScript function window.open(?) to load the applications)
    Now please see this scenario:
    1-I ran/loaded both application in two separate browsers(IE5.5). And tried to work with them(minimized one and work with another). Soon I faced unexpected frizzing/locking or very slow running on both applications.
    2-Then closed/killed one of them(killed IE). Then re-executed same application again. The application loaded with the last activated screen . Seems it never killed and it was still alive.
    3- The only way to successfully working is one by one. Means execute & work with one, then kill that, and then execute and work with another.
    To Debug:
    When both applications were running(each on it?s own IE), I opened the Task Manager and saw there was only one IEXPLORER.EXE was running, also there was only one Java VM (a little bird icon) on right-bottom of the screen.
    I believe this causes the problem. Seems they both running in the same session. Since I opened two applications in two IE I was expected to see two IEXPLORER.EXE with two JVM. Am I right? Do you think so?
    Note that the two app. have no Communication with each other.
    Any way, Now I am seeking to find the solution. My primary mind says probably I should not use window.open(..) in index.html to load the applications.
    Would appreciate any command on this.

    I am also facing the same problem !
    Since this may be a very late reply , if any body has a solution pls share!
    What I understand is that when we use javascript:window.open() it opens a new browser window
    but under same JVM. This is helpful if we need to have a 'Close window' button/link in the newly opened window and use javascript:window.close() there. Then browser will not show us the confirmation dialog box 'Webpage you are viewing is trying to close the window. Do you wish to Proceed?'
    But if we want a new JVM for each opened link and also donot want the popup dialog to be displayed when we close the browser from there..what do we do??

  • Proble with multi-threaded app using the same connection

    have a multi-threaded app. The threads all share the
    same connection. They all do some selects / updates.
    The OS is NT 4.0 and the application server is weblogic
    Some times I am getting the error "java.sql.SQLException: Io exception: not in streaming mode"
    and some times I am getting "java.sql.SQLException: Io exception: Protocal violation
    Any Ideas?
    Regards
    Suresh

    Don't create threads.... Your threads should if they are necessary be reusable, your threads should call the connections it needs from the cache service with let's say a max number of N pools (each pool a max number of M connections), if the connection domain asked exists on cache a connection is asked for corresponding pool, if the connection domain is not on cache the less used domain is thrown away (all inner connections closed first) and substituted by the new one requested. While the pool is not full keep creating connections as the request came (and all existing connections are being held and not released), when M connections exists, a request should wait till a connection is released.
    If you can have 20 threads asking for the same connection and the max number of connections on pool is M=10, then yopur threads will wait for a connection being released. All this must be synchronized. You should set M the closest as possible to the normal number of requests you can imagine to happen the same time. You should get connection use it and release it right away if you can have a lot of requests.
    I hope this helps you.

  • Can multiple APEX application use the same parsing schema?

    Hi,
    I have 4.2 APEX thru pl/sql Gatewat, 11gr2 DB and using theme 24.
    Due to the APEX limitation for version control I would be splitting 1 big ERP applications into 24 different APEX applications and each application would be considered as 1 unit for version control.
    I have about 800 tables and I would assume that all of these would need to be stored in 1 schema since a lot of these table are linked thru FK.
    Can I have multiple APEX APPS using the same parsing schema? or is there a better way to do this?
    Thanks in advance!

    Hi,
    Multiple applications can have same (one) parsing schema.
    You can test that on e.g. apex.oracle.com, where normally you have only one schema and you create multiple applications and all use that same schema.
    Regards,
    Jari
    My Blog: http://dbswh.webhop.net/htmldb/f?p=BLOG:HOME:0
    Twitter: http://www.twitter.com/jariolai
    Edited by: jarola on Jan 28, 2013 7:15 PM

  • Multiple instances of one app of the same name

    Hello,
    we have few FMS/AMS servers, versions 4, 4.5 and 5, running some kind of internet TV tubes on them.
    Each tube is supposed to run as unique instance of a Tube app, with unique settings for publishing to CDN (Akamai).
    Sometimes following scenario happens: We reload the stream via administration console or administration API with use of reloadApp command, instance starts closing sequence, even triggers onAppStop event. But as the new instance starts, the old process wakes up again and lives together with the new one - when I check then throught administration API with use of getActiveInstances command, it shows me more instance of the same name as result - for example:
    -<data>
    <_0>tv_app/tube25</_0>
    <_1>tv_app/tube2</_1>
    <_2>tv_app/tube21</_2>
    <_3>tv_app/tube2</_3>
    <_4>tv_app/tube2</_4>
    </data>
    From logs I can see that each of that instances runs under different process ID (x pid column).
    This is quite unpreffered behaviour, as with the same connection settings the multiple instances steals the connection to CDN entry point from each other which causes problems and unpredictable behaviour...
    I have following questions related to this:
    1. - Why the onAppStop is triggered when using reloadApp and unloadApp commands or buttons in admin console, when documentation says that this event should not be triggered on these ocassions (see http://help.adobe.com/en_US/adobemediaserver/ssaslr/WS5b3ccc516d4fbf351e63e3d11a11afc95e-7 edfSSASLR.2.3.html#WS5b3ccc516d4fbf351e63e3d11a11afc95e-7fe2SSASLR.2.3)
    2. - How is it possible that system runs more instances of the same app with the same name? How to avoid such behaviour?
    I already noticed following aspects to have influence on the possibility to run multiple instance with the same name and got rid of them but problem still persists:
    - case sensivity of app name (one client connects to TV_app/tube2 and other connects to tv_app/tube2)
    - using false as return value in onAppStop event handler - when reloaded, new instance is started but the old one persists
    I am very eager to hear some explanation or clarification of such logic as it comes to me as some kind of internal bug as I have found everywhere that the instances names should be always unique....
    Thanks

    I just want to note that my recommendations led my clients to purchase more than 5 licences of FMIS/AMIS througt the time.
    As I see how low is the passion to react to any problem on Adobe side, I would have probably changed my mind.
    This is really pain in the *** as any call to adobe official contact (taken on mind that to find one is a big quest by itself) lead just to reply "pay nasty amount for our consultancy Sir!" and it does not look any better here....
    I am no novice on FMS/AMS platform, working with it more than 6 years throught many projects and I would not ask for some stupid questions which could be solved just by looking to documentation or could be solved by some performance eperience.
    I am really upset for this :/

  • Multiple Apple TVs on the same network

    I teach at a school and have used an Apple TV in conjunction with my iPad for presentations. I find it invaluable. Other teachers at my school would like to do the same, but I'm told by our tech support that multiple Apple TVs on the same network cause problems. When I ask them what problems, they aren't sure. They just tell me that other school have experienced problems. Other than a wifi bandwidth problem, I can't imagine what kind of problem it would be. A collegue of mine wants to jump onboard but desn't want to make waves. Does anyone know of any problems?

    I have two Apple TV's, one in the living room and one in the bedroom... however, the living room is the only one that my iphone Remote APP is connecting with... I've named/tagged the two ATV's hoping that the Remote APP would provide me the option on which one to control, but it doesn't....
    I've confirmed that home sharing is "on" with in all devices "settings"...
    Any suggestions?

  • Can We Use Multiple Edgehero Classes On The Same Element?

    Does anyone know if it is possible to add multiple Edgehero classes to the same element? More specifically, I would like to use RotateX and RotateY on a rectangle, but it only seems to do one or the other, adding both classes to the element doesn't make it rotate in both directions.

    Maybe check out the Star Wars demo to see if that would help.
    Rob got the idea from the one I made earlier and here is the code:
    sym.$('gradient').css('background', '-moz-linear-gradient(top, rgba(0,0,0,1) 0%, transparent 100%)');
    sym.$('container').css('-moz-transform-origin', '50% 100%');
    sym.$('container').css('-moz-transform', 'perspective(250px) rotateX(25deg)');
    // Chrome and others
    sym.$('gradient').css('background', '-webkit-linear-gradient(top, rgba(0,0,0,1) 0%, transparent 100%)');
    sym.$('container').css('-webkit-transform-origin', '50% 100%');
    sym.$('container').css('-webkit-transform', 'perspective(250px) rotateX(25deg)');
    // Internet Explorer
    sym.$('gradient').css('background', '-ms-linear-gradient(top, rgba(0,0,0,1) 0%, transparent 100%)');
    sym.$('container').css('-ms-transform-origin', '50% 100%');
    sym.$('container').css('-ms-transform', 'perspective(250px) rotateX(25deg)');
    and the orginal file before edgeHero;
    https://app.box.com/s/068vx5x6lj5t2yydrx17

  • How to avoid purchasing multiple things that are the same but different titles

    How can I avoid purchasing multiple things that are the same but have multiple names but is the same purchase for the same use?

    "Things"?  What things?  Apps for keeping track of when to change cat litter?  30 different versions of "twinkle, twinkle little star" played by everything from punk rockers to Gregorian chant?  Videos on the best way to make Christmas cake?

  • Multiple presentation servers using the same RPD

    Hi everyone,
    So as most people know, the iPhone has a cool app that allows you to login and look at your OBIEE content. In theory it's really cool, but as it turns out, a lot of the cool graphs default to Flash and Flash is not supported by the iPhone.
    Using a flag in the instance config file, its possible to default all graphs to png's instead of Flash. But that causes all the interactive drillability to go away since it's just a flat picture.
    It seems that an elegant solution to this issue would be to have two presentation services running; one that defaults to Flash and one that defaults to png's. Then let the OC4J container determine if the device accessing the website is a mobile device or a full client browser. Mobile devices get routed to the png's and non-mobile devices go to the standard Flash page.
    Although not supported by Oracle, it is possible to setup multiple presentation services on the same server. In fact, RNM has a great blog about how to accomplish this (http://rnm1978.wordpress.com/2009/08/25/multiple-rpds-on-one-server-part-1-the-bi-server/).
    I was able to setup two presentation services (AnalyticsWeb and AnalyticsMobile) and point them at the same catalog folder. That way you don't have to duplicate you're work.
    The one thing I couldn't figure out how to do was to point them at the same RPD file. Ideally, we would have one rpd file with the master metadata definitions, and both presentation services would drive from that single RPD. However, the BI Server throws and error of the same RPD appears twice in the NQSConfig.ini file. I also created a shortcut to the master RPD, but upon startup, the BI Servers said that it was not a valid repository file.
    Worst case scenario, I could just use copy & paste to duplicate the single repository. And then each time I updated one, I would just need to delete the other and re-copy. But that seems a little tedious and I was hoping for a more elegant solution.
    Does anyone know how I could get the NQSConfig.ini to let me point to the same RPD twice? Is there some kind of symbolic link or image I could create?
    If it helps, I'm working with OBIEE 10.1.3.4 on a Windows Server 2003 environment with the OC4J standalone container.
    Thanks for the help!
    -Joe

    Hey Everyone,
    Just to add the finishing touch to this thread, the following can be implemented to perform the redirect based on mobile versus traditional PC devices.
    In the folder: C:\OracleBI\oc4j_bi\j2ee\home\default-web-app
    I created the following OBIEE.html file
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html lang="en,us">
    <HEAD>
    <TITLE>Test OBIEE Redirect Page<TITLE>
    </HEAD>
    <BODY>
    <script type="text/javascript">
    var agent = (navigator.userAgent).toLowerCase();
    var weburl = './analytics/';
    var moburl = './analyticsMobile/';
    var reg_exp = /(ipod|iphone|android|opera mini|blackberry|palm os|palm|hiptop|avantgo|plucker|xiino|blazer|elaine|windows ce; ppc;|windows ce; smartphone;|windows ce; iemobile|up.browser|up.link|mmp|symbian|smartphone|midp|wap|vodafone|o2|pocket|kindle|mobile|pda|psp|treo)/;
    if( reg_exp.test(agent) ) {
         window.location = moburl;
    else {
         window.location = weburl;
    </script>
    </BODY></HTML>
    The javascript gets the USER agent variable and does a regular expression match to see if it's any popular handheld device. If so, it redirects them to the mobile address. Otherwise the user is directed to the standard site.
    All I need to do is pass around the URL:
    http://localhost:9704/OBIEE.html (instead of the standard http://localhost:9704/analytics)
    And users will be dynamically sent to the correct location.
    thanks everyone!
    -Joe

  • Ability to open multiple SQL Worksheets for the same connection

    Hi,
    Please allow the ability to open multiple SQL Worksheets for the same connection, now only one can be opened.
    Thanks

    Logged Bug 9000801 - ea1: otnforum: worksheet launcher does not remember the last/default connection
    -Raghu

  • Multiple Threads writing to the same stream and "Write End Dead"

    Hi, I'm wondering what is the proper method for having multiple threads write to the same stream.
    Right now I have PipedWriter that I give to several Threads.
    However the JLS specifies that when the thread writing to PipedWriter dies, an exception will be generated. Does it mean that I may get a "write end dead" exception when any of the threads dies?
    More specifically I'm trying to extract keywords from a set of pages and print out keywords with their contexts (using threads to avoid a single blocked pages from blocking entire process)

    Your topic says "stream" but your post says "writer" - there's a difference. Readers/writers use the native encoding (which is correct if, for example, you're reading .DOC files created in Windows) while streams use UTF-8 encoding (which is correct if you've got one java app talking to another).
    Multiple threads can output to the same source. You've probably seen really annoying examples as your own System.out.println()s get intermixed with other JVM output in the JVM's window. Synchronization is going to be a serious issue.
    As to the exception, why not just catch it and ignore it?

  • Can I create a JAR that is an Applet and Desktop app at the same time?

    Hi mates.
    Can I create a JAR that is an Applet and Desktop app at the same time?
    Thanks.

    Ricardo_Ruiz_Lopez wrote:
    ..I have one problem, I want a JMenuBar but I can't add it inside a jPanel.
    Any idea?
    SSCCE
    It can be compiled/run as an applet or application something like this (e.g. for a Win command prompt).
    C:\Users\Andrew\Hybrid> javac Hybrid.java
    C:\Users\Andrew\Hybrid> java Hybrid
    C:\Users\Andrew\Hybrid> appletviewer Hybrid.java
    C:\Users\Andrew\Hybrid> // YES the previous line requires a '.java'  suffix - trust me.  ;-)Code
    // <applet code='Hybrid' width='600' height='400'></applet>
    import java.awt.*;
    import javax.swing.*;
    import javax.swing.border.*;
    public class Hybrid extends JApplet {
        public void init() {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    GUI gui = new GUI();
                    getContentPane().add( gui.getMainPanel() );
                    setJMenuBar( gui.getMenuBar(false) );
                    validate();
        public static void main(String[] args) {
            SwingUtilities.invokeLater(new Runnable() {
                public void run() {
                    JFrame f = new JFrame("Test Hybrid");
                    f.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
                    GUI gui = new GUI();
                    f.setContentPane(gui.getMainPanel());
                    f.setJMenuBar(gui.getMenuBar(true));
                    f.pack();
                    f.setLocationRelativeTo(null);
                    f.setVisible(true);
    class GUI {
        private JPanel mainGui = null;
        private JMenuBar menuBar = null;
        public JPanel getMainPanel(){
            if (mainGui==null) {
                mainGui = new JPanel( new BorderLayout(3,3) );
                mainGui.setBorder( new EmptyBorder(5,5,5,5) );
                JToolBar tb = new JToolBar();
                for (int ii=1; ii<6; ii++) {
                    tb.add( new JButton( "Btn " + ii) );
                    if (ii%2==0) {
                        tb.addSeparator();
                mainGui.add(tb, BorderLayout.NORTH);
                mainGui.add( new JSplitPane(
                    JSplitPane.HORIZONTAL_SPLIT,
                    new JScrollPane(new JTree()),
                    new JTextArea(20,20)
                    ), BorderLayout.CENTER );
                mainGui.add(new JLabel("Main user interface.."), BorderLayout.SOUTH);
            return mainGui;
        public JMenuBar getMenuBar(boolean isFloating) {
            if (menuBar == null) {
                menuBar = new JMenuBar();
                if (isFloating) {
                    JMenu fileMenu = new JMenu("File");
                    fileMenu.add( new JMenuItem("Exit") );
                    menuBar.add( fileMenu );
                JMenu helpMenu = new JMenu("Help");
                helpMenu.add( new JMenuItem("About") );
                helpMenu.add( new JMenuItem("Help") );
                menuBar.add( helpMenu );
            return menuBar;
    The code is not intended to be well designed. It is just written to be brief and demonstrate a few points.
    Edit 1:
    Added some access keywords in a passing gesture that the sample aimed at encapsulation.
    Edited by: AndrewThompson64 on Sep 2, 2010 1:34 PM

  • What happens on iCloud (ex. contacts) when multiple family members use the same Apple ID?

    What happens on iCloud when multiple family members use the same Apple ID?  For example if we all choose to use iCloud for contacts, are they all merged together?  We use the same Apple ID so we can use find my iPhone to keep track of the whole family.

    Of course if you are both connected to the same iCloud account you have the same contacts - what did you expect?. The contacts live on the server and are read from there by the devices; so as you've both managed to sync your contacts up to iCloud they are now inextricably mixed. You can only delete your contacts by deleting individual ones, and doing that will delete them from your phone as well.
    You can only unravel this by
    1. In the iCloud contacts page at http://icloud.com, select all the contacts, click on the cogwheel icon at bottom left and choose 'Export vCard'.
    2. Sign out of System Preferences>iCloud
    3. Create a new Apple ID and open a new iCloud account with it for your own use.
    4. Import the vCard back into the iCloud contacts page.
    5. Go to http://icloud.com and sign in with the original ID. This is now his ID. Work through the contacts individually deleting the ones you don't want him to have. When done sign out and advise him to change his password.
    6. Go to the new iCloud account and delete his contacts individually.
    Of course if you have also been syncing calendars and using the same email address there are problems with doing this.

Maybe you are looking for

  • Error while moving objects from BMM to Presentation layer: 46036

    Hi, I created some aggregate logical columns in a logical fact table in BMM . Next, I created a branch to already existing Dimensional hierarchy and used those aggregate columns in the branch hierarchy. The Original Hierarchy was using columns from 2

  • Show BLOB in Forms 6i

    Hello: I've got a table with a BLOB field. I saved an image or another document using DBMS_LOB package. Now I want to show it in a Form(6i). I found this rutine but i don't know how show the blob field in a form. Could anybody help me, please ? Thank

  • RFE Proposal Set Operations - RFC

    Greetings, this is a proposal for a Request for Enhancement in the JDK. It is posted here for the review and comment. Basically an RFC on a RFE. =) Please indicate your comments on the matter. The proposal is to have a set of operations for perfomrin

  • Every time I start up Firefox, it checks for plugin updates. All my plugins are up to date, but it continues to load the plugin site. How do I make it stop?

    Starting on Fri. 6/10/11, every time I start up Firefox 3.6.17, it loads the plugin update site. Initially, it said my Adobe reader plugin was out of date. Therefore I updated that plugin, yet that did not fix the problem. So I was finally forced to

  • Wireless: re-connect after failure...

    Hi, I have a Mac Mini Server... Whenever it looses wireless connectivity (power outage, I reload the AP and so on) the server does not re-connect to the wireless network again by itself. I also have a MacBook 5.1 unibody (1st ed) that does re-connect