How to connect to weblogic?

I have an ADF web applicaton which contains 2 projects, Model and ViewController.
I create another project named Build and it has a xml file, ojdeploy-build.xml.
However, how to connect to weblogic domain in ojdeploy-build.xml?
---------------------ojdeploy-build.xml--------------------
<?xml version="1.0" encoding="US-ASCII" ?>
<!-- Defines default parameters for all deploy tasks.
Also defines some variables strictly for use within this file
in macros
-->
<ojdeploy-build>
<deploy>
<parameter name="workspace" value="E:\SOAworkspace\otnapp\otnapp.jws"/>
<parameter name="profile" value="*"/>
<parameter name="nocompile" value="true"/>
<parameter name="nodatasources" value="true"/>
<parameter name="forcerewrite" value="true"/>
<parameter name="outputfile" value="E:\SOAworkspace\otnapp\deploy\otntest.ear"/>
<property name="wl_server" location="D:\weblogicSA2011\wlserver_10.3\samples\domains\wl_server" />
</deploy>
</ojdeploy-build>

This blog gives you a start http://blogs.oracle.com/smuenchadf/2009/11/online_help_for_ojdeploy_utili.html
But as far as I can tell ojdeploy just creates the EAR file. It does not deploy it to an WLS. For this you can use WSLT.
Timo

Similar Messages

  • How to connect to weblogic data source using jndi name?

    I am trying to connect to database using data source look up from weblogic as below:
    factory = "weblogic.jndi.WLInitialContextFactory"
    conn = zxJDBC.lookup('ApplicationDB',INITIAL_CONTEXT_FACTORY=factory)
    this is throwing DatabaseError:
    however i can connect to the db using uname, pwd and url. its working fine using zxJDBC in jython.
    any clue why the first one is failing?

    import java.sql.*;
    import javax.sql.*;
    import javax.naming.*;
    import java.util.*;
    public class MyDataSourceLookupClient
         public final static String JNDI_FACTORY = "weblogic.jndi.WLInitialContextFactory";
         private static String serverUrl ="t3://localhost:7001";
    public static void main(String ar[])throws Exception
    InitialContext ic=null;
    try{
              Hashtable env = new Hashtable();
              env.put(Context.INITIAL_CONTEXT_FACTORY, JNDI_FACTORY);
              env.put(Context.PROVIDER_URL, serverUrl);
              ic = new InitialContext(env);
    catch(Exception e){}
    try{
    DataSource ds=ic.lookup("YourDataSourceJNDIName");
    Connection con=ds.getConnection();
    System.out.println("\n\t Got Connection: "+con);
    con.close();
    catch(Exception e)
    System.out.println("\n\n\t jack Exception => "+e);
    e.printStackTrace();
    Thanks
    Jay SenSharma
    http://jaysensharma.wordpress.com (WebLogic Wonders Are Here)

  • How to connect websocket with weblogic.

    Hi,
    Can anyone tell how to connect websocket of html5 with weblogic server. Currently i am doing this thing with webbit NettyWebServer.
    thanks in advance

    Hi Shajon --
    Unfortunately, we're not permitted to give specific release dates/estimates - the best I can offer is that FMW 12c (which will contain WLS 12.1.2) is due to ship in CY 2013.
    I can probably provide you with the GlassFish chat example we have running on WLS (v.minor changes in API) to give you a sense of what it looks like.
    -steve-

  • How we connect OPEN LDAP to weblogic server

    Hi All,
    How we connect OPEN LDAP to weblogic server

    There are several blogs for how you set up Open LDAP as a security provider:
    http://biemond.blogspot.com/2008/10/using-openldap-as-security-provider-in.html
    http://blogs.oracle.com/jamesbayer/2007/08/using_openldap_with_weblogic_s.html

  • Connect to weblogic Server's JVM

    Hello everybody,
    I´m trying connect to weblogic server´s JVM to execute a class inside the jar.
    It works fine, but my jar has a class with static atributes that I want change its values calling the following command line:
    %JAVA_HOME%\bin\java -Djavax.naming.Context.INITIAL_CONTEXT_FACTORY=weblogic.jndi.WLInitialContextFactory -Djavax.naming.Context.PROVIDER_URL=t3://localhost:7001 -jar %_APP_HOME%\WEB-INF\lib\AdminServer.jar -1
    Afer it the values of my class atribute has changed but my web application does not see this news values.
    I thinking... Am I connected to weblogic server´s JVM ?
    Could Anyone help me?

    You need to take a step back and think about what you're trying to achieve, Denilson.
    Using static attributes in classes has all sorts of side-effects because of how classloaders work in J2EE - if you're referencing a class used inside the web application and poking a static property, what is most likely happening is that your local application is loading the class in its own classloader, modifying the property, and then exiting. A separate copy of the class has been loaded by the web application.
    You can see more information on classloaders here: http://edocs.bea.com/wls/docs81/programming/classloading.html#1089798
    If you want to run an application to change some value on the server, there are a number of options available:
    - getting, changing and replacing an object in the JNDI tree (this is still an ugly solution)
    - using a servlet or stateless session bean to get the job done (this is a better solution - simple, but still not as good as you could potentially get)
    I'd suggest using a servlet to modify an attribute scoped at the web application level as a lightweight way to do what you're trying to. <i>(if I'm understanding what your goal is correctly)</i>. That way you could test making changes with your browser, not just a Java application.
    Does any of that help?
    <br>
    Kevin Powe
    http://www.integral-techsolutions.com

  • How to connect ORACLE8i and xml

    this is sethu involving in the effort to do a project in xml and oracle 8i in the environment of weblogic.
    i need how to connect oracle8i using xml
    which enable me to start my project.
    with regards
    sethu
    email:[email protected]
    null

    I agree with the rest of you folks. JDOM will be your best bet for integration. I am currently using JDOM to parse and/or create xml documents. As mentioned the tutorials are very good to check out. If you just want to hit the JDOM highlights and hit the ground running check out this link. http://www.jdom.org/downloads/docs.html
    Take some time to check out the first 3 links on that page. They are JDOM and XML Parsing, Part 1, Part 2, and Part 3. Very good information about JDOM and XML parsing.
    Hope some of this will help!

  • How Many Connections Created???

    We have a customer running WLS 5.1 on Solaris vs. Oracle 8.1.6. Here is the configuration
    for the connection pool:
    weblogic.jdbc.connectionPool.ewDBConnectionPool=\
    url=jdbc:weblogic:oracle,\
    driver=com.manu.es.db.ESWeblogicDriver,\
    loginDelaySecs=1,\
    initialCapacity=4,\
    maxCapacity=10,\
    capacityIncrement=2,\
    allowShrinking=true,\
    shrinkPeriodMins=15,\
    refreshMinutes=10,\
    testTable=dual,\
    Note that com.manu.es.db.ESWeblogicDriver just extends weblogic.jdbc.oci.Driver
    with some static properties to allow the driver to find our license.
    Given the small maximum number of connections, how do we explain this excerpt
    from the weblogic log:
    Wed Feb 27 19:39:32 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:33 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:34 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:35 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:36 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:37 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:38 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:39 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:40 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:41 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:42 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:43 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:45 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:46 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:47 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:48 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:49 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:50 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:51 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:52 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:53 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:54 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:55 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:56 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:58 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:59 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:40:00 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:40:01 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:40:02 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:40:03 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:51:05 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:51:06 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    ..and it continues on from there...
    Thanks in advance for any enlightenment.
    Mark

    Mark Shaffer wrote:
    We have a customer running WLS 5.1 on Solaris vs. Oracle 8.1.6. Here is the configuration
    for the connection pool:Hi. Odd. My guess is that multiple user threads all hit the pool at the same time when it had none
    available, so each thread simultaneously created 2 more connections. In other words, it may be a
    synchronization bug in the pool to allow this. Another factor may be that if the refresh testing
    is going on at that time, it may have temporarily reserved all the unused connections, causing the
    need for more. For stability and performance I recommend having the pool make all it's connections
    at startup (init=max), and not shrink, and to have testConnsOnReserve true, and to effectively turn
    off refresh by setting the time to 9999999.
    Joe
    >
    >
    weblogic.jdbc.connectionPool.ewDBConnectionPool=\
    url=jdbc:weblogic:oracle,\
    driver=com.manu.es.db.ESWeblogicDriver,\
    loginDelaySecs=1,\
    initialCapacity=4,\
    maxCapacity=10,\
    capacityIncrement=2,\
    allowShrinking=true,\
    shrinkPeriodMins=15,\
    refreshMinutes=10,\
    testTable=dual,\
    Note that com.manu.es.db.ESWeblogicDriver just extends weblogic.jdbc.oci.Driver
    with some static properties to allow the driver to find our license.
    Given the small maximum number of connections, how do we explain this excerpt
    from the weblogic log:
    Wed Feb 27 19:39:32 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:33 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:34 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:35 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:36 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:37 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:38 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:39 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:40 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:41 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:42 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:43 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:45 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:46 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:47 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:48 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:49 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:50 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:51 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:52 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:53 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:54 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:55 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:56 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:58 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:39:59 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:40:00 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:40:01 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:40:02 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:40:03 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:51:05 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    Wed Feb 27 19:51:06 CET 2002:<I> <JDBC Pool> Connection for pool "ewDBConnectionPool"
    created.
    ..and it continues on from there...
    Thanks in advance for any enlightenment.
    Mark

  • JMX - java -  how to connect on MBeans using encrypted password?

    Hi all,
    I am trying to write a java program which connect on weblogic JMX server:
    Map<String, String> jmxEnvMap = new HashMap<String, String>();
    jmxEnvMap.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,
    "weblogic.management.remote");
    jmxEnvMap.put(javax.naming.Context.SECURITY_PRINCIPAL, username);
    jmxEnvMap.put(javax.naming.Context.SECURITY_CREDENTIALS, password); //
    -- How to use the encrypted password value (ex. {3DES}1HQGOlfHha4rhNlqEOvcOQ==) indeed of its clear text value?
    -- How to use userConfigFile/userKeyFile files to connect on the mbeans server?
    Cyryl

    Hi all,
    I am trying to write a java program which connect on weblogic JMX server:
    Map<String, String> jmxEnvMap = new HashMap<String, String>();
    jmxEnvMap.put(JMXConnectorFactory.PROTOCOL_PROVIDER_PACKAGES,
    "weblogic.management.remote");
    jmxEnvMap.put(javax.naming.Context.SECURITY_PRINCIPAL, username);
    jmxEnvMap.put(javax.naming.Context.SECURITY_CREDENTIALS, password); //
    -- How to use the encrypted password value (ex. {3DES}1HQGOlfHha4rhNlqEOvcOQ==) indeed of its clear text value?
    -- How to use userConfigFile/userKeyFile files to connect on the mbeans server?
    Cyryl

  • OSB how to connect to SAP?

    Dear experts,
    Could you give some hints about how to connect to SAP using OSB(ALSB)? Using oracle's adapters?
    Further, pls. give some docs(gudies) about how to config it.
    One of our customers is hurrying to do a POC to verify OSB is suitable for integration with SAP.
    Thanking you!
    michael

    Michael,
    You can talk to your sales or mail to PM ([email protected]) to get a early access bits if urgently required.
    ERP adapters that can work with OSB/weblogic will be shortly released and so will be the documentation.
    Install ERP adapter (separate installer)
    Deploy adapter to weblogic JCA container (after configuring ra.xml)
    Use iwae to create target/channels and generate WSDL.
    Publish wsdl to OSB project.
    Create BS/PS as required using JCA transport.
    Cheers
    Manoj Neelapu

  • How to connect Forms 6i & Reports 6i with oracle 10g R2?

    Hey everybody,
    I need your help in connecting both Forms 6i & Reports 6i with Oracle 10g Release 2 db, MS Access(2003, 2007) and SQL database(Microsoft Visual Studio 2008). I am a newbie. I have installed all of them on my HP notebook, with Windows 7 Ultimate(32 bit OS) installed. I want to generate forms & reports by accessing data from above mentioned databases. Please provide me with the configuration steps.
    Thanks in advance...!

    Welcome to the forum ;-)
    Please be sure to review the following:
    http://blogs.oracle.com/shay/entry/10_commandments_for_the_otn_fo
    First, I think it would be a good idea if we can understand why you have chosen to use a nearly new operating system yet install Oracle products that are 10 years old (i.e. Forms/Reports 6i) on it. In general, this is not a good idea. Although running such an old version on Win7 can be made to work, the possibility of having problems is likely. If you are infact new to the product, using a configuration where you are likely to have problems may not be a good starting place. Also, you should be aware that Forms/Reports 6i was desupported several years ago. Documentation and other information is gradually being replaced by newer information, so resources for this old version are going away. The latest version of Forms/Reports is part of Fusion Middleware 11R2 (version 11.1.2.0) and requires WebLogic Server 10.3.5 (or 10.3.6) in order to be installed.
    Second, if you decide to stick with F/R 6i, are you planning to run the applications you create in a browser or as a client/server application? This information is important because how you connect to a database will slightly differ depending on which option you choose. Also, if you want to connect to non-Oracle data sources you can use ODBC for client/server or Oracle Transparent Gateway. However, if you plan to deploy the applications using a browser, Gateway is your only option for connecting to non-Oracle datasources. As for connecting to MS Access, I believe ODBC is your only option, so web deployment may not be an option.
    http://docs.oracle.com/cd/B19306_01/gateways.102/b14270/ch1.htm
    There are many other references available. Try a Google search.
    As for connecting to an Oracle database, this is generally easy. For the Builder(s) and client/server runtime to connect, add the db information to the tnsnames.ora found in the Oracle Home (installation directory) \network\admin. If you are unfamiliar with what goes in the file you can copy the entries created for your database. The db will have a similar file found in a similar place in its installation directory (Oracle Home). For example, you might find something like this:
    ORCL =
    (DESCRIPTION =
        (ADDRESS = (PROTOCOL = TCP)(HOST = YOURSERVER.COM)(PORT = 1521))
        (CONNECT_DATA =
          (SERVER = DEDICATED)
          (SERVICE_NAME = orcl)
    )Simply copy this information to the end of your tnsnames.ora found where Forms/Reports is installed then restart any running Forms or Builders.

  • ResourceException: Access not allowed (when trying to grab a connection from weblogic pool)

    I am using WLS7 with SP1.
    I just recently migrated from WLS6.0. When my code tries to grab a
    connection from the pool, it throws an exception
    java.sql.SQLException: Pool connect failed:
    weblogic.common.ResourceException: Access not allowed
    at weblogic.jdbc.pool.Driver.connect(Driver.java:202)
    Does anyone know if anything changed from 6.0 to 7?
    Here is a piece of the code that throws exception.
    Driver driver =
    (Driver)Class.forName("weblogic.jdbc.pool.Driver")
    .newInstance();
    conn = driver.connect("jdbc:weblogic:pool:" +
    dbName, null);
    Thanks in advance.

    Hi Jung,
    "Jung Yang" <[email protected]> wrote in message
    news:[email protected]...
    Do you know how to change security setting on the connection pool?
    Thanks.WebConsole:
    1.Compatibility Security => ACLs
    Create a new ACL,
    name : weblogic.jdbc.connectionPool.yourPoolname
    permission : reserve, reset
    group : everynone
    2.Services => JDBC => Connection Pool
    Create a new Connection Pool
    ACL Name : weblogic.jdbc.connectionPool.yourPoolname
    In 'Target' tab, choose server and click the Apply button
    Slava
    >
    "Slava Imeshev" <[email protected]> wrote in message
    news:[email protected]...
    Hi Jung,
    Could you try providing weblogic user name and password
    in the properties?
    Could you also check security setting of the connection pool?
    Regards,
    Slava Imeshev
    "Jung Yang" <[email protected]> wrote in message
    news:[email protected]...
    Well that is exactly what I am doing. The variable dbName is database
    connection pool name that I created in weblogic console. Again, it
    worked
    in WLS6 but after migration, it stopped working.
    Thanks.
    "Mitesh Patel" <[email protected]> wrote in message
    news:[email protected]...
    In my code I am supplying name of the connection pool already
    created
    in
    weblogic server. I am asking you to get connection from the pool
    using
    pool
    driver.
    In your case you are trying to create connection straight to
    database
    using pool
    driver.
    What I am asking is pass name of the connection pool instead of
    database
    name.
    Thanks,
    Mitesh
    Jung Yang wrote:
    What would be the difference between your code and mine? Mine
    simple
    appends dbName string value for connection pool name at the end of
    "jdbc:weblogic:pool:"? And why same exact code would work in WLS6and
    not
    work in WLS7?
    Thanks.
    "Mitesh Patel" <[email protected]> wrote in message
    news:[email protected]...
    conn = driver.connect("jdbc:weblogic:pool:" +
    dbName, null);Instead of doing this what if you use
    Connection conn =
    myDriver.connect("jdbc:weblogic:pool:myConnectionPool", null);
    Will you please try this and see if that helps?
    Mitesh
    Jung Yang wrote:
    Isn't that exactly what I posted for my code piece?
    Thanks.
    "Mitesh Patel" <[email protected]> wrote in message
    news:[email protected]...
    Try As described below:
    The following example demonstrates how to use a database
    connection
    pool
    from a servlet.
    Load the pool driver and cast it to java.sql.Driver. The
    full
    pathname
    of
    the driver is weblogic.jdbc.pool.Driver. For example:
    Driver myDriver = (Driver)
    Class.forName("weblogic.jdbc.pool.Driver").newInstance();
    Create a connection using the URL for the driver, plus
    (optionally)
    the
    name of the registered connection pool. The URL of the pool
    driver
    is
    jdbc:weblogic:pool.
    You can identify the pool in either of two ways:
    Specify the name of the connection pool in a
    java.util.Properties
    object
    using the key connectionPoolID. For example:
    Properties props = new
    Properties();props.put("connectionPoolID",
    "myConnectionPool");Connection conn =
    myDriver.connect("jdbc:weblogic:pool", props);
    Add the name of the pool to the end of the URL. In this case
    you
    do
    not
    need a Properties object unless you are setting a username
    and
    password
    for using a connection from the pool. For example:
    Connection conn =
    myDriver.connect("jdbc:weblogic:pool:myConnectionPool",
    null);
    Note that the Driver.connect() method is used in theseexamples
    instead of
    the DriverManger.getConnection() method. Although you may
    use
    DriverManger.getConnection() to obtain a databaseconnection,
    we
    recommend
    that you use Driver.connect() because this method is not
    synchronized
    and
    provides better performance.
    Note that the Connection returned by connect() is an
    instance
    of
    weblogic.jdbc.pool.Connection.
    Call the close() method on the Connection object when youfinish
    with
    your
    JDBC calls, so that the connection is properly returned to
    the
    pool. A
    good coding practice is to create the connection in a try
    block
    and
    then
    close the connection in a finally block, to make sure the
    connection
    is
    closed in all cases.
    conn.close();
    Mitesh
    Jung Yang wrote:
    I am using WLS7 with SP1.
    I just recently migrated from WLS6.0. When my code tries
    to
    grab a
    connection from the pool, it throws an exception
    java.sql.SQLException: Pool connect failed:
    weblogic.common.ResourceException: Access not allowed
    at
    weblogic.jdbc.pool.Driver.connect(Driver.java:202)
    Does anyone know if anything changed from 6.0 to 7?
    Here is a piece of the code that throws exception.
    Driver driver =
    (Driver)Class.forName("weblogic.jdbc.pool.Driver")
    .newInstance();
    conn =
    driver.connect("jdbc:weblogic:pool:"
    +
    dbName,
    null);
    >>>>>>>>>
    Thanks in advance.

  • Connecting to weblogic 6.0 from jbuilder 4

    How can I connect to weblogic 6.0 from jbuilder 4 enterprise ?

    You can edit your edited sequence into another sequence (so that your entire sequence is represented by a single clip) then apply to the clip the Timecode Reader effect. Then export the sequence to QuickTime and make a DVD in iDVD or DVD Studio Pro.

  • Best way to connect to Weblogic's 6.0

    I was wondering which way is "better/prefered" fo obtaining JDBC
    connection from code running on the same WL server as the connection pool.
    Method 1
    I recently purchased "J2EE applications and BEA Weblogic server" and it
    states that the prefered way is with:
    Context ctx = New InitialContext()
    javax.sql.DataSource ds = (DataSource) ctx.lookup(somePool);
    conn=ds.getConnection();
    However this seems to use the RMI JDBC classes, even when local (I am
    not setting a provider URL in the context properties)!
    Method 2
    The online docs say that this is the way to get a conection for code
    executing in the same server:
    Driver myDriver = (Driver)Class.forName("weblogic.....").newInstance();
    Connection conn = myDriver.connect("jdbc:weblogic:oracle:Demo"),null);
    And this seems to not use RMI.
    Which is right?
    The book or the on line docs? From my testing, method 2 seems faster
    (and to not be using RMI).
    Thanks!

    "Pat Doran" <[email protected]> wrote in message
    news:[email protected]...
    When I use the datasource method I always end up w/ the RMI JDBC classesinstead
    of the Oracle classes. These don't seem to handle blobs well (plus I wantuse
    some Oracle specific stuff). Are you saying the RMI classes will performequally
    well when both the code and pool are on the same VM?All you know about Connection object you get from DataSource
    is that it's compliant with java.sql.Connection.
    We also provide support for Oracle extensions. Blobs/Clobs
    are pretty stable in 6.1. Check with the documentation for
    how to work with Oracle extensions.
    If you need something from Oracle what we don't support,
    you have no choice but loading Oracle driver directly.
    Is there a way to get a non RMI connection when using the datasourcelookup
    method? Can I specify something in the JNDI lookup to tell the server Iwant a 2
    tier driver connection?There is no such a way. This is not standard.
    Should I not be geting the RMI JDBC classes and for some reason the serverdoes
    not recoginize that the app and pool are in the same VM?Frankly I did not understand that.
    Regards,
    Slava Imeshev
    >
    >
    Slava Imeshev wrote:
    Hi Pat,
    Using DataSources is more preferable because:
    o It's a standard approach;
    o It's more flexible;
    o For serverside apps using standard data access
    patterns it has the same performance as method 2.
    Regards,
    Slava Imeshev
    "Pat Doran" <[email protected]> wrote in message
    news:[email protected]...
    I was wondering which way is "better/prefered" fo obtaining JDBC
    connection from code running on the same WL server as the connection
    pool.
    >>>
    Method 1
    I recently purchased "J2EE applications and BEA Weblogic server" andit
    states that the prefered way is with:
    Context ctx = New InitialContext()
    javax.sql.DataSource ds = (DataSource) ctx.lookup(somePool);
    conn=ds.getConnection();
    However this seems to use the RMI JDBC classes, even when local (I am
    not setting a provider URL in the context properties)!
    Method 2
    The online docs say that this is the way to get a conection for code
    executing in the same server:
    Driver myDriver =(Driver)Class.forName("weblogic.....").newInstance();
    Connection conn = myDriver.connect("jdbc:weblogic:oracle:Demo"),null);
    And this seems to not use RMI.
    Which is right?
    The book or the on line docs? From my testing, method 2 seems faster
    (and to not be using RMI).
    Thanks!

  • How to connect to Teradata using Jdeveloper 11.1.1.6

    Friends,
    Can anybody help me how to connect to Terradata database using Jdeveloper 11.1.1.6
    Thanks in Advance

    Refer How to use the Teradata JDBC Driver with WebLogic 10.3
    Add the teradata JDBC driver JAR terajdbc4.jar to classpath of weblogic server. Refer Using Third-Party JDBC Drivers with WebLogic Server
    Use the driver class
    and
    connection url: jdbc:teradata://DatabaseServerName
    for teradata
    Teradata JDBC Driver User Guide Chapter 2

  • How to connect my friends apple notebook through video call

    HOW TO CONNECT TO A FRIEND WHO IS USING APPLE NOTEBOOK FROM MY IMAC SUGGEST ME WAITING FOR A SOLUTION FROM APPLE TEAM SUPPORT

    Hi,
    Typing in all upper case is regarded and shouting here.
    Presumably as you have posted in the OS X 10.7.x (Lion) area you are running this version of the OS on your iMac.
    This will have iChat 6 on it.
    This can use AIM, Jabber and Yahoo IDs within the app.
    Apple IDS ending in @mac.com and iCloud issued @me.com and @icloud.com are also Valid AIM Screen Names.
    If you use Googlemail and Enable "talk" in the products there you can then use your Google Mail ID as a Jabber ID (although it has it's own Add Account option in iChat)
    Facebook has an option to Enable "Chat" which will give you a Chat ID variant on your name there and this can be used in iChat (or Messages) as a Jabber ID.
    The Yahoo Account will only do Text chats.
    It also has to be an actual ID registered at Yahoo.
    Chats are then AIM to AIM or Jabber to Jabber or Yahoo to Yahoo.
    So your Buddy will also need a suitable ID or Screen Name  for the relevant service.
    8:16 pm      Sunday; January 19, 2014
      iMac 2.5Ghz 5i 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

Maybe you are looking for