How to Create MultiDataSource in Weblogic 10.3

Hi ,
I am looking for some sample code (java code not the WLS code) or document which provides enough details to create JDBC Multi DataSource in Weblogic 10.3.
I am able to create the dataSource but not able to do for MDS.
Thanks in Advance
Edited by: user774261 on Aug 25, 2009 3:51 AM

WebLogic Server has a scripting environment called WLST which is provided for this exact purpose.
WLST uses Python (Jython) as a language and can facilitate the creation of WLS resources, such as datasources, multi data sources. It ultimately uses the set of WLS MBeans and the AdministrationServer to perform configuration and management operations.
There's a specific book in the documentation which covers WLST, which I'd recommend reading to get up to speed on this:L
http://download.oracle.com/docs/cd/E12839_01/web.1111/e13715/toc.htm
There are some sample scripts in the WLS installation which should give you some idea of how to do what you need -- jdbc_data_source_creation.py for example.
Further, there's also a very nice facility exposed in the WLS console to help you get going. Using the console, you can record a set of actions, which are generated out as a WLST script. This means you can go into the console, start recording, execute the sequence of steps required to construct your multi data source, and have the sequence saved into a script.
You can then use the script as it stands, or edit it to support whatever specific changes you need.
You could then execute the WLST script from whatever installation process you have -- there's documentation existing on how to invoke WLST as an embedded interpreter directly from Java code.
If you want to do it purely from Java using JMX and the WLS MBeans, then take a look at the WLS JMX guide:
http://download.oracle.com/docs/cd/E12839_01/web.1111/e13728/toc.htm
-steve-

Similar Messages

  • How to access MultiDataSource in Weblogic 10.3  using jmx

    Hi ,
    I am looking for some sample jmx code or document which provides enough details to access JDBC Multi DataSource in Weblogic 10.3.
    Thanks in Advance

    http://www.oracle.com/technology/products/weblogic/howto/rac/index.html
    For the java code to do it you can start a WLST recording before you create the multi-data source which should get you started.

  • How to create users in Weblogic using an API

    Hi All,
    I have a requirement where i need to add the users in security realm without using Weblogic Console.Is there any API or program which lets us to create the users and set it in realm.
    Please suggest!!
    Thanks.

    Hi,
    You can follow the blog written by Middleware magic team
    Creating Users And Groups
    http://middlewaremagic.com/weblogic/?p=4981
    Deleting Users And Groups
    http://middlewaremagic.com/weblogic/?p=5234
    Users List from Security Realm
    http://middlewaremagic.com/weblogic/?p=6678
    Hope this will be helpful
    Regards
    FAbian

  • How to create add Oracle Weblogic's NodeManager as a service to xinetd?

    I'm trying to add NodeManager to start automatically when system boots
    In Oracle® Fusion Middleware Node Manager Administrator's Guide there is this template:
    # default: off
    # description:nodemanager as a service
    service nodemgrsvc
    type = UNLISTED
    disable = no
    socket_type = stream
    protocol = tcp
    wait = yes
    user = <username>
    port = 5556
    flags = NOLIBWRAP
    log_on_success += DURATION HOST USERID
    server = <path-to-jave>/java
    env = CLASSPATH=<cp> LD_LIBRARY_PATH=<ldpath>
    server_args = -client -DNodeManagerHome=<NMHome> <java options>
    <nodemanager options> weblogic.NodeManager -v
    I don't know how to fill:
    * cp
    * ldpath
    * java_options
    * nodemanager options
    Do you have any xinetd script example to start nodemanager?
    Thanks in advance.

    this script worked for me:
    # default: off
    # description:nodemanager as a service
    service nodemgrsvc
            type = UNLISTED
            disable = no
            socket_type = stream
            protocol = tcp
            wait = yes
            user = oracle
            port = 5556
            flags = NOLIBWRAP
            log_on_success += DURATION HOST USERID
            server = /usr/bin/java
            env = CLASSPATH="/u01/app/oracle/product/11.1.1/mw/patch_wls1032/profiles/default/sys_manifest_classpath/weblogic_patch.jar:/u01/app/oracle/jrmc-3.1.2-1.6.0/lib/tools.jar:/u01/app/oracle/product/11.1.1/mw/utils/config/10.3/config-launch.jar:/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/server/lib/weblogic_sp.jar:/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/server/lib/weblogic.jar:/u01/app/oracle/product/11.1.1/mw/modules/features/weblogic.server.modules_10.3.2.0.jar:/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/server/lib/webservices.jar:/u01/app/oracle/product/11.1.1/mw/modules/org.apache.ant_1.7.0/lib/ant-all.jar:/u01/app/oracle/product/11.1.1/mw/modules/net.sf.antcontrib_1.0.0.0_1-0b2/lib/ant-contrib.jar::/u01/app/oracle/product/11.1.1/mw" LD_LIBRARY_PATH="/u01/app/oracle/product/11.1.1/mw/patch_wls1032/profiles/default/native:/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/server/native/linux/x86_64:/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/server/native/linux/x86_64/oci920_8"
            server_args = -DNodeManagerHome=/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/common/nodemanager -client -Xms128m -Xmx256m  -Xverify:none  -Djava.security.policy=/u01/app/oracle/product/11.1.1/mw/wlserver_10.3/server/lib/weblogic.policy -Dweblogic.nodemanager.javaHome=/usr/java/jdk1.6.0_18  weblogic.NodeManager -v
    }For the classpaths you'll need to know that I have these variables set:
    $MW_HOME=/u01/app/oracle/product/11.1.1/mw
    $WL_HOME=/u01/app/oracle/product/11.1.1/mw/wlserver_10.3
    $JAVA_HOME=/usr/java/jdk1.6.0_18But I still have the problem that I can't startup the managed servers (soa_server and bam_server). It is not documented anywhere and I don't know how to do it.
    I need that when I restart the machine all servers are up.
    Thanks in advance

  • How to Create Delivery for a delivery detail which is in Released Status 'Y

    Hi All,
    I am trying to create delivery for a delivery detail which is in Release Status (Release status 'Y'). When I am trying to create trips using the API 'wsh_delivery_details_pub.Autocreate_del_Trip', I am getting this error “Delivery ID XXXXX is not eligible for action Auto-create Trip”.
    Please advise.
    Thanks

    Hi Gokula,
    Web Application security is defined in the servlet spec. You should use
    web.xml and weblogic.xml to configure security instead of using acl's
    I am enclosing the link to the relevant documentation below
    http://e-docs.bea.com/wls/docs61/webapp/security.html#100365
    Gokula Krishnan wrote:
    Hi All,
    I am working on Weblogic6.1 and iPlanet Directory Server 5.1. I
    am trying to create ACL's in Weblogic and to test a Web Application
    which I have configured in weblogic. The problem is I am not able to
    create a ACL for the web application resource in weblogic. Could any
    one pls help me on how to create ACL through weblogic console.
    I try creating ACL as per the document but I dont now how to give
    permission and map the ACL for the resource.
    Thanks in advance...
    With regards,
    Gokul.

  • How to create and deploy a simple jstl applicaton in weblogic 10.3.3

    How to create and deploy a simple jstl applicaton in weblogic 10.3.3

    1) Since JSTL libraries are provided as Web application libraries, they must be deployed before the Web application that is using JSTL functionality is deployed. The libraries can be deployed using the Administration Console or with the command-line weblogic.Deployer tool.
    Here’s an example of deploying a JSTL 1.2 library using the weblogic.Deployer command-line:
    java weblogic.Deployer -adminurl t3://localhost:7001
    -user weblogic -password weblogic
    -deploy -library
    d:/beahome/wlserver_10.3/common/deployable-libraries/jstl-1.2.war
    This command deploys the JSTL 1.2 library using the default library-name, specification-version and implementation-version defined by the MANIFEST.MF in the library.
    After a library is deployed, the extension-name, specification-version and implementation-version of the library can be found in Administration console. This information can also be found in the MANIFEST.MF file of the library WAR file.
    For more information on deploying a Web module refer below URL
    http://docs.oracle.com/cd/E15051_01/wls/docs103/deployment/deployunits.html
    2) To reference a JSF or JSTL library, a standard web application can define a <library-ref> descriptor in the application’s weblogic.xml file. Here is an example:
    <library-ref>
    <library-name>jsf</library-name>
    <specification-version>1.2</specification-version>
    <implementation-version>1.2.0</implementation-version>
    <exact-match>false</exact-match>
    </library-ref>
    For more information on referencing a Web application library refer below URL
    http://docs.oracle.com/cd/E15051_01/wls/docs103/programming/libraries.html
    3) Create a sample JSP in your application and JSP should look as shown below
    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %>
    <html>
    <head>
    <title>TestJSTL</title>
    </head>
    <body>
    <c:set var="topic" value="JSTL" />     
    <c:out value="${topic}" />
    </body>
    </html>
    4) Create WAR and deploy and test.
    Edited by: Murali Veligeti on Jul 26, 2012 9:00 AM

  • How to create and use Webservice controls using WSDL in weblogic portal10.3

    Hi All,
    I have WSDL , How to create webservice controls using the WSDL in weblogic portal 10.3 and use those controls to invoke those webservice methods?
    please give me the documents links for this.
    Thanks
    Venkata Sarvabatla

    As far as I remember, Controls can be called only from Pageflows, BackingFiles, Another Control (Like control calling another control) etc. In pageflow we use annotation @Control and give control classname and a varialbe for that. I am pretty sure this annotation may not work from normal java class and in your case a JAVA JSR Class.
    If you installed the samples, refer the samples from WLS: C:\beawlp103\wlserver_10.3\samples\server\examples\src\examples\webservices. They have lot of fully ready to work samples with instructions. I used clientgen ant task. But you can use standard SUN JDK Command "wsimport" also to generate the java files from the WSDL. Open any command prompt. If java is in classpath, just run wsimport and that should give an idea.
    Goud

  • How to Create  and use of Coherence servers in weblogic serevr 11g (10.3.6)?

    how to Create  and use of Coherence servers in weblogic serevr 11g (10.3.6)?

    See the below discussion
    How to create and use Webservice controls using WSDL in weblogic portal10.3
    Thanks,
    Venkat Sarvabatla

  • How to create an RDBMS event generator using wlst on weblogic 10.3

    how to create an RDBMS event generator using wlst on weblogic 10.3, i got a code fragment needing class "com.bea.wli.management.configuration.RDBMSEventGenChannelConfiguration"
    but i can' t find this class in classpath on weblogic 10.3, pls help me, thanks. code sample is better.

    Hi,
    RDBMS Event Generator Channel Rule Definition
    When you are creating channel rule definitions in the WebLogic Integration Administration Console, it is recommended that you do not use the Back button if you want to resubmit the details on a page.
    You should always use the navigation links provided and create a new channel rule definition.
    http://download.oracle.com/docs/cd/E13214_01/wli/docs85/deploy/cluster.html
    http://download.oracle.com/docs/cd/E13214_01/wli/docs81/relnotes/relnotesLimit.html
    http://otndnld.oracle.co.jp/document/products/owli/docs10gr3/pdf/deploy.pdf
    This problem has been seen in the past when defining the channel rule for an RDBMS Event Generator if schema name was specified with the incorrect case (i.e. lowercase when it should have been uppercase or vice versa). To that end, it is suggested to change the case of the schema when creating the channel rule
    Regards,
    Kal

  • How to create a servlet to be called by a portlet in weblogic workshop

    Hey,
    In weblogic workshop 8.1.4, I created a portal application. In the portlet(Java portlet- JSR 168), I would like to call a Java Servlet. In the workshop, it seems there is no way to create a Java Servlet.
    Does anybody know how to create a Java Servlet in the Weblogic workshop?
    Thanks!
    Jeff

    How about creating a java class and adding the proper imports, extends, methods etc. to make it a servlet.
    Do the the necessary changes to web.xml
    Then try to invoke it from the portlet's jsp of java code
    HTH,
    Raj

  • How to create a Weblogic Duplex Service?

    How to create a Weblogic Duplex Service?
    Like this in WCF:
    http://msdn.microsoft.com/en-us/library/ms731184.aspx

    However you can't run a batch script as a service in Windows. I think you are looking in the wrong place for a solution.

  • How to create a web instance in weblogic?

              Dear All,
              I want to know how to create a web instance in weblogic server?
              Furthermore , where can i get more info. about the weblogic
              server , including how to use those examples pages provided from
              weblogic server, sampling of procedure to config each service ,
              e.g EJB , JSDB , JTA , etc., .
              thanks,
              chris
              

    Read the new JSP1.1 and servlet 2.2 specific for more information on
              this. You can deploy several jsp files in a single war file on a server.
              -- Prasad
              chris lee wrote:
              > Dear Prasad Peddada
              > Thank you for your helpful information.
              > I've read the page you have mentioned, I want to know
              > if I've serval pages written in jsp, how should I do if I
              > want to access those pages under the weblogic server?
              > Furthermore, Does the 'applicantion' mention in the paragraph
              > is the web instance I mentioned before?
              >
              > Thanks,
              > chris
              >
              > Prasad Peddada <[email protected]> wrote:
              > >http://edocs.beasys.com/wls/docs60/index.html
              > >
              > >-- Prasad
              > >
              > >chris lee wrote:
              > >
              > >> Dear All,
              > >> I want to know how to create a web instance in weblogic
              > >server?
              > >> Furthermore , where can i get more info. about the weblogic
              > >> server , including how to use those examples pages provided
              > >from
              > >> weblogic server, sampling of procedure to config each
              > >service ,
              > >> e.g EJB , JSDB , JTA , etc., .
              > >>
              > >> thanks,
              > >> chris
              > >
              Cheers
              - Prasad
              

  • How to create users and groups using WLST Offline with Weblogic 8.1.4

    How to create users and groups using WLST Offline with Weblogic 8.1.4?
    Any ideas?

    Hi this is how i created a user using WLST Offline?
    cd('/Security/' + domainName)
    # Delete the default user name weblogic
    # incase you want to remove the defualt user weblogic
    delete('weblogic','User')
    # Creating a new user defined
    create(userName, 'User')
    # Setting the password of the user you created.
    cd ('/Security/' + domainName + '/User/' + userName)
    cmo.setPassword(password)
    Regards
    Makenzo

  • How to create a server through WLST  ( Weblogic Scripting Tool ) ?

    How to create a server through WLST ( Weblogic Scripting Tool ) ?
    Thanks in advance...
    Sanjay

    Hi Murugesh,
    Thanks a lot for you reply..
    I was able to create a server using create(). Is it possible to clone a server ?
    When i create a server following tags is added to config.xml
    <server>
    <name>testServer_lab1</name>
    <listen-port>43000</listen-port>
    </server>
    And if i do a clone through admin console, following is added to config.xml
    <server>
    <name>testServer2_lab1</name>
    <machine xsi:nil="true"></machine>
    <listen-port>7001</listen-port>
    <cluster xsi:nil="true"></cluster>
    <listen-address></listen-address>
    <graceful-shutdown-timeout>120</graceful-shutdown-timeout>
    </server>
    If incase, cloning is not possible through WLST, can i add following
    <machine xsi:nil="true"></machine>
    <listen-port>7001</listen-port>
    <cluster xsi:nil="true"></cluster>
    <listen-address></listen-address>
    <graceful-shutdown-timeout>120</graceful-shutdown-timeout>
    under <server> tag which is created through WLST ?
    I am using 9.2 version.
    Regards
    Sanjay

  • Urgent help: how to create data source for Weblogic RMI driver

    Hi,
    Please let me how to create data source for Weblogic RMI driver using Administrator
    console.
    I understand that the following steps are required:
    1.Create connection pool for the RMI driver by specfiying URL as
    jdbc:weblogic:rmi and Driver as weblogic.jdbc.rmi.Driver. Now
    comes the problem.. what do put in properties text area? I am
    talking about key/value pairs required?
    2. Having done step 1 ( which I was not able to do) , create a new DataSource
    mapping to the connection pool created from step 1.
    How to accomplish step 1 ? I want to finally connect to Oracle
    database. Please help me.
    pradeep bhat

    DataSource will internally do that for you (It will use RMI internaly) . You
    dont have to worry about the details of using RMI driver. Thats what is a
    DataSource is for.
    sree
    "pradeep bhat" <[email protected]> wrote in message
    news:[email protected]...
    Hi Sree,
    What u have written is abt configuting Datasource for type 2 and
    4 drivers.
    But I want to know how to create data source for RMI driver. If
    I map this datasource to connection pool that is created for
    type 2 or 4 drivers, i don't understand why RMI drivers are
    required in first place. If i do map the data source to connection pool
    created
    for type 2 or 4 drivers then where i
    would not have used the URL as jdbc:weblogic:rmi and Driver as
    weblogic.jdbc.rmi.Driver.
    Hope u will help me.
    pradeep bhat
    "Sree Bodapati" <[email protected]> wrote:
    Hi Pradeep
    To create a connection pool you have to use a database driver not RMI
    driver. So use a thin driver or the WebLogic jDriver for Oracle to setup
    your connection pool. Once the connection pool is created you can create
    a
    DataSource and use this datasource to connect to the database.
    The RMI driver can be used to get connections from the database via the
    connection pool and in that case you dont need a datasource. Recommended
    approach is to use a DataSource.
    hth
    sree
    "PRADEEP BHAT" <[email protected]> wrote in message
    news:[email protected]...
    Hi,
    Please let me how to create data source for Weblogic RMI driver using
    Administrator
    console.
    I understand that the following steps are required:
    1.Create connection pool for the RMI driver by specfiying URL as
    jdbc:weblogic:rmi and Driver as weblogic.jdbc.rmi.Driver. Now
    comes the problem.. what do put in properties text area? I am
    talking about key/value pairs required?
    2. Having done step 1 ( which I was not able to do) , create a new
    DataSource
    mapping to the connection pool created from step 1.
    How to accomplish step 1 ? I want to finally connect to Oracle
    database. Please help me.
    pradeep bhat

Maybe you are looking for

  • SAP R3 FCC 6.0 - AR Aging FBL5N did not reflect correct balance

    AR aging report (S_ALR_87012173 Customer Open Items for printing) or AR Aging T-code  FBL5N did not show correcct balance which will show 100% original invoice balance even we applied the partial payment.  Anyone has same problem?  If not, what cause

  • Creating a sales order via lsmw.

    Hi, I am creating sales orders via lsmw. Each of these sales orders may contain any number of line items, i.e. sales order 1 might have 3 line items and the next sales order may have 10. How do I cater for this in lsmw. Is there a way of saying: when

  • Dynamic Structure creation and assigning data.

    Hi, I have a structure and a work area, DATA: begin of sample_struct,       elem1 type xxx,       elem2 type yyy,       elem3 type zzz,       end of sample_struct. DATA: wa_sample_struct type sample_struct. DATA: lr_rtti_struc TYPE REF TO cl_abap_str

  • "Supports rollup to higher level of aggregation" property

    Hi Gurus, I am confused on the significance of check box "Supports rollup to higher level of aggregation", I see it always checked, i could understand from few notes that "It is selected so that data stored at this level can be aggregated to produce

  • Computer startup issues

    hi i was wondering if anyone knew why during my computers startup i dont hear the apple startup song? help please much appreciated, im also getting an error message once it turns on but its only on for about half a second so its impossible to read wh