Creating more then 10 database on single PC?

GREETINGS,
I need to create about 30 database on a single PC win 2000 pro sp1??
I am using Oracle 8.0.4 on Win NT and when i go through the database assistant wizard I am able to create 9 data base successfully.
When i create the 10 database the service of 10 database is not seen in the oracle wizard (Oracle Database Asistant
i.e if i select the option modify database i see oracleservice orc9.and not oracleservice10.
In Windows NT i can see the database and its service.
So when i try to create again it tells me or10 database already exists....
I also chose the option of Custom database and rename the OR10 to OR11 but then it gives me an error of ORA -00301
"Error in adding logfile d:\orant\database\log3or10.ora"
ORA-01109..
I am using installer 3.3.1.2.4 on w2k pro
1) How can i overcome this and create more database??
thanx
Nayan

10 databases with 512 MB of RAM works out to less than 50 MB of SGA and PGA per database. I don't think that's a valid value for a SGA alone even in 8.0.4. Even if you have 1.5 GB of swap, that's only 200 MB for the SGA and PGA, which is pretty minimal.
There is a difference between something that appears to work in most situations and something that has been tested and verified to really work in a particular configuration. You are trying to use a version of Oracle that is no longer supported on any platform on an operating system it was never tested on to create a number of databases that seriously taxes the resources available on your system. Frankly, I'm suprised you're getting as far as you are.
Justin
Distributed Database Consulting, Inc.
http://www.ddbcinc.com/askDDBC

Similar Messages

  • Re; Creating more then 10 database on single pc-- urgent

    GREETINGS,
    I need to create about 30 database on a single PC win 2000 pro sp1??
    I am using Oracle 8.0.4 on Win NT and when i go through the database assistant wizard I am able to create 9 data base successfully.
    When i create the 10 database the service of 10 database is not seen in the oracle wizard (Oracle Database Asistant
    i.e if i select the option modify database i see oracleservice orc9.and not oracleservice10.
    In Windows NT i can see the database and its service.
    So when i try to create again it tells me or10 database already exists....
    I also chose the option of Custom database and rename the OR10 to OR11 but then it gives me an error of ORA -00301
    "Error in adding logfile d:\orant\database\log3or10.ora"
    ORA-01109..
    I am using installer 3.3.1.2.4 on w2k pro
    1) How can i overcome this and create more database??
    [email protected]
    thanx
    Nayan

    10 databases with 512 MB of RAM works out to less than 50 MB of SGA and PGA per database. I don't think that's a valid value for a SGA alone even in 8.0.4. Even if you have 1.5 GB of swap, that's only 200 MB for the SGA and PGA, which is pretty minimal.
    There is a difference between something that appears to work in most situations and something that has been tested and verified to really work in a particular configuration. You are trying to use a version of Oracle that is no longer supported on any platform on an operating system it was never tested on to create a number of databases that seriously taxes the resources available on your system. Frankly, I'm suprised you're getting as far as you are.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Can i create more than one instance for single database?

    HI
    anybody can tell me how to create more than one instance for single database(without using RAC)?
    thanks
    Kalanidhi

    Anandji,
    I sometimes think differently. I also think like what this person is asking..(although I have installed and administering 5 different RAC databases)
    The main doubt of mine is that we create multiple instances accessing the same storage area.
    Anyway the controlfiles of all instances will have the same information except the instance_names and instance id's.
    Hence I always think , why can't it be possible to to create another instance in the same system and point it to a controlfile which is copied from the other instance.
    Why can't the same files be shared between the two instances in a same system ?
    I know I am thinking a little bit confusing...
    Anyway I need to test that also...
    Mahesh.

  • Creating more then 1 statement in one connection in SQL server

    hi
    am using sql server as my database.here i cannot create more then one statement in the i connections....why does this happen
    secondly is it preferable to create 'x' number of connections at the start of the application or create a connection as and when required...
    Pls if anyone can help me...
    regards
    Praveena

    hi,
    if i'm not wrong try to close the already creted statment if ur creating another with the same nmae otherwise it should not be a problem creating set of statements.u can create any number of statement with a single connections.u need not open connection for every statement.hope this helps u out
    bye

  • Can I create More Then One seesion in one script?

    Hi all ,
    I have got a requirment to create more then one seesion in one script only
    (means I have to login using multiple USER's in a single script.).
    and also there is no way for LOG-OFF.
    Thanks in advnc.

    Yes. This is a very common task.
    You should databank the User and Password parameters. When running many virtual users in e-load, the script will login each script/user from the list you have included in the databank. When running in Functional playback, each new iteration of a single user will login with a new user from the databank.
    There also does not need to be a logoff. In either Functional or Load playback, each time a script or a virtual user starts a new iteration it will begin as though there are no past cookies or cache files.

  • How To connect More Then One database

    How To Connect More the One Database In Single form.
    I want to use Access And Oracle In the Same Form.
    I want to Transfer data from Access file To oracle database.
    Chirag

    Hi,
    You can do this using EXEC_SQL package. Please see Note 115540.1 on metalink which describes how you can connect to Ms Access and Oracle using EXEC_SQL.
    Regards
    Kavitha Prakash
    Oracle Support

  • Creating more than one database user in oracle cloud

    I hv created an adf application, in which there are 4 models. each model is connected to different database user, where SID is same for all user. These users have some number of tables, which are used as entity and view in model project in adf application. My query is:
    I hv activated oracle cloud service for database and java. i want to deploy my adf application on cloud. so, how can i create more than one database user in cloud as i do in oracle db 11gr2? So that my all models will be connected to different database user in cloud.
    Also, which service name should i use in model.jpx? I hv used mydb as service name on my local machine.
    pls, help me to go ahead!!!!!!!!

    Hi Ajaykumar,
    To ensure you receive an accurate response to your query, I believe it would be best raised on the Oracle Java Cloud Service forum, here:
    Oracle Java Cloud Service
    Regards,
    Hilary

  • How to invoke more then one service from single button click

    Hi,
    I have created web service data control which contains more then one services.
    Now my problem is when I press button, it should take data from my input component and needs to set into multiple services and response of those services should be display to my binding component on the screen.
    Regards,
    DevangD

    See : 9.11 Overriding Built-in Framework Methods
    here: http://download.oracle.com/docs/cd/E12839_01/web.1111/b31974/bcservices.htm#sm0222
    You can have the code that was generated modified to invoke an additional action - you'll need to add the binding to that action to your page.

  • Creating forms then a database to store the info

    I posted this question on the Acrobat forum, then realized perhaps I should be here. All of the different software is mindboggling to me. I am trying to find the proper platform to create forms to be filled out by customers with product problems or complaints, then the data entered would be dropped into a database for retrieval and review at the company. Other than the contact information, the questions used would mostly be Y or N, not open ended. I have Designer 7.0 but I'm not sure if this is the proper way to go. And if it is, how do I go about getting the data from the forms to a usable format. I did a customer survey a few months ago in Designer (my first attempt at using it), and tho I got back usable info, manipulating it into a database was not exactly smooth. In review the forums I found LiveCycle Forms. Should I be asking there?
    I'm sure there is a good way to do this, I just don't know how to wade thru all of the potential software to find what I need. As a mainframe programmer in a former life, I know all of this is possible, I just need some direction. Thanks for any help you can offer.
    Dazed and Confused,
    Deb

    following link provides a reasonable description of OLEDB
    http://database.ittoolbox.com/documents/popular-q-and-a/odbc-vs-oledb-2412
    In summary, is says
    "OLEDB is the successor to ODBC, a set of software components that allow a "front end" such as GUI based on VB, C++, Access or whatever to connect with a back end such as SQL Server, Oracle, DB2, mySQL etal. In many cases the OLEDB components offer much better performance than the older ODBC.
    OLEDB is a different type of data provider that came about with MS's Universal Data Access in 1996 and does not require that you set up a DSN. It is commonly used when building VB apps and is closely tied to ADO. It works with COM, and DCOM as of SQL 7.0."
    So basically, is it a method to connect to the database. It does not restrict you to use a particular database product, as long as you find drivers for it - and most database providers also provide OLEDB drivers.
    More info available all over the new using keyword OLEDB.
    Have fun,
    Sanna

  • Creating more then one instance in Singleton

    Hi Friends,
    In the Singleton pattern,I want to restrict the no. of instances of a class created to 3 or 4 and not necessarily
    one.I am written this code,that creates duplicate singleton objects,I want to know is this the right way
    to do so.
    public class Test implements Cloneable
    public Object clone() {
                try {
                    return super.clone();
                catch (CloneNotSupportedException e) {
                    throw new InternalError(e.toString());
    public class SingletonObject extends Test
      private SingletonObject(){}
      public static SingletonObject getSingletonObject()
        if (ref == null)
            ref = new SingletonObject();          
        return ref;
    private static SingletonObject ref;
    public class Clone
         public static void main(String args[])
           throws Exception
           SingletonObject obj = SingletonObject.getSingletonObject();
           SingletonObject clone1 = (SingletonObject) obj.clone();
              SingletonObject clone2 = (SingletonObject) obj.clone();
    }Thanks

    More then 1 instance defeats the purpose of the
    Singleton pattern, don't you think?No it doesn't. It's specially noted in the GoFbook
    that one way a Singleton is more flexible than a
    class (with only static members) is that you can
    change your mind and allow more than one instance.Then it's not a singleton anymore. I agree that
    developing the class in the way one does for a
    singleton object is more flexible for that reason,
    but as soon as you allow multiple instances, it's not
    singleton anymore, it's multiton (if that's the
    official term... I'd just call it a normal class).I think most people throw the word multiton out there (I know I do) when talking about a class that needs strict control over how many instances of it are out there, like a Singleton, but isn't strictly limited to a single instance. For example, you might call an immutable class that guarantees no two equal instances exist a "multiton", or perhaps there' a more preferred term out there.

  • How to Create more then one Application in HCP-trial

    Hi all,
    I am new to this field,
    I want to create new application in HCP I have already create one and want to do more hands on this but i cant find where to create second application.
    and one more question.
    can we see the content which we created through Web-based Development Workbench... to our local eclipse based tool because its not visible to me
    Regards
    GB

    Hi vinod,
    Call one BDC after the another, Like if u want to create a sales order and then correspondingly display it as well, u can capture the sales order created afer ur first BDC theu the messages mostly in SYMSGV1 and using this u can do a call txn skip first screne of VA03.
    If u are talking about session, get 2 session names and move them to different sessions or if both txn are dependant on each other, move it one after the other thru call txn. It is the same, howmany ever trx u wabnt to post thru BDC.
    Award points if this helps.

  • RV_INVOICE_CREATE u0096 Issue creating more then one invoice

    Hi All,
    I am creating Billing document using “<b>RV_INVOICE_CREATE</b>”. For single sales record it creates fine, but when I pass multiple sales order to create invoice, it only creates billing document for first sales order rest ignored. I am using “<b>RV_INVOICE_REFRESH</b>” after each create, still it doesn’t work. Am I missing any thing here? Thanks in advance. Please check code for further details.
    Regards,
    Tim
    CODE ....
    loop at GT_INIT_ITAB2 into GS_INIT_ITAB2.
        concatenate GS_INIT_ITAB2-afdat6(4) GS_INIT_ITAB2-afdat3(2) GS_INIT_ITAB2-afdat+0(2)
                    into gl_date.
        condense gl_date.
        MOVE-CORRESPONDING GS_INIT_ITAB2 to gt_xkomfk.
        gt_xkomfk-fkimg = GS_INIT_ITAB2-KWMENG.
        gt_xkomfk-SELDAT = gl_date.
        append gt_xkomfk.
    Create Billing document at end of each Sales Document
        AT END OF VBELN.
          gs_vbsk-mandt = sy-mandt.
          gs_vbsk-smart = 'F'.
          gs_vbsk-ernam = sy-uname.
          gs_vbsk-erdat = sy-datum.
          gs_vbsk-uzeit = sy-uzeit.
    Call function module to create Invoice
          CALL FUNCTION <b>'RV_INVOICE_CREATE'</b>
            EXPORTING
            DELIVERY_DATE   = sy-datum
            INVOICE_DATE    = gl_date
              INVOICE_TYPE    = p_fkart
              PRICING_DATE    = sy-datum
            ID_NO_ENQUEUE   = 'X'
              vbsk_i          = gs_vbsk
              with_posting    = 'B'
            IMPORTING
              vbsk_e       = gs_vbsk
            TABLES
              xkomfk       = gt_xkomfk
              xkomv        = gt_xkomv
              xthead       = gt_xthead
              xvbfs        = gt_xvbfs
              xvbpa        = gt_xvbpa
              xvbrk        = gt_xvbrk
              xvbrp        = gt_xvbrp
              xvbss        = gt_xvbss.
          loop at gt_xvbfs.
            append gt_xvbfs-vbeln to gt_vbeln.
          endloop.
         CALL FUNCTION 'DEQUEUE_EVVBAKE'
           EXPORTING
             VBELN = GS_INIT_ITAB2-vbeln.
         DESCRIBE TABLE gt_xvbrk LINES SY-SUBRC.
         IF SY-SUBRC = 0.
          DELETE GT_INIT_ITAB2.
           REFRESH GT_XKOMFK.
         ELSE.
            CALL FUNCTION <b>'RV_INVOICE_REFRESH'</b>
              EXPORTING
                WITH_POSTING = ' '
              TABLES
                XKOMFK       = GT_XKOMFK
                XKOMV        = GT_XKOMV
                XTHEAD       = GT_XTHEAD
                XVBFS        = GT_XVBFS
                XVBSS        = GT_XVBSS
                XVBPA        = GT_XVBPA
                XVBRK        = GT_XVBRK
                XVBRP        = GT_XVBRP.
        ENDIF.
          REFRESH: gt_xkomfk,    gt_xkomv,gt_xthead,gt_xvbfs,gt_xvbpa,
                   gt_xvbrk,gt_xvbrp,gt_xvbss .
        ENDAT.
      endloop.

    Hi Narendarn,
    Thanks for your feed back. I am calling “RV_INVOICE_REFRESH” before looping thru internal table. So first one created fine. I am calling “RV_INVOICE_REFRESH” again once I process “RV_INVOICE_CREATE”. But there onwards billing document not created but I do get billing document number. But when I check in VF03 that billing document no doesn’t exist at all in system. I don’t know what wrong?
    here is the code
    Call function module to create Invoice
      CALL FUNCTION 'RV_INVOICE_REFRESH'
        EXPORTING
          WITH_POSTING = 'B'
        TABLES
          XKOMFK       = GT_XKOMFK
          XKOMV        = GT_XKOMV
          XTHEAD       = GT_XTHEAD
          XVBFS        = GT_XVBFS
          XVBSS        = GT_XVBSS
          XVBPA        = GT_XVBPA
          XVBRK        = GT_XVBRK
          XVBRP        = GT_XVBRP.
    This value will be imported back in Billing document routine(VOFM)
    Routine number 906 - For consolidation logic
      EXPORT P_CONSOL TO MEMORY ID 'ZSD_OPWS_PRE_INVOICE'.
      if gv_lock  is initial and
         gv_block is initial.
        loop at GT_INIT_ITAB2 into GS_INIT_ITAB2.
          clear: gt_xvbfs.
          refresh: gt_xvbfs.
          CALL FUNCTION 'DEQUEUE_EVVBAKE'
            EXPORTING
              MANDT = SY-MANDT
              VBELN = GS_INIT_ITAB2-VBELN.
          concatenate GS_INIT_ITAB2-afdat6(4) GS_INIT_ITAB2-afdat3(2) GS_INIT_ITAB2-afdat+0(2)
                      into gl_date.
          condense gl_date.
          MOVE-CORRESPONDING GS_INIT_ITAB2 to gt_xkomfk.
          gt_xkomfk-fkimg = GS_INIT_ITAB2-KWMENG.
          gt_xkomfk-SELDAT = gl_date.
      gt_xkomfk-SELDAT = GS_INIT_ITAB2-afdat.
          append gt_xkomfk.
          CASE P_CONSOL.
            WHEN 'N'.
    Create Billing document at end of each Sales Document
              AT END OF VBELN.
                gs_vbsk-mandt = sy-mandt.
                gs_vbsk-smart = 'F'.
                gs_vbsk-ernam = sy-uname.
                gs_vbsk-erdat = sy-datum.
                gs_vbsk-uzeit = sy-uzeit.
                CALL FUNCTION 'RV_INVOICE_CREATE'
                  EXPORTING
                DELIVERY_DATE   = sy-datum
                    INVOICE_DATE    = sy-datum
                    INVOICE_TYPE    = p_fkart
                    PRICING_DATE    = sy-datum
                    vbsk_i          = gs_vbsk
                    with_posting    = 'B'
                    id_no_enqueue   = 'X'
                  IMPORTING
                    vbsk_e       = gs_vbsk
                  TABLES
                    xkomfk       = gt_xkomfk
                    xkomv        = gt_xkomv
                    xthead       = gt_xthead
                    xvbfs        = gt_xvbfs
                    xvbpa        = gt_xvbpa
                    xvbrk        = gt_xvbrk
                    xvbrp        = gt_xvbrp
                    xvbss        = gt_xvbss.
                CLEAR:   gt_xkomfk.
                REFRESH: gt_xkomfk.
              ENDAT.
              loop at gt_xvbfs.
                gs_vbeln-vbeln    = gt_xvbfs-vbeln.
                gs_vbeln-vbeln_so = GS_INIT_ITAB2-vbeln.
                append gs_vbeln to gt_vbeln.
              endloop.
    Call function module to create Invoice
              CALL FUNCTION 'RV_INVOICE_REFRESH'
                EXPORTING
                  WITH_POSTING = 'B'
                TABLES
                  XKOMFK       = GT_XKOMFK
                  XKOMV        = GT_XKOMV
                  XTHEAD       = GT_XTHEAD
                  XVBFS        = GT_XVBFS
                  XVBSS        = GT_XVBSS
                  XVBPA        = GT_XVBPA
                  XVBRK        = GT_XVBRK
                  XVBRP        = GT_XVBRP.
            WHEN 'Y1'.
    Create Billing document at end internal table all togather in one Billing document
              AT LAST.
                gs_vbsk-mandt = sy-mandt.
                gs_vbsk-smart = 'F'.
                gs_vbsk-ernam = sy-uname.
                gs_vbsk-erdat = sy-datum.
                gs_vbsk-uzeit = sy-uzeit.
                CALL FUNCTION 'RV_INVOICE_CREATE'
                  EXPORTING
                DELIVERY_DATE   = sy-datum
                    INVOICE_DATE    = sy-datum
                    INVOICE_TYPE    = p_fkart
                    PRICING_DATE    = sy-datum
                    vbsk_i          = gs_vbsk
                    with_posting    = 'B'
                    id_no_enqueue   = 'X'
                  IMPORTING
                    vbsk_e       = gs_vbsk
                  TABLES
                    xkomfk       = gt_xkomfk
                    xkomv        = gt_xkomv
                    xthead       = gt_xthead
                    xvbfs        = gt_xvbfs
                    xvbpa        = gt_xvbpa
                    xvbrk        = gt_xvbrk
                    xvbrp        = gt_xvbrp
                    xvbss        = gt_xvbss.
                CLEAR:   gt_xkomfk.
                REFRESH: gt_xkomfk.
              ENDAT.
              loop at gt_xvbfs.
                gs_vbeln-vbeln    = gt_xvbfs-vbeln.
                gs_vbeln-vbeln_so = GS_INIT_ITAB2-vbeln.
                append gs_vbeln to gt_vbeln.
              endloop.
          ENDCASE.
        endloop.
        commit work.
    Regards,
    Tim

  • HT204053 Can I create another email address with icloud. Like we are able to create more then 5 email address in virgin media. Help

    Can I create another email address with icloud.com. Like we can create few email on virginmedia or other provider

    You can add up to three 'email aliases' - these are additional addresses (not accounts) which deliver into the same inbox as the main account. (In fact it's a good idea to give out alias addresses, rather than the main address, because if they attract spam you can easily change them.) (New aliases can only be @icloud.com ones; @me.com addresses cannot now be created.)
    You should be aware before you start that once you've created an alias you cannot turn that address into a full iCloud account or move it to another account.
    More information on aliases here: http://help.apple.com/icloud/#mm6b1a490a
    You can of course create additional iCloud accounts, but any one device can create only three accounts - after that it can sign into accounts created on another device but not create any more (this is tied to the hardware).

  • Oracle RAC support more then one database

    My company's requirement is to have multiple database, instead of multiple schemas in the same databsae. The only reason to have multiple database is to support different applications with different database versions. for eg. One application sitting in Oracle RAC with have version 10.02.0.0. and other applications will have 10.02.0.2.

    You can have multiple instances on a node or multiple databases on one RAC cluster. However a more important factor that should be considered is to ensure that the servers are capable of handling the additional workload.
    Also to consider is the software compatibilities between various versions of Oracle RDBMS, ASM and the Oracle Clusterware.

  • Creating more then one JMS Destination using MBeans

    Hi all,
    I am trying to create 2(or more) JMS Destinations (Topics and Queues) in a JMS Server.
    The code looks like:
    MBeanHome home = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
    ServerMBean srvrMBean = (ServerMBean) home.getMBean("examplesServer", "Server",
    "examples");
    JMSServerMBean jmsServer = (JMSServerMBean)home.findOrCreateAdminMBean("examplesServer",
    "JMSServer", "examples");
    jmsServer.setStore(jmsStore);//jmsStore is JMSJDBCStoreMBean obj
    jmsServer.setTargets(srvrMBean);
    JMSDestinationMBean jmsTopic1 = (JMSTopicMBean)home.findOrCreateAdminMBean("tempTopic1",
    "JMSTopic", "examples", jmsServer);
    jmsTopic1.setJNDIName("com.temp.topic1");
    jmsServer.addDestination(jmsTopic1);
    and the second one is added as:
    JMSDestinationMBean jmsTopic2 = (JMSTopicMBean)home.findOrCreateAdminMBean("tempTopic2",
    "JMSTopic", "examples", jmsServer);
    jmsTopic2.setJNDIName("com.temp.topic2");
    jmsServer.addDestination(jmsTopic2);
    (Actually, the Topics are added to the jmsServer in a method)
    I can see in the console that the first topic is added to the JMS server and to the
    JNDItree of the server instance,
    But for some reason, the second topic is not added to the JNDI tree(but it is added
    to the JMS Server).
    and I can not look up the second object in JNDI.
    Does anybody come across this problem??
    what is the right way to add the destinations??
    thanks for any help
    -Vijay

    Hi Mihir,
    thanks....I tried the same program, but the only difference is i am setting the targets
    to the jms server (i.e. jmsServer.setTarget(tm);) before adding second destination
    to it(i tried both setDestinations and addDestination).
    Because, (according to my requirements) after adding the first destination i have
    to set the target for the jmsserver (which eventually starts the JMSserver).
    So, is there any way to add the destinations to the jmsserver after setting the targets??
    thanks for any help
    -Vijay
    "Mihir Kulkarni" <[email protected]> wrote:
    The following code works for me.
    Btw, I use setDestinations and pass it an array of JMSDestinationMBeans
    instead of using addDestinations()
    Hope this helps...
    mihir
    import java.util.Set;
    import java.util.Iterator;
    import java.rmi.RemoteException;
    import javax.naming.*;
    import weblogic.jndi.Environment;
    import weblogic.management.MBeanHome;
    import javax.management.ObjectName;
    import weblogic.management.WebLogicMBean;
    import weblogic.management.MBeanCreationException;
    import weblogic.management.configuration.ServerMBean;
    import weblogic.management.runtime.ServerRuntimeMBean;
    import weblogic.management.WebLogicObjectName;
    import weblogic.management.configuration.*;
    import javax.management.InvalidAttributeValueException;
    /* Running this program will create a JMS Server and a JMS Connection
    * Factory targetted to the Admin server. It will also add a JMS Topic
    * and a JMS Queue to the JMSServer.
    * This will create the following entries in the config.xml:
    * <JMSServer Name="myJMSServer" Targets="MyServer">
    * <JMSQueue JNDIName="jmx.jms.myJMSQueue" Name="myJMSQueue"/>
    * <JMSTopic JNDIName="jmx.jms.myJMSTopic" Name="myJMSTopic"/>
    * </JMSServer>
    * <JMSConnectionFactory JNDIName="jmx.jms.myJMSConnectionFactory"
    * Name="myJMSConnectionFactory" Targets="MyServer"/>
    public class createJMS {
    public createJMS() {
    public static void main(String[] args) {
    JMSServerMBean jmsServer = null;
    JMSDestinationMBean jmsQueue = null;
    JMSDestinationMBean jmsTopic = null;
    JMSConnectionFactoryMBean jmsConnectionFactory = null;
    JMSSessionPoolMBean jmsSessionPool = null;
    JMSConnectionConsumerMBean jmsConnectionConsumer = null;
    ServerMBean srvrMBean = null;
    MBeanHome home = null;
    JMSServerMBean jmsServerConfig = null;
    file://domain variables
    String url = "t3://localhost:7001";
    String username = "system";
    String password = "mihirk00";
    file://variable Names
    String DOMAIN = "mihirDomain";
    String ADMINSERVERNAME = "MyServer";
    String JMSSERVER = "myJMSServer";
    String JMSCONNECTIONFACTORY = "myJMSConnectionFactory";
    String JMSQUEUE = "myJMSQueue";
    String JMSTOPIC = "myJMSTopic";
    log("Creating AdminMBeans for JMS queue and JMS connection
    factory");
    try
    Environment env = new Environment();
    env.setProviderUrl(url);
    env.setSecurityPrincipal(username);
    env.setSecurityCredentials(password);
    Context ctx = env.getInitialContext();
    home = (MBeanHome)ctx.lookup("weblogic.management.adminhome");
    log("Got AdminHome: " + home);
    String name = DOMAIN + ":,Name=" + ADMINSERVERNAME + ",Type=Server"
    WebLogicObjectName objName = new WebLogicObjectName(name);
    srvrMBean = (ServerMBean)home.getMBean(objName);
    file://srvrMBean =
    (ServerMBean)home.getMBean(ADMINSERVERNAME,"Server",DOMAIN);
    log("Got the serverMBean: " + srvrMBean);
    } catch (Exception e) {
    log("Exception in getting Admin home & srvrMBean: " + e);
    /* the findOrCreateAdminMBean method of the MBeanHome is used to
    create
    * the Admin MBeans for all the JMS stuff needed for this utility
    * the method takes 3 parameters - Name, Type, Domain
    * the type Parameter is the name of the MBean you want to create
    * minus the MBean prefix
    * eg) JMSServer, JMSConnectionFactory, JMSQueue etc..
    * It also takes an addition parameter which is the parent
    AdminMbean
    * if one needs to create a child node in the xml tree.
    * Once the MBean is created you can set attributes on it using
    the
    * exposed API of that MBean
    * Its always better to use the findOrCreateAdminMBean method compared
    * to createAdminMBean method .
    file://use findOrCreateAdminMBean to create JMSConnectionFactory
    try {
    jmsConnectionFactory =
    (JMSConnectionFactoryMBean)home.findOrCreateAdminMBean(JMSCONNECTIONFACTORY,
    "JMSConnectionFactory", DOMAIN);
    if( jmsConnectionFactory.getJNDIName() == null) {
    jmsConnectionFactory.setJNDIName("jmx.jms.myJMSConnectionFactory");
    log("Created a JMSConnectionFactory");
    else
    log("looked up JMS ConnectionFactory: " +
    jmsConnectionFactory.getJNDIName());
    } catch (MBeanCreationException e) {
    log("MBeanCreationException: " + e);
    catch(InvalidAttributeValueException e) {
    log("InvalidAttributeValueException: " + e);
    file://create the JMSServerMBean
    try {
    jmsServer = (JMSServerMBean)home.findOrCreateAdminMBean(JMSSERVER,
    "JMSServer", DOMAIN);
    log("Found or Created a JMSServer");
    } catch (MBeanCreationException e) {
    log("MBeanCreationException: " + e);
    file://create the JMSQueueMBean - use methods of
    JMSDestinationMBean
    file://here we pass the jmsServer as the parent MBean so that the
    file://JMSQueueMBean is created as the child of the JMSServerMBean
    try {
    jmsQueue =
    (JMSDestinationMBean)home.findOrCreateAdminMBean(JMSQUEUE, "JMSQueue",
    DOMAIN, jmsServer);
    if( jmsQueue.getJNDIName() == null) {
    jmsQueue.setJNDIName("jmx.jms.myJMSQueue");
    log("Created a JMSQueue");
    else {
    log("looked up JMS Queue: " + jmsQueue.getJNDIName());
    } catch (MBeanCreationException e) {
    log("MBeanCreationException: " + e);
    catch(InvalidAttributeValueException e) {
    log("InvalidAttributeValueException: " + e);
    file://create the JMSTopicMBean - use methods of
    JMSDestinationMBean
    file://here we pass the jmsServer as the parent MBean so that the
    file://JMSTopicMBean is created as the child of the JMSServerMBean
    try {
    jmsTopic =
    (JMSDestinationMBean)home.findOrCreateAdminMBean(JMSTOPIC, "JMSTopic",
    DOMAIN, jmsServer);
    if( jmsTopic.getJNDIName() == null) {
    jmsTopic.setJNDIName("jmx.jms.myJMSTopic");
    log("Created a JMSTopic");
    else {
    log("looked up JMS Topic: " + jmsTopic.getJNDIName());
    } catch (MBeanCreationException e) {
    log("MBeanCreationException: " + e);
    catch(InvalidAttributeValueException e) {
    log("InvalidAttributeValueException: " + e);
    file://create the target Arrays
    JMSDestinationMBean[] jdm = {jmsQueue,jmsTopic};
    TargetMBean[] tm = {srvrMBean};
    file://set the Destinations for the jms Server
    try {
    jmsServer.setDestinations(jdm);
    log("Added Destination to the jmsServer");
    } catch(Exception e) {
    log("Excpn in setting the property for jmsServer:" + e);
    /* Now target the JMS Server to the appropriate Server
    * As the JMSServerMBean extends the DeploymentMBean, we can
    directly
    * use the addTarget method of the DeploymentMBean
    file://ordering is important
    file://Target the JMS ConnectionFactory
    try {
    jmsConnectionFactory.setTargets(tm);
    log("Targetted the Connection Factory to the admin Server");
    } catch (Exception e) {
    System.out.println("Exception in targetting the
    jmsConnectionFactory to the Admin server: " + e);
    file://Target the JMS Server
    try {
    jmsServer.setTargets(tm);
    log("Targetted the JMS Server to the admin Server");
    } catch (Exception e) {
    System.out.println("\nException in targetting the jmsServer to
    the Admin server: " + e);
    log("Done with registering AdminMBeans for JMS");
    private static void log(String s) {
    System.out.println("\n[createJMS]: " + s);
    "Vijay Bujula" <[email protected]> wrote in message
    news:[email protected]...
    Hi all,
    I am trying to create 2(or more) JMS Destinations (Topics and Queues)in a
    JMS Server.
    The code looks like:
    MBeanHome home = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
    ServerMBean srvrMBean = (ServerMBean) home.getMBean("examplesServer","Server",
    "examples");
    JMSServerMBean jmsServer =(JMSServerMBean)home.findOrCreateAdminMBean("examplesServer",
    "JMSServer", "examples");
    jmsServer.setStore(jmsStore);//jmsStore is JMSJDBCStoreMBean obj
    jmsServer.setTargets(srvrMBean);
    JMSDestinationMBean jmsTopic1 =(JMSTopicMBean)home.findOrCreateAdminMBean("tempTopic1",
    "JMSTopic", "examples", jmsServer);
    jmsTopic1.setJNDIName("com.temp.topic1");
    jmsServer.addDestination(jmsTopic1);
    and the second one is added as:
    JMSDestinationMBean jmsTopic2 =(JMSTopicMBean)home.findOrCreateAdminMBean("tempTopic2",
    "JMSTopic", "examples", jmsServer);
    jmsTopic2.setJNDIName("com.temp.topic2");
    jmsServer.addDestination(jmsTopic2);
    (Actually, the Topics are added to the jmsServer in a method)
    I can see in the console that the first topic is added to the JMS serverand to the
    JNDItree of the server instance,
    But for some reason, the second topic is not added to the JNDI tree(butit
    is added
    to the JMS Server).
    and I can not look up the second object in JNDI.
    Does anybody come across this problem??
    what is the right way to add the destinations??
    thanks for any help
    -Vijay

Maybe you are looking for

  • Can I buy a MacBook Pro with swedish keyboard in USA and pick it up in New York?

    Can I buy a MacBook Pro with Swedish Keyboard online and pick it up on an Apple Retail store in New york

  • Spacing of photos on pages in Book

    Hi, I am trying to set out a portfolio in a book. It seems that if one tries to put 2 photos on a page, the programme 2-photo template(s) crams them up together with no space between them. This ruins the visual effect of both photos. I can't find any

  • Problem in calling jsp/servlets ...Last Day

    when ever I call jsp page from browser, It always search the jsp page in the parent directory of the documentroot directory. Also I am not able to set the configuration for calling the servlet from my customize laocation. is any other entry needed ex

  • Help - CS3 Illustrator unexpected quitting after booting up...

    We still run CS3 at my work. When I switched to a mac with Snow Leopard I started to have a minor issue. I turn on my computer, start Adobe Illustrator and when I try to open a file it "Unexpectedly" quits. When I start it again it's fine and works s

  • Can't download from SWDC

    How can I download SAP ECC6 and other programs? I cant find and serch these products in SWDC. I am a partner of SAP B1 product. I own a account of sap website. Thanks!