How do I create a main instance?

Hello,
when I want to create an application component in the process scenario edtior I can choose a "main instance". However how do I create a main instance? I suppose that this has to be done in SLD but I found nothing there.
When can a main instance and a product be different? I do not yet fully understand the concept behind it as both consist of several product component versions that can be installed on a technical system, right?
Any explanation is highly appreciated. Thank you.

Hi!
I hope this makes things clearer:
"A main instance is a group of technically interdependent software component versions, which are all installed and run on one server. A main instance represents the smallest non-divisible unit within a system landscape. An application component in a Process Integration scenario represents a system at configuration time and at runtime. Therefore, use main instances by default. This is because main instances represent the software component versions installed on a system. Only if a product comprises exactly one main instance may you also use a product version."
Regards,
Volker

Similar Messages

  • How can i create a new instance on unix

    Hi,
    How can i create a new instance(instance only) on UNIX and how can i mount my database with this new instance.

    udayjampani wrote:
    Hi,
    How can i create a new instance(instance only) on UNIX and how can i mount my database with this new instance.1) Define Instance in your way!!?
    If you simply create a pfile and startup nomount with it, then -in theory- you have an instance running ( this method is used e.g. for restoring a rman backup )
    2) You can't. Database files are bound to a certain instance. What you can do is recreate an instance with e.g. a different name, using the scripts generated by a 'alter database backup controlfile to trace;' command
    Cheers
    FJFranken

  • How do i create a single instance of a class inside a servlet ?

    how do i create a single instance of a class inside a servlet ?
    public void doGet(HttpServletRequest request,HttpServletResponseresponse) throws ServletException, IOException {
    // call a class here. this class should create only single instance, //though we know servlet are multithreaded. if, at any time 10 user comes //and access this servlet still there would one and only one instance of //that class.
    How do i make my class ? class is supposed to write some info to text file.

    i have a class MyClass. this class creates a thread.
    i just want to run MyClass only once in my servlet. i am afriad, if there are 10 users access this servlet ,then 10 Myclass instance wouldbe created. i just want to avoid this. i want to make only one instance of this class.
    How do i do ?
    they have this code in the link you provided.
    public class SingletonObject
      private SingletonObject()
        // no code req'd
      public static SingletonObject getSingletonObject()
        if (ref == null)
            // it's ok, we can call this constructor
            ref = new SingletonObject();          
        return ref;
      public Object clone()
         throws CloneNotSupportedException
        throw new CloneNotSupportedException();
        // that'll teach 'em
      private static SingletonObject ref;
    }i see, they are using clone !, i dont need this. do i ? shouldi delete that method ?
    where do i put my thread's run method in this snippet ?

  • How do I create a second instance of oc4j in a standalone enviroment

    I am using OC4J standalone to deploy a sparql endpoint using jena, joseki, and the oracle jena adaptor. OC4J is running on the same server as my DEV and QAR databases. The current instance of OC4J is using a data source called "OracleSemDS" to connect to my DEV database. We are now ready to migrate the endpoint to QAR. As I was setting up the QAR endpoint, I discovered the the jena/joseki tools are hard-coded to use the "OracleSemDS" data source. Therefore, I cannot have 2 endpoints running in the same OC4J instance where one points to DEV and the other points to QAR.
    Therefore, I need to create a second instance of OC4J that specifies QAR as the "OracleSemDS" data connection. Can someone tell me how to do that?
    Thanks,
    Phil

    jphilb wrote:
    I am using OC4J standalone to deploy a sparql endpoint using jena, joseki, and the oracle jena adaptor. OC4J is running on the same server as my DEV and QAR databases. The current instance of OC4J is using a data source called "OracleSemDS" to connect to my DEV database. We are now ready to migrate the endpoint to QAR. As I was setting up the QAR endpoint, I discovered the the jena/joseki tools are hard-coded to use the "OracleSemDS" data source. Therefore, I cannot have 2 endpoints running in the same OC4J instance where one points to DEV and the other points to QAR.
    Therefore, I need to create a second instance of OC4J that specifies QAR as the "OracleSemDS" data connection. Can someone tell me how to do that?
    Thanks,
    Philgday Phil -- Melli Annamalai from the Oracle Server PM team pointed me to your question. I was an OC4J Product Manager before we bought out BEA and I swapped over to WLS -- so I have some information below that hopefully is of assistance to you.
    Since you are using OC4J standalone, the simplest way to get a second instance, is to just clone the existing, whole directory structure of your working OC4J instance into another directory, and configure/run it from that directory. To map the OracleSemDS to another target (QAR) you change the data-sources.xml file in the second instance. If you want to run them concurrently on the same server, you'll need to change the ports in the second instance so they have unique values: default-web-site.xml, rmi.xml, internal-settings.xml, jms.xml. These additional ports can be specified on the command line as a Java property string, albeit this is not a documented nor supported feature. See http://buttso.blogspot.com/2007/02/specifying-oc4j-standalone-ports-from.html for more information.
    Now as an example, assuming you have your OC4J you want to clone in the dev directory, and now want to create a second instance of OC4J in qar, I'd do this:
    cp -rp dev/* qar
    cd qar/j2ee/home/config
    vi data-sources.xml
    (edit any other files if needed to alter ports) ...
    cd ..
    java -jar oc4j.jar That should work, and should create the second instance using the current configuration (ie dev) as its basis (including deployed apps). Of course, you'll need to manage them independently from here as they really are just two separate OC4J standalone instances.
    Now what else you could potentially do is to create a secondary configuration file subset only which only changes the necessary files to support running the second instance. In this case, you'd make a copy of the j2ee/home/config/server.xml, j2ee/home/config/application.xml and j2ee/home/config/data-sources.xml files, renaming them to qar-server.xml, qar-application.xml and qar-data-sources.xml.
    Then do the following:
    1. In qar-server.xml file, you'd change the global-application application to point at qar-application.xml instead of application.xml:
    <global-application name="default" path="qar-application.xml" parent="system" start="true" />
    2. Change qar-application.xml so that it used the qar-data-sources.xml file:
    <data-sources path="qar-data-sources.xml" />
    3. Change qar-data-sources.xml file so it points to the qar database target.
    4. Start OC4J, telling it to use qar-server.xml instead of the default server.xml
    D:\java\oc4j-10135-prod\j2ee\home>java -jar oc4j.jar -config config/qar-server.xmlI think you could run into some concurrency problems if you try and run the two instances simulataneously, but in general it should be OK I think if you run them separately.
    Another solution here is look at how the application specifies/uses datasources. The hard coding of the data-source name into the applicaiton via a direct JNDI lookup works, but restricts the flexibility you as a deployer/administrator has.
    If the application used the Java EE resource-ref approach to look up and use the datasource, then the actual JNDI name of the datasource the application uses it totally abstracted from the actual physical name of the datasource that is created on the container -- so you'd have DEVDS and QARDS as physical datasources configured and running on OC4J -- and what happens is that as you deploy the application, you essentially map its lookup and use of OracleSemDS (which would need to change to a java:env/ namespace) to the physical datasource you want it to use (DEVDS or QARDS for example). You can easily alter this post deployment by changing the generated orion-application.xml file to point at the alternate physical datasource. Following that, you can also create separate deployment plans which map the app to the different datasources, then feed this in with the deployment operation so that the correct mapping to either DEVDS or QARDS is done during the deployment process.
    I don't know what scope you have to change the application so the above may not be possible -- you'd need to change the lookup code so that it uses the Java EE reference model and change the meta-inf/application.xml to add the corresponding resource-ref entry which declares the logical datasource name that needs to be mapped on deployment.
    Another approach here may be to use an application embedded datasource, where you put a data-sources.xml file into the application archive itself (along with an orion-application.xml file which references it) whereupon at deployment time, a datasource specific to the application will be created. In this manner, you'd have say two copies of the same application to deploy (DEV, QAR) which contain different data-sources.xml file. From memory, each application will have its own JNDI namespace so their datasources can co-exist with the same names, with application level data-sources overriding server level ones. Since you'll most likely want to keep the same context-root for the web modules (which has to be unique per server) you'll generally need to run just one of the applications at a time. I'd do this like this: deploy one, stop it, deploy the other, stop it, then start only the one you need to test. In that way, you'll have one copy of the application running (either DEV or QAR) and one datasource definition running within it.
    Here's some documentation links to get you going:
    Managing Application Lifecycle (start, stop): http://download.oracle.com/docs/cd/E14101_01/doc.1013/e13978/adminclient.htm#BABHJAFE <-- describes admin_client.jar but general principles apply to ascontrol management of application.
    Packaging and Testing Applications: http://download.oracle.com/docs/cd/E14101_01/doc.1013/e13979/packag.htm#BHCFBEEC
    Application Level DataSources: http://download.oracle.com/docs/cd/E14101_01/doc.1013/e13975/datasrc.htm#CHDIBFHG
    Using Deployment Plans: http://download.oracle.com/docs/cd/E14101_01/doc.1013/e13980/deployplan.htm#CHDFEFAE
    cheers
    -steve-

  • How do I create a main menu?

    I want to create a main menu so I can access three different vi's.

    Hi,
    Have you tried the examples installled with your labVIEW.
    Look under Build User Interfaces | Menus and Toolbars.
    The example Dynamic Insert Demo.vi is a good place to start.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • How do I create an genericized instance of this class?

    Hi, I'm having trouble creating a proper generic instance of this class that I wrote. The class type is cyclic dependant on itself.
    public class MyClass<T extends MyClass<T>>
    I can create an instance like this:
    MyClass<?> class = new MyClass();But I would be mixing raw types and generic types.
    Is there anyway to create a proper generic instance of MyClass?
    Thanks a lot
    -Cuppo

    Ah thanks georgemc,
    your solution will certainly work.
    If i may ask your opinion of something...
    MyClass is designed such that the type parameter should always be the same as the class itself. It's kinda a hack to get the subclass type from the superclass.
    so a hierarchy looks something like this:
    class MyClass<T extends MyClass<T> >
    class SubClass<T extends SubClass<T>> extends MyClass<T>
    class FinalSubClass extends SubClass<FinalSubClass>So ideally i would want something like:
    MyClass m = new MyClass<MyClass>();
    (which is not possible)
    is there a way to get around this?
    -Cuppo

  • How to create a new instance of a method

    How can I create a new instance of
    public int IsPrime1(int arg) method in my main program and execute it. It has to be a non static method.
    I have this code
    import java.math.*;
    public class IsPrime {
         public int IsPrime1(int arg){
                   for(int e = 2; e < arg; e++){
                        int remainder=arg%e;
                             if(remainder==0){
                                  System.out.println("This number is not a prime number");
                                  break;
                             else {
                                  System.out.println("This number is a prime number");
                                  break;
         public static void main(String[] args){
              System.out.println(args.length);
              if (args.length>1){
                        System.out.println("Sorry you can only enter one number");               
              else{
              String sNum =args[0];
                   int iNum=Integer.parseInt(sNum);
    }

    first, you cannot create instances of methods. but you can create instances of classes (==objects).
    the algorithm for primes does not work yet (its your work) but i inserted the code to create your object.
    import java.math.*;
    public class IsPrime {
    public boolean isPrime1(int arg){
    for(int e = 2; e < arg; e++){
    int remainder=arg%e;
    if(remainder==0){
    System.out.println("This number is not a prime number");
    break;
    else {
    System.out.println("This number is a prime number");
    break;
    return true;
    public static void main(String[] args){
    System.out.println(args.length);
    if (args.length>1){
    System.out.println("Sorry you can only enter one number");
    else{
    String sNum =args[0];
    int iNum=Integer.parseInt(sNum);
    IsPrime myPrimesObject = new IsPrime(); // here is your object
    if (myPrimesObject.IsPrime1(iNum)==true)
    System.out.println("is a prime");else System.out.println("is not a prime");
    }

  • How to create Mutiple server instances?

              Hai,
              Can someone advice me on how do I create mutiple server instances , on the
              same machine , with same IP but different ports. I need to do this without clustering.
              I would very much appreciate the help.
              Thanks and Regards,
              Vivek
              

    Hi
              If it for clustering then the solution is simple.
              WLS clearly states that in a cluster all the servers should be listening on
              the same port.
              Noe back to the question how do you achieve clustering on a single
              machine.Answer is -> multihome it.
              I run my WIN 2k m/c with three static ip's and I have cluster of 3 servers
              runing on my machine.
              We can acheive the same on solaris too.
              I hope this helps.
              Regards
              Hrishi
              "Ragae Ghaly" <[email protected]> wrote in message
              news:[email protected]...
              >
              > Hello,
              >
              > Usually this is the need in having a multi-developer team environment
              using one
              > installtion of WLS and having each developer running their own instance.
              Please
              > follow these steps:
              > 1- Create a directory in each developer account (call it say "weblogic"),
              and
              > copy all the files (not directories) from the WLS-home directory into it.
              Copy
              > also myserver directory into it.
              > 2- Create a soft link to each sub-directory (using same names) to the ones
              in
              > WLS-home (I'm assuming you are running on a unix box)
              > 3- Setup each weblogic.properties file in the new developer's directory to
              listen
              > to a different port (say 7002).
              >
              > This will create a seperate instance with it's own configuration and
              logging.
              > This will save much space, but watch on memory here as each instance
              consuming
              > about 100MB.
              >
              > To test your components for the new instance, use:
              > http://localhost:7002/<uri>
              >
              > Repeat the steps for another developer, and so on.
              >
              > Hope this helps.
              >
              > Ragae
              >
              >
              > "Vivek Kumaresan" <[email protected]> wrote:
              > >
              > >Hai,
              > > Can someone advice me on how do I create mutiple server instances
              > >, on the
              > >same machine , with same IP but different ports. I need to do this
              without
              > >clustering.
              > >
              > >
              > >I would very much appreciate the help.
              > >
              > >Thanks and Regards,
              > >Vivek
              > >
              >
              

  • SharePoint 2010 creates a new instance for SharePoint server.

    I have installed SP 2010.My env is Windows server 2008 R2 and SQL 2008 r2 (10.50.1600). When I install the SP 2010,
    configuration wizard (Start the SharePoint Products Configuration Wizard) directly goes to configuration wizard and installed SP 2010 server successfully.
    It skips the below Manual configuration.
    1. Specify Configuration DB settings
    2. Specify Farm Security settings.
    3. Configure CA Web Application settings. etc...
    So I get the new SQL instance with the name <MachineName>\sharepoint.
    This new Instance is looking SQL 2008 version(10.0.2531).
    Now I face the below issues,
    1. When I restore DB backup, i get the compatability issue 
    2. Unable to restore the SP2010 site which is backuped from SQL 2008 r2 (10.50.1600) has 9GB size.
    3. Unable to extend the DB size from 4096 MB. 
    How to avoid create new SQL instance with the name <MachineName>\sharepoint and install in SQL server default <MachineName> instance?
    Loganathan S

    Hi Paul
    stork,
    thanks for the help. Now I have another Two questions. I'm search service application in SP 2010. It works fine when I search data from home sites it works fine.
    1. When I search from within sub-sites i don't get any search results. What mistake I have done here?
    Second question from Restore spsite...
    2. When I restore the site in 80 port, the search service does not crawl and pick the new properties from the restore site. But when I restore the same site in another port<8080/8099/etc>  the search service does crawl and pick the new
    properties from the restore site. Why the service not working in 80 port.?
    Note: I have checked with 3 test env my bak file. but all the 3 env gives same result.... 80 port  does not crawl and pick the new properties.
    Loganathan S

  • Error in creating new trial instance

    Hi,
    I am trying to create a new trial instance, but after long waiting it gives error
    "Unable to create trail instance"
    What is this error, how can I create my trial instance in HCP.
    Thanks
    Sunil Maurya

    Hello Sunil,
    at moment we have a general network issue in the Trial landscape.
    We are working on it.
    Sorry for any inconveniency
    Xu

  • Creating infered entity instances

    How can I create infered entity instances..in opa 10.4.
    When I am trying to write rule using the "exists" keyword.. its not compiling as "Infered
    Instance" but it compiles as normal conclusion.
    and how can I create inferred instances conditionally..

    Sorry for the long delay in replying Rajan, I missed your request to elaborate.
    To be specific:
    When an entity instance is inferred that means that every attribute in it must also be inferred. The rule engine cannot cope with logic like: "this entity might or might not exist, but if it does, we need to ask for more information about it"
    There are a few ways to deal with setting information in an inferred entity:
    - most obviously infer any values from other entiy attributes in the session.
    - set attribute values on related, non-inferred entities and then use rules infer those attributes on the inferred entity.
    Its worth having a think about what the inferred entity instances means. If you want to use the rules as a convenient way to create an entity instance and you still need to set non-inferred attributes, then you are better off using an inferencing listener to create the instances.
    If the instances are truly derivable from rules, then any attribute values of those instances are probably also derivable.
    Cheers
    Frank

  • SQL server express 2005 Creating a "user instance"

    How do you create a user instance so that you dont have to be logged on as administrator?

    Hi
    * A User Instance is a feature of SQL EXPRESS and will be created for you dynamically if and only if you are using a database which is
    not attach to any other instance, and you do have SQL Express installed.
    * It will not help you to change only the connection string if the database already attach to the other server instance, This will rise an error that the database is in use.
    * A user instance need that the user will have proper security permeation on the folder where the database files are.  
    * As Olaf mentioned, and once you are meet the above requirements AND the requirements mentioned in the link Olaf post (I dont know why they did not mentioned the above requirements or maybe i did not notice it there...), Then you can use a connection
    string which open a user instance.
    * This problem is most common in my experience (trying to open a user instance using a database which is already attach to other instance)! for example a database which is attach to constant instance or a database which is attach to some other user
    instance.
    [Personal Site] [Blog] [Facebook]

  • Create new process instance

    Hi,
    How can we create a new instance of process other than global activity. Is there any way out for this?

    Hi Anuraq,
    Know I'm leaving out a couple, but here are ways you can create a new work item instance in a process:
    1) Here's how you can create an instance in a process using logic in an Automatic activity's method. This uses the "Fuego.Lib.ProcessInstance.create()" method shown below inside a process:
    // "args" is an associative string array (Any[String])
    argsIn as Any[String]
    // this assumes that the Begin activity has two argument variables
    //   named "nameArg" and "amountArg" and you're setting them
    //   to the variables "name" and "amount" respectively
    argsIn["someArgVarName"] = "Hello"
    argsIn["someBpmObject"] = myBpmObject
    // logic here to determine the name of the process to create an instance in
    idOfProcess as String
    idOfProcess = <hard coded string that has the id (not the name of the process to instantiate>
    ProcessInstance.create(processId : "/" + idOfProcess, arguments : argsIn, argumentsSetName : "BeginIn") ProcessInstance is in the Catalog inside Fuego.Lib.
    The processId parameter (the "idOfProcess" variable in the above logic) is the thing I most commonly screw up with this. It is the text you see when you right mouse click the process in the Project Navigator tab -> "Properties". Look at the value in the "Id" field and not the "Name" field here (the name without any space characters). Prefix it with a "/" as is shown here and if you've deployed this using an organization unit (OU) then prefix this to the string also.
    The third parameter is almost always "BeginIn". Begin activities in a process can have many incoming argument mappings, the default is "BeginIn". To see yours, double click the process's Begin activity and look at the mapping's name in the upper left corner of the dialog.
    "argsIn" is the set of incoming argument variables you want passed into the process. A common mistake is to type in the names of the incoming argument variables without the double quotes like this:
    // this will *NOT* work
    argsIn[someArgVarName] = "Hello"
    argsIn[someBpmObject] = myBpmObject
    . . .Here is the correct syntax:
    // this *WILL* work
    argsIn["someArgVarName"] = "Hello"
    argsIn["someBpmObject"] = myBpmObject
    . . .In this example, the process has two argument variables. It does not matter if the incoming argument variables are primitive type arguments (e.g. String, Integer, Decimal...) or BPM Objects, it is always done the same way. In this example, there is a String incoming argument called "someArgVarName" and a BPM Object incoming argument called "someBpmObject".
    2) Global Creation Activity - automatically creates an instance based on human interaction - requires no logic other than to set the argument variables you want passed into the process mapped to instance variables. If it's decided in the screenflow associated with this activity that you do not want to create an instance after all, it just needs to hit an Automatic task in the Global Creations's screenflow that has the logic "action = CANCEL"
    3) Global Interactive Activity - also based on human interaction it can create an instance if inside the Global Interactive activity's screenflow it hits an Automatic task that has the Instance.create() logic shown above.
    4) Using the Fuego.Papi.Instance.create method using logic inside a process.
    5) Using the Java PAPI:
    fuego.papi.Arguments arguments = Arguments.create();
    arguments.putArgument("inArgument", "MyArgument");
    String consolidatedProcessId = "/SomeProcessNameId";
    String argumentSetName = "BeginIn";
    fuego.papi.InstanceInfo instance = session.createProcessInstance(consolidatedProcessId,argumentSetName,arguments);6) Using the PAPI-WS (Web Service) API you can create an instance in a process using a web service call.
    7) A process can create a new instance in another process using the Subflow activity which synchronously creates an instance in a child subprocess and waits for the result to return once the instance in the child subprocess reaches the End activity in the process. From the parent process, you'd match the incoming and outgoing argument variables of the called child process with instance variables in your parent process.
    8) A process can create a new instance in another process using the Process Creation activity which asynchronously creates an instance in a child subprocess (fire and forget) but does not wait for the child to respond to the parent. Once the child process begins, the parent continues its flow. From the parent process, you'd match the incoming argument variables of the called child process with instance variables in your parent process.
    Dan

  • Service Manager 9.21: How to create a new instance of scautolistener and assign a port to it.

    Hi,
    2 instances of scautolistener are already running and i want to create a new instance of scautolistener.
    The sm.cfg file entry of scautolistener instances are:
    sm -scautolistener:12670 -debugscauto -log:..\logs\scauto.log
    sm -scautolistener:12690 -log:..\logs\scsmtp.log
    Please guide me as how to create a new instance of scautolistener.

    first, you cannot create instances of methods. but you can create instances of classes (==objects).
    the algorithm for primes does not work yet (its your work) but i inserted the code to create your object.
    import java.math.*;
    public class IsPrime {
    public boolean isPrime1(int arg){
    for(int e = 2; e < arg; e++){
    int remainder=arg%e;
    if(remainder==0){
    System.out.println("This number is not a prime number");
    break;
    else {
    System.out.println("This number is a prime number");
    break;
    return true;
    public static void main(String[] args){
    System.out.println(args.length);
    if (args.length>1){
    System.out.println("Sorry you can only enter one number");
    else{
    String sNum =args[0];
    int iNum=Integer.parseInt(sNum);
    IsPrime myPrimesObject = new IsPrime(); // here is your object
    if (myPrimesObject.IsPrime1(iNum)==true)
    System.out.println("is a prime");else System.out.println("is not a prime");
    }

  • Why create a new instance of Main?

    I see many code samples posted that create a new instance of Main, but none of them seem to use it. But yet the Netbeans IDE won't seem to run without it. What is it for? How can it be utilized? How can it be nullified if it's not needed?

    Yes, that's a fair interpretation of my question. Why
    would Netbeans, or other IDE's, create a new instance
    of Main? Common logic says that there can only be one
    Main. More than one creates confusion.There can only be one main(String[] args) per class, but there's nothing which says that there can't be one main method in each class. I usually uses main methods to show example code, or to have some code which performs some kind of tests.
    Kaj

Maybe you are looking for

  • With new Photos app, I can no longer drag and drop photos into other applications as I did in the past with iPhoto.

    With the new Photos app, I can no longer drag and drop photos into other applications as I did with iPhoto.  For instance, I have a photo collage app that in the past, I could just drag in the photos I wanted to include.  Now, I can DRAG the photos,

  • Dynamic Receiver Determination [W/O using BPM] Sync interface

    I have been exploring options w.r.t. performance sensitive service interface. This has following issues : 1. Gets a org code looking up instance and route the msg. accordingly to an RFC and get response back. 2. Prominent answer would be Enhanced rec

  • How to run mass activity for DS 0FC_INVDOC_00 and activate 2710 event

    Hi, I am trying to extract data from DS 0FC_INVDOC_00 it gets me 0 records.I read in the form that to get the records i have to run the Mass Activity type 2620 and for daily processing of invoicing, you have to activate 2710 event.Can anyone please l

  • Wire trick

    A quick question- can I use a very thin wire using the wire trick, or does it need to carry a lot of current? I took apart some monstercable speaker wire, which is 100% ofc.  One strand is very thin, is that a problem? We're talking hair thin almost.

  • PY Outsourcing to 3rd Party

    Hi SAP Gurus, We have a requirement to process Gross Payrun for our UK client and send the payroll outsourcing file to the 3rd party.  Would like to know if it is possible to send the PY data as IDOC to the 3rd party for UK. Thanks Lakshmi