Reload applications multiple instances in cluster

Apologies if this in another post but could not find
anything.
I am looking for strategies to reload app vars across
instances in a cluster.
Any suggestions?
thanks,
Mike

Grizzly9279 wrote:
> Say you have a web server, let's call it "WEB1". WEB1
could be hosting IIS,
> Apache, etc. It doesn't really matter.
Let's say IIS with a wwwroot at c:\inetpub\wwwroot. So the
index.cfm of
the application is located at c:\inetpub\wwwroot\index.cfm
> Now let's say you have two CF application servers, let's
call them "APP1", and
> "APP2". Each application server hosts 2 CF instances. So
APP1 has two CF
> instances on port 8301 and 8302. APP2 has two CF
instances on port 8303 and
> 8304.
Ans each of those instances has its own webroot at the root
dir of the
CF WAR file, which is (in UNC notation):
\\APP1\c$\JRun4\servers\instance1\cfusion.ear\cfusion.war\
\\APP1\c$\JRun4\servers\instance2\cfusion.ear\cfusion.war\
\\APP2\c$\JRun4\servers\instance1\cfusion.ear\cfusion.war\
\\APP2\c$\JRun4\servers\instance2\cfusion.ear\cfusion.war\
> "Normal" requests to the site are sent to WEB1, which in
turn forwards CFM
> requests to the CF cluster, which could fall on any one
of 4 possible CF
> instances (8301, 8302, 8303, and 8304).
Correct.
> Under this schema, you can make DIRECT requests to the
application on the
> internal network as follows:
> -
http://app1:8301/
> -
http://app1:8302/
> -
http://app2:8303/
> -
http://app2:8304/
You can make requests to those locations indeed. And they
will arrive at
the internal JRun server. And the internal JRun server will
resolve them
relative to its own webroot, not relative to the IIS webroot.
To get this to work, you have several options:
- make the JRun webroot equal to the IIS webroot (change its
location in
the xml config file);
- place a bootstrap file in each JRun webroot that call the
application
through cfmodule / cfinvoke / cfinclude;
- switch on sticky sessions in your cluster and include a
jsessionid in
your http request that is specific to the instance you want
to hit
(first 4 characters of the jsessionid equal to the serv
er.if).
> Does that make sense? Is there something particularly
exotic or unique about
> your current infrastructure that prevents you from
individually referencing
> each cluster instance internally?
Nothing exothic. In fact, I would say that the majority of
the clusters
have a JRun webroot that is not the same as the IIS / Apache
webroot.
Jochem
Jochem van Dieten
Adobe Community Expert for ColdFusion

Similar Messages

  • Launching local applications, Multiple instances

    I would like an answer from an Adobe developer please:
    What is the time frame on adding the ability to launch local
    applications?
    One other - why should we have to change tons of code to run
    multiple instances when AIR can easily be changed to do the same
    without any application code changes?
    These 2 items NEED to be in AIR!!
    Please advise as to intent and timetable.
    Thanks!

    I would like an answer from an Adobe developer please:
    What is the time frame on adding the ability to launch local
    applications?
    One other - why should we have to change tons of code to run
    multiple instances when AIR can easily be changed to do the same
    without any application code changes?
    These 2 items NEED to be in AIR!!
    Please advise as to intent and timetable.
    Thanks!

  • Stop opening multiple instances of the same application

    I am used to having graphic files on my desktop, when editing one I would simply right-click and pick "open with" > Photoshop (which is always open in its own desktop in my computer). Now out of the blue, if I do that, it loads another instance of Photoshop, which is certainly what I don't want. I can have 2, 3, 4 Photoshops running at the same time and editing the same image!
    Any idea how to solve this? I searched but all I could find is people wanting the opposite i.e. opening multiple instances of the same app.

    Your best bet to prevent this is to detach or unmount this drive; however, you can also try resetting your Mac's launch services, to have it re-scan only the Applications folders on your boot drive for programs to associate with documents and services you are using. Running the following command in the OS X Terminal will kill the current launch services database (its long, but copy and paste the entire line):
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -kill
    Following this, run the following command to seed the database with the apps you currently have installed:
    /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/LaunchServices.framework/Versions/A/Support/lsregister -seed
    Note that these changes will only apply when opening documents that have not been specifically assigned to a program. If you find a specific document continues to open the program on the external drive, then you can get info on it and change the associated program in the "Open With" section of the info window. After doing this, you might need to re-run these commands above, as opening the program will register it with OS X's launch services and have it now be available for automatically handling other documents.

  • How to use/sync single data (file) across multiple instances of same application

    Currently we have an application (a diagram editor), that have the ability to save and load (serialize) its state in a xml file.
    Now we want this application to behave like Microsoft OneNote application. Where multiple users have the ability to access the same file.
    Later we may also need to enhance with other things like, (1)what is changed and who changed it, (2)option to resolve conflicts if any.
    I came to know about sync framework to resolve this. so far, i have not tried it.
    All i want is,
    Virtually single file should be edited by multiple instances of same application.
    We need a dll (sync framework) that does following
    It takes complete responsibility of file handling.
    Using this dll, each instance of the application will notify their own changes.
    Each instance of the application should have the ability to detect the changes that is recently made (when, who, what are the changes).
    My question:
    Will sync framework be suitable for this requirement?
    If so, is there a demo application that represents this?
    - Jegan

    Seems like I have found the solution.
    In the taskflow there is a property named data-control-scope and I set it to isolated instead of the default (shared) and this seemed to do the trick.
    I can now have two instances of the same taskflow running with different ApplicationModules
    Cheers,
    Mark

  • Multiple instances of the same APEX application under SSO

    Currently we have several applications that are authenticated through Oracle SSO. The apps are authenticating correctly, but I can't be in multiple instances of the same application without having to re-validate through SSO when I move between instances.
    Scenario: I'm successfully signed into my "parent" application, app_id 1 through SSO. I click a custom link that opens the "child" application (app_id 2) to view widget "A". When the page is launched I see the usual "Redirecting to the Login Server for authentication" message (verifying that I'm signed in through SSO) and then it succeeds and takes me into app 2, displaying widget A. I click the next link to launch another instance of app 2 with a different APEX session id for viewing widget "B". This also passes through SSO and redirects me into app 2, displaying widget B as expected. But now if I go back to navigate anywhere on widget A in my first instance, it has to go back through the "Redirecting to Login Server." This now means the widget A window is valid, but the widget B window will have to redirect next time I use it (back & forth & so on...)
    So my question I suppose is: Is it possible/good practice to allow a single user to open multiple separate instances of the same APEX application using different APEX session_ids viewing different data under Oracle Enterprise SSO?
    Guesstimation: It seems like there must be a switch somewhere in SSO that says "allow multiple application instances yes/no"...but my problem may be APEX itself, or how SSO is tied into APEX... Sorry for the super-generic example, I'm not exactly sure where I should be looking to resolve this, and the closest similar problem I found on the forums was here: login to application twice in two seperate IE  windows clears other login

    reset your dock preferences. delete the file homedirectory/library/preferences/com.apple.dock.plist and log out/in. your dock, spaces and exposé will be reset to the defaults. see if the problem goes away.

  • Static member problem in multiple instance of  web application

    Problem
    I am working on a product which is java based. I have a war file. I have to deploy this war file in JBoss. Further, I need to run multiple instance of this war file in same JBoss instance.
    Issue
         In that war file there is servlet Start.java. That servlet calls an other class from its init method. Here is code
    public class Start extends HttpServlet
         public void init(ServletConfig config) throws ServletException
              super.init(config);
              DB.loadProperties (�db.properties�);
         } // init
         public void doGet(HttpServletRequest request, HttpServletResponse response)
              throws ServletException, IOException
                   } // doGet
         public void doPost(HttpServletRequest request, HttpServletResponse response)
              throws ServletException, IOException
                   } // doPost
    } // Start
    public final class DB implements Serializable
         public static final String     P_UID = "ApplicationUserID";
         private static final String     DEFAULT_UID = "System";
         public static final String     P_PWD = "ApplicationPassword";
         private static final String     DEFAULT_PWD ="System";
         public static final String     P_STORE_PWD = "StorePassword";
         private static Properties           s_prop = new Properties();
    public static boolean loadProperties (String filename)
         {    // looks for properties file
    s_prop = new Properties();
              FileInputStream fis = null;
              try
                   fis = new FileInputStream(filename);
                   s_prop.load(fis);
                   fis.close();
              catch (FileNotFoundException e)
                   log.warning(filename + " not found");
                   loadOK = false;
         �}
    As you can see if I deployed two instance of this war in JBoss and assume each instance point to its own properties file. The �Static� members are problem.
    Restriction
         I am not allowed change the code or logic of the product. I must be able to get some thing outside or apply a patch to solve this problem.
    Please Help
    Possible option that I have thought
    1 Using multiple JVM - Not an option in this project
    2 Using multiple JBoss � Not the requirement (need to run only on single Instance of JBoss)
    3 Use own class loader for war/ear � don�t know how in JBoss need help.
    I am using JBoss 3.2.3
    Thanks,
    Kumaran

    Static members belong to the class. So, you needto
    think of multiple JVMs for your problem.Thanks for reply.
    don�t know how in JBoss need helpJust guessing... clustered environment MAYBE
    RichThanks Rich,
    I don�t know how Cluster environment solve my problem. I need more information on your thought. Cloud you explain it.
    Kumaran

  • In Oracle 9 Application Server can we create multiple instances???

    Hi I need one help this is regarding to the oracle 9 application server in this can we create the multiple instances??
    my application was already developed and currently it is working with one instance for this i need to create the another one more instance which is same as existing and my application is web application developed in Forms6i and the db is oracle 9i my requirement is to create one more instance what are all the configuration files need to be modified and please give this info ASAP....

    It is still not very clear. What do you mean by creating "one more instance of the same application in the same application server"? By "application" do you mean another instance of OC4J in same Application Server Instance? If yes, you can do that. I mean you can create another OC4J component in same Application Server Instance without doing another installation. Refer this for details:
    http://download.oracle.com/docs/cd/A97329_03/core.902/a92171/config.htm#1010793
    If you are looking to create another Application Server Instance out of same installation/binaries (i.e. Oracle Home) than the answer is no. You can not create multiple Application Server Instances out of one Oracle Home. You will have to do another installation in a different Oracle Home and that's how you will get another Application Server Instance.
    Hope this helps.
    Thanks
    Shail

  • Disallow running multiple instances of the same web start application..

    on the client? I have an application that is launched on the client by clicking on the link to the JNLP file. The problem is that I don't want the application to launch twice if the user clicks the link twice. Is there a way to keep web start from running multiple instances of the same app?
    I don't want to just disable the button after it is clicked because then the user won't be able to get back in if they need to.
    Any help out there?
    Thanks,
    Melanie

    The way I do this is to try connect to an obscure port number on the localhost at startup.
    if this connection succeeds I assume the app is already running. otherwise the program continues and registers as a server at that port number.
    I actually take this a little bit further by registering a web server at this port (I use the Brazil server), That way if the program finds an instance of itself running it can send a message to the web server and ask the program to do something (like start another window if,for instance you wanted to allow this but only within the same VM).

  • Stopping Multiple Instance of Application

    I have one application. I want to restrict user from executing the application multiple times. Means If user executes the application & again try to execute the same application, i want to stop it by giving the message as One instance already exists.
    Pls. it's very urgent.
    Thanx in advance
    Sandeep

    Well if the computer crashes, your SOL for using that program again.
    Hi
    We had done this by writing a file on the user's
    machine.
    Our application used to check the existence of that
    file. If the file is present then show him the message
    that the application is already running.Else run the
    application and create the file.
    Remember to delete that file on every exit of the
    application both NORMAL as well as ABNORMAL.
    bye

  • Applying Service Pack on multiple instance SQL Server 2008 R2 Cluster and Standalone.

    Friends,
    Its my first time I am applying Service pack to both Standalone and Clustered SQL 2008 R2 servers. I have multiple instances running on both stand alone and Clustered environment. I don't know how to apply pack with multiple instances. Do I need to apply
    the service pack each instance one by one or I can just run the pack to each node of cluster and each box of stand alone server? Will I get any multi instance selection option during the installation process so that I can select multiple instances at once??

    When installing service pack for multiple instances in a standalone machine, you just run the installer and it lists all the instances eligible for the update. You could do it one by one or do it at the same time. Doing it at the same time saves time and
    energy. If you selected multiple instances then you dont have to do anything else.
    In case of cluster, if you have multiple instances then you need to be little careful.
    Eg: Assume you have a 2 node cluster Node 1 and Node 2. Two instances Instance 1 active on Node 1 and Instance 2 active on Node 2. What I would do in this case is to first failover any one instance to the passive node. Assume I failed over Instance 2 to
    Node 1. Now Node 1 is active node for both instance 1 and instance 2 and Node 2 is passive for both instances. At this point I run the service pack on Node 2. Once patching is done, I reboot the node and then failover the instaces one by one to Node
    2. At this point both instances 1 and 2 would get upgraded and will be active in Node2. Now Node 1 is passive and so run the update there. Once the service pack is installed, reboot and then fail back Instance 1 back to Node 1. Note: I would also failover
    Instance 2 to Node 1 just to confirm that failover works completely after service pack update.
    Regards, Ashwin Menon My Blog - http:\\sqllearnings.com

  • Detecting multiple instances of same application on startup.

    How can I detect multiple instances of same application on startup? I would like to display a message to the user stating that the application is already running [and then close out].

    How can I detect multiple instances of same
    application on startup? I would like to display a
    message to the user stating that the application is
    already running [and then close out].Congratulations on being the bazillionth person to ask this kind of question without bothering to search the internet.

  • How to allow multiple instances of air desktop application

    hi all
    Adobe air desktop application only allow single instance of
    application. How to allow multiple instances like in other desktop
    applications?.
    thanks

    Thanks a lot morgair, i will check with exe4j tool.
    Actually the problem is, thread is not waiting for second request.
    thatswhat i thought it may because of thread.
    Thanks & Regards
    Sudha

  • JDev 11g: Multiple Instances of Same Application Using Same AppModule !?

    Hi Everyone,
    I'm having difficulties with multiple instances of taskflows and their application modules.
    I have a main application which has two separate instances of a taskflow (another application with it's own appmodule). I would like for the two separate instances to use separate instances of their application module but that is not happening.
    How can I set this up ? I would like instance 1 to have it's own application module and instance 2 to have it's own as well.
    Any thoughts ?
    Mark

    Seems like I have found the solution.
    In the taskflow there is a property named data-control-scope and I set it to isolated instead of the default (shared) and this seemed to do the trick.
    I can now have two instances of the same taskflow running with different ApplicationModules
    Cheers,
    Mark

  • Stop Multiple Instances of an application

    Hi,
    The title pretty much says it all, I was wondering if I could gather your input on how to correctly stop an application running more than once in java. I have implemented both file locking methods and ServerSockets however both have their disadvantages. For example, the file locking seems to cause a problem that the file is unlocked / deleted if the process is abnormally terminated and I've yet to come up with a solution for this other than creating a batch file to auto run...Similarly, with the ServerSocket it doesn't seem to be very reliable it runs for a few moments and then disappears without an error message...
    I've been searching the web and found something called JUnique which claims to do what I'm after however I'm unsure as to whether it would work the way I'm after as it seems to be implying it works by the file locking method.
    Anyway, how do you go about solving this in your applications?
    Many thanks,
    Barto.
    Ps. The other thing was that I notice that other languages use something called Mutex to stop the running of an application multiple times - is this available in Java?
    Edited by: 799611 on 04-Dec-2010 09:18

    Do you mean the program runs (you can see it in some task manager), but the ServerSocket stops listening (something like netstat -an in Windows confirms this)?
    I belive your program simply completes and it takes the ServerSocket with it, which is just what is expected.
    Your program is dead, so another instance can start.
    Edited by: baftos on Dec 4, 2010 1:23 PM

  • Support for Multiple instance of Portal2005Q1 on Weblogic8.1sp4

    Has anyone installed multiple instances of Portal server 2005Q1 on a Weblogic container ?
    We were unable to set up multiple instances of Portal2004Q2 on the Weblogic container. Looks like this issues is addressed in 2005Q1.
    This is posing serious concerns to our architecture scalability. Would greatly appreciate if you could let us know the issues you faced for setting up Portal2005Q1 on Weblogic8.1SP4,if any.

    There should not be a significant negative performance impact. The biggest
    issue will probably the amount of memory the 10 instances will use, not any
    CPU impact. On larger SMP systems, it is not uncommon to run several
    instances of WLS in a cluster (perhaps one for every 2 - 4 CPU's) to
    improve performance.
    "Raj" <[email protected]> wrote in message
    news:3da75672$[email protected]..
    >
    Hello,
    Is there a significant degradation of performance when using multipleinstances
    of weblogic on 1 Box. Example what would be the difference between running10
    instances each hosting 1 application on 1 box versus 1 instance hostingall the
    10 applications. Division into multiple domains is required formaintaining independence
    between the administrators of the application.
    Further let me add if those applications are mostly IO intensive and alsothe
    load on those applications is not more than 1 hit per second would thisstrategy
    cause problems.
    Raj

Maybe you are looking for

  • How can I run a java-application on starting of Windows 2000

    How can I run a java-application without any user on starting of Windows 2000? For example, if the computer is restarted and nobody enter into it yet, my java-application should run anyway. How can I do that?

  • IMovie and recovery of photos from DVD

    I am on Leopard and iLife 08. Sadly my disk crashed on my Macbook and I lost many photos. I had made an iMovie using video clips and photos and burnt a DVD. Can I some how copy these clips and photos back into imovie and iPhoto from the DVD? Apple co

  • Issue in Ibots deliver the reports through mail

    Dear All , I am getitng the below error when i ran the ibot to deliver the reports through email . Steps i have done :- 1. Configured SMTP in windows 2008 R2 2. Configured MAil through EM 3. Created Agent and configured the ibots to deliver the repor

  • BT home hub keeps disconnecting with the same mess...

    As post says above my BThomehub for BTinfinity keeps disconnecting ever 15 or so minutes and I have to go and have it automaticly connect again.  It keeps telling me along the lines of "[email protected] should be set as your username" "your username

  • Extreme Router problems

    Ever since I restored default settings on my router, my internet is INCREDIBLY slow, only caps 1Megabit per second, but 5Mbit upload, I have the 20/5 package. How do I Fix this? Thanks!