Using dynamic DataSources with WL 6.1

Hi All,
Here is an example of how to create, use and delete
JDBC DataSources dynamically using JMX and WL 6.1.
Regards,
Slava Imeshev
[DynamicDataSource.java]

Hi Srinivas,
"Srinivas Chennamaraja" <[email protected]> wrote in message news:[email protected]..
Hi Slava!
If I just have Weblogic 6.1 (as an Admin Server), Would I be able to create
Dynamic DataSources?. The documentation says that you can't create aYes, you'll be able to create a datasource.
dynamic Datasource in Weblogic. what is JMX?. I would appreciate if youThis is a brand-new feature.
describe in detail?.Look here for JMX http://java.sun.com/products/JavaManagement/
>
can I create a any type of Datasources dynamically (like TXDatasources...).Yes, you can. Look at our doc site for details.
http://e-docs.bea.com/wls/docs61/javadocs/weblogic/management/configuration/JDBCTxDataSourceMBean.html
>
thanks,
Srini
"Slava Imeshev" <[email protected]> wrote in message
news:3b783560$[email protected]..
Hi All,
Here is an example of how to create, use and delete
JDBC DataSources dynamically using JMX and WL 6.1.
Regards,
Slava Imeshev
[att1.html]

Similar Messages

  • Using Dynamic Visibility with Accordian Menu

    Hiya.  I am trying to use dynamic visibility with an accordian menu.  My menu categories are years, 2005 - 2010. My categories items are key performance indicators such as abandon percentage,  first call resolution, customer satisfaction percentage, call volume and average speed of answer. 
    Of my 6 KPIs, 4 display as percentages and 2 display as whole numbers.  When the percentage graphs are displayed the axis labels needs to be percentages.   When the whole number graphs are displayed the axis label needs to show whole numbers.
    I thought to achieve this I should use dynamic visibility with two different line charts where one line chart shows percentages and the other line chart shows whole numbers.   However I am strugging trying to make that happen.
    Is my concept correct, or is there an easier way to accomplish this?  If my concept is correct,can someone give me some advice on how to make dynamic visibility display the correct chart depending on which KPI I select from my accordian menu?
    Thanks!

    Hi
    You can achieveby doing following steps..
    Insert your categories into D3 and label bind to E3.
    take two charts and bind to the destination data of Accordion menu
    then write a formula in F3 like this =IF(OR(E3="abandon percentage",E3="customer satisfaction percentage"),1,0)
    and bind your two charts to the F3 and set DV for % charts as 1 and # charts as 0.
    I hope this will helps you
    Thanks,
    Srinivas Dandamudi.

  • How to use runtime datasource with crystal to generate reports

    Hi,
    I am new to BO Crystal reporting area. In my appliaction I am trying to use runtime data source. My objective is to use a 'List of Java ValueObject(class holding private attributes with public getter setter)s' as report database. I am using version BO XI 3.0.
    As per development guide I have to perform the following steps to use runtime datasource
    1. Put your manipulated data in a RowSet form that can be processed.
    2. Create and fill an com.crystaldecisions.sdk.occa.report.data.IDataset object with the rowset data.
    3. Add or set the data source with either the addDataSource or setDataSource methods of DatabaseController class.
    API doesn't allow me to set/add "Record"/ "RecordBatch" to RowSet. Please help.
    Please note: I have already tried and understand the usage of following types of data sources
    1. All types of db conductivities as provided by Crystal designer "Database Expert"
    2. Also I have successfully tried & tested transforming "List of Java VOs" into XML, TXT, CSV file format and use them as data source for crystal.

    Frank Bareuther wrote:
    The DBMS is the same, we are only using a different database user to log on.
    There is a separate db user for each server.
    The EAR with a given datasource name in the entity EJBs should be deployed
    on all 4 servers without changing descriptors.Interesting. And what is the value of using a different schema/user in the
    different servers? I do believe that this configuration issue can be
    achieved but I have not done it myself. I believe there is a way to
    have some portions of a managed server's configuration by in a per-server
    config file. That would be where you would define the pool. The DataSource
    could also be there (with the same name for every server), or it could
    be in the common one in the admin server.
    I would file a support case to get this documented to show you how to
    do what you want.
    Joe

  • Using dynamic ViewLinks with JDeveloper 10g

    Hello.
    I'm displaing a list of data from tab1 with a sublist of data from tab2, which has a n:m cardinality relationship.
    Attributes:
    k1 - primary key of tab1
    k2 - primary key of tab2
    fk1 - foreign key of tab1 in rel
    fk2 - foreign key of tab2 in rel
    Before data iteration I create dynamic link using createViewLinkBetweenViewObjects(...) method of my ApplicationModule. I use assocClause parameter to define the way of the data association, e.g.:
    select <attrs> from tab2 where k2 in (select fk2 from rel where fk1=:1)Parameter :1 is replaced with k1 from tab1.
    This works fine, but whern I use parameter :1 more times in query, the JBO-27122 (SQL error during statement preparation. Statement: ...) is reported. I have used it with JDeveloper 9i and it worked properly.
    Thanks for any help

    Did you read my reply here:
    Jdeveloper with PVCS

  • Problems using Dynamic parameters with Crystal Reports and SBO 8.8

    Has anyone been able to successfully use a dynamic parameter in Crystal Reports with 8.8 using the Business One connector? When we try we get an additional logon to the database that pops up and the logon fails.
    We need this because we want to return live lists of PO documents from the server for selection. We are also trying to use nested dynamic parameters, because we want to first return the PO document based on the PO number, and then chose specific rows based on a field value in POR1.
    It works if we don't use the Business One connector, but then the report doesn't function properly inside of SAP.
    Any ideas would be appreciated.

    I have tried using tokens but they are too simple. I need something like a subselect where you first select one value and then another that is a subset of those values. Apparently the tokens can't even use a "where" clause.
    SAP dances around Dynamic parameters, but won't come out and say that they can't be used with the B1 connector. If that is the case then they should just say so and stop wasting our time. Apparently Crystal is not truely interfaced with B1, just sort of hanging out with it.
    I don't really care other than I have to do this select, subselect. If someone has a way to do that with tokens I would love to hear it.
    Thanks,
    Roy

  • Crashing while using dynamic linking with aftereffects

    I've been using premier for a while now but i believe i've fond a huge flaw in the dynamic link system. I own a multi-million dollar corporation that specializes in researching the answer for X divided by Zero and this bug is setting us back thousands everyday.
    The problem is when you import a Premier project into aftereffects and then import the same comp back into premier, the result is 8GB of ram wasted in a few seconds with both applications crashing. As you may have guess from our R&D type this sort of multiplication is unaceptable. Please fix.
    Regards, Tom Tomson @ Banana Systems Ltd.

    u mad bro?

  • Trying to use Dynamic Action with button - no #BUTTON_ID#

    I saw this post: Issue with apex  dynamic action
    and I'm having exactly the same issue. I'm using the Blue and Tan Theme and the button's "normal template" looks like the following:
    <table class="t2Button" cellspacing="0" cellpadding="0" border="0"  summary="">
    <tr>
    <td class="t2L"><a href="#LINK#"><img src="#IMAGE_PREFIX#themes/theme_2/button_left.gif" alt="" /></a></td>
    <td class="t2C"><a href="#LINK#">#LABEL#</a></td>
    <td class="t2R"><a href="#LINK#"><img src="#IMAGE_PREFIX#themes/theme_2/button_right.gif" alt="" /></a></td>
    </tr>
    </table>Can someone help me get the #BUTTON_ID# tag in the correct spot?
    (PS. This application was originally built using APEX 3.2 and upgraded to 4.1. Don't know if that matters or not.)

    The button calls a procedure which can take several minutes to complete. It calculates and stores values for display. I'd like to open up a modal window so that the user has more concrete feedback that the calculation process is underway. I'd also like to tie it to the refresh of a particular region on the page that shows a list of the stored calculations.

  • Using dynamic captions with checkboxes

    Hello.
    I want to create a list of checkboxes, according to a table I get from the context, meaning there would be as much checkboxes as the lines in the table, and their caption would be one of the table's fields.
    I turned on Show Dynamic Properties.
    First I tried it with one checkbox, with it's caption related directly to the table's field, and it worked - but with only one checkbox displaying the first line's value, of course.
    Next I put the checkbox in a subform. The subform is related to the table line, and is repeated for every row, and now the caption is only bound to the field's name, relatively.
    So the subform is repeated, but the caption doesn't change at all.
    How can it be done?
    And can I set the checkbox's caption by code? I tried, but it didn't work.
    Best regards,
    Udi.

    Hi,
    try using table control (supported in ALC 8.0) and add the checkboxe in the row.
    You can then map your data node (structure) with the table.
    Ashutosh

  • Using dynamic elements with FMS/FMSS/FMIS...can I do this?

    Hello all,
    Here's an elaboration on the general title of this post:
    On one page of my website, the user has a large selection of videos they can choose from.
    They select one, clicking the link
    This opens a new page (with the player built in?) and plays the video.
    NOW...
    Can I retrieve the data from a query string (the video filename selected from the previous page) and then place it in the action script using PHP (echo) so that I don't have to have separate applications for each video? or do I have to have separate SWF/applications for wach video?
    I'm still way new to this so I apologise if the question isn't clear enough. I'll gladly elaborate where I can.
    Many thanks!!!
    Sincerely,
    wordman

    SE,
    This looks great!!! Let me ask you this: Is there any problem saving my page with the player as .php as opposed to .html? I have a number of dynamic aspects to my web pages that I want to maintain.
    You really are an asset to this forum. thank you and all of the great contributors here so very much!
    Sincerely,
    wordman

  • Huge query  with  parameter for to use Dynamic Cursor with Parameters

    Hi
    Is possible put the query below like dynmic cursor passing Parameters ?
    How can I do it ?
        OPEN P_CURSOR FOR
        WITH NOTIFICACAO AS(
          SELECT 
           t1.cd_consultora,
           t1.dc_nome_consultora,
           t2.nm_notificacao_cn,
           t2.dt_notificacao_cn dt_notificacao,
           t2.dt_atendimento_notificado,
           t1.cd_tipo_estrutura_comercial,
           t1.cd_estrutura_comercial
            FROM t_consultora t1, nc.t_nc_notificacao_cn t2
           WHERE t2.dt_notificacao_cn BETWEEN w_DTA_INI AND w_DTA_FIM
             AND t2.cd_consultora = t1.cd_consultora
             AND t1.cd_setor = w_cd_setor
             AND t1.cd_tipo_estrutura_comercial = p_tp_estrutura_comercial
             AND t1.cd_estrutura_comercial = p_cd_estrutura_comercial),
        T_NOTIFICADA AS ( select Count(t1.nm_notificacao_cn) over (partition by  t1.cd_consultora,t1.nm_notificacao_cn ) QTD_NOTAS,
                                 Count(t2.nm_item_notificacao_cn) over (partition by  t1.cd_consultora,t1.nm_notificacao_cn ) QTD_ITENS,
                                 T3.*
                                  from nc.t_nc_notificacao_cn t1,
                                       nc.t_nc_item_notificacao_cn  T2,
                                       NOTIFICACAO                  T3 
                                   where       t1.dt_notificacao_cn >= to_date('01/09/2006','dd/mm/yyyy')
                                    and   t3.nm_notificacao_cn = t1.nm_notificacao_cn
                                   and    t1.nm_notificacao_cn = t2.nm_notificacao_cn
                                   and    ((t2.cd_tipo_item_nc = 4 and t2.cd_subtipo_item_nc = 6)
                                           or t2.cd_tipo_item_nc = 2 or t2.cd_tipo_item_nc = 3)
                                           and t3.cd_consultora = t1.cd_consultora (+)  )  ,
        T_BLOQUEADA AS ( SELECT T4.* FROM
                     (SELECT  T3.*,
                            CASE WHEN T3.BLOQUEADA = -1 THEN  'Bloqueada'
                                 WHEN  T3.BLOQUEADA = 0 THEN
                              (CASE WHEN T3.QTD_NOTAS > 2 THEN
                                 CASE WHEN T3.QTD_ITENS > 8 THEN 'Atencao / Analise'
                                 ELSE
                                    'Normal'
                                 END
                               ELSE
                                 'Atencao / Analise'   
                              END)
                             END OBSERVACAO
                      FROM  (SELECT CASE WHEN NVL(T2.ID_CN_BLOQUEADA,1) = 1 then -1
                                   WHEN NVL(T2.ID_CN_BLOQUEADA,1) = 0  THEN 0
                                   END BLOQUEADA, T1.*
                        FROM   T_NOTIFICADA T1,
                               T_PS_CONSULTORA T2 
                               WHERE T1.CD_CONSULTORA = T2.CD_PESSOA)T3) T4 )
            select *
              from (SELECT t1.*, ROWNUM r_linha
               FROM (SELECT  cd_consultora,
                       dc_nome_consultora,
                       fnc_busca_telefone(CD_CONSULTORA, 1) TELEFONE1,
                       fnc_busca_telefone(CD_CONSULTORA, 2) TELEFONE2,
                        EMAIL,
                        observacao,
                       nm_notificacao_cn,
                       nvl(vl_total_final,0) vl_total_final,                  
                       dt_notificacao,
                       qt_produto_item_nc,
                      sg_notificacao,
                      ID_SITUACAO,
                       qtd_registros
                    FROM (SELECT /*+ INDEX(W5 I0_NC_TIPO_ITEM_NC) */
                       W1.cd_consultora,
                       W1.dc_nome_consultora,
                       fnc_busca_telefone(w1.CD_CONSULTORA, 1) TELEFONE1,
                       fnc_busca_telefone(w1.CD_CONSULTORA, 2) TELEFONE2,
                       fnc_busca_email(w1.CD_CONSULTORA) EMAIL,
                       W1.OBSERVACAO observacao,
                       W1.nm_notificacao_cn,
                       sum(W4.qt_produto_nf *
                           W4.vl_unitario_final_produto_nf) OVER(PARTITION BY W1.cd_consultora, W1.nm_notificacao_cn) vl_total_final,
                       W1.dt_notificacao,
                       sum(W4.qt_produto_nf) OVER(PARTITION BY W1.cd_consultora, W1.nm_notificacao_cn) qt_produto_item_nc,
                       'PENDENTE' sg_notificacao,
                       W5.dc_tipo_item_nc ID_SITUACAO,
                       W_qtd_registros qtd_registros
                        FROM T_BLOQUEADA               W1,
                             nc.t_nc_item_notificacao_cn W2,
                             nc.t_nc_produto_item_nc     W3,
                             nc.t_nc_produto_item_nf     W4,
                             nc.t_nc_tipo_item_nc        W5
                       WHERE W1.dt_atendimento_notificado is null
                         and W1.nm_notificacao_cn =
                             W2.nm_notificacao_cn
                         and W2.cd_tipo_item_nc = W5.cd_tipo_item_nc
                         and W2.nm_notificacao_cn =
                             W3.nm_notificacao_cn(+)
                         and W2.nm_item_notificacao_cn =
                             W3.nm_item_notificacao_cn(+)
                         and W3.nm_notificacao_cn =
                             W4.nm_notificacao_cn(+)
                         and W3.nm_item_notificacao_cn =
                             W4.nm_item_notificacao_cn(+)
                         and W3.nm_sequencia_produto_item_nc =
                             W4.nm_sequencia_produto_item_nc(+)
                         and W2.cd_tipo_item_nc not in (6, 7)
                         and ((W2.id_situacao_item_nc = 1) OR
                             (W2.id_situacao_item_nc = 3 OR
                             W2.id_solucao_definida is not null))
                      UNION
                      SELECT /*+ INDEX(W5 I0_NC_TIPO_ITEM_NC) */
                       W1.cd_consultora,
                       W1.dc_nome_consultora,
                       fnc_busca_telefone(w1.CD_CONSULTORA, 1) TELEFONE1,
                       fnc_busca_telefone(w1.CD_CONSULTORA, 2) TELEFONE2,
                       fnc_busca_email(w1.CD_CONSULTORA) EMAIL,
                       W1.OBSERVACAO observacao,
                       W1.nm_notificacao_cn,
                       sum(W4.qt_produto_nf *
                           W4.vl_unitario_final_produto_nf) OVER(PARTITION BY W1.cd_consultora, W1.nm_notificacao_cn) vl_total_final,
                       W1.dt_notificacao,
                       sum(W4.qt_produto_nf) OVER(PARTITION BY W1.cd_consultora, W1.nm_notificacao_cn) qt_produto_item_nc,
                       'ATENDIDO' sg_notificacao,
                       W5.dc_tipo_item_nc ID_SITUACAO,
                       W_qtd_registros qtd_registros
                        FROM T_BLOQUEADA                W1,
                             nc.t_nc_item_notificacao_cn W2,
                             nc.t_nc_produto_item_nc     W3,
                             nc.t_nc_produto_item_nf     W4,
                             nc.t_nc_tipo_item_nc        W5
                       WHERE W1.dt_atendimento_notificado is not null
                         and W1.nm_notificacao_cn =
                             W2.nm_notificacao_cn
                         and W2.cd_tipo_item_nc = W5.cd_tipo_item_nc
                         and W2.nm_notificacao_cn =
                             W3.nm_notificacao_cn(+)
                         and W2.nm_item_notificacao_cn =
                             W3.nm_item_notificacao_cn(+)
                         and W3.nm_notificacao_cn =
                             W4.nm_notificacao_cn(+)
                         and W3.nm_item_notificacao_cn =
                             W4.nm_item_notificacao_cn(+)
                         and W3.nm_sequencia_produto_item_nc =
                             W4.nm_sequencia_produto_item_nc(+)
                             )T2
    ---- here with NDS   I changed order by
                       ORDER BY DECODE(p_nm_asc_desc,0,DECODE(p_nm_col_ordem ,1, cd_consultora,2,dc_nome_consultora)) ASC, --,8,vl_total_final)) ASC,
                       DECODE(p_nm_asc_desc,1,DECODE(p_nm_col_ordem ,1, cd_consultora,2,dc_nome_consultora)) desc --,8,vl_total_final)) DESC
                             ) T1
               where rownum <= W_TO_REC)
             where r_linha >= W_FROM_REC;Is It Query very much great and how can I to pass parameters w_DTA_INI ,w_DTA_FIM, W_TO_REC,W_FROM_REc ....etc
    TIA

    I did (some time ago and it was a packaged procedure) something like
    Procedure p(p_one in datatype,p_two in datatype,p_dataset out sys_refcursor) is
      the_sql varchar2(32000);
      the_cursor sys_refcursor;
    begin
      the_sql = 'WITH NOTIFICACAO AS( ' ||
                '      SELECT ' ||
                '       t1.cd_consultora, ' ||
                '                               where       t1.dt_notificacao_cn >= to_date(''01/09/2006'',''dd/mm/yyyy'') ' ||  -- note the ''
                '           where rownum <= :W_TO_REC) ' ||   -- parameter 1
                '         where r_linha >= :W_FROM_REC ';     -- parameter 2
      open the_cursor for the_sql using p_one,p_two;  -- just by the book
    end p;if I remember correctly
    Regards
    Etbin

  • Help using dynamic XML with Tree Menu

    Can some one please help me? I don't know what I'm doing
    wrong. I'd simply like to be able to load an XML file of data and
    use this data to populate a Flex tree component.
    The XML file needs to reside on the server and will change
    from time to time, so I am loading it via an HTTPService call. The
    part that I can't get to work is the way the
    XML is displayed in the Tree component. It ends up blank or
    sometimes I just get the result of "[object Object]". I know my
    syntax must be screwed up somewhere, but because
    AS3 and Flex are new territory for me, I can't get it to
    work. I am feeling my IQ drop on a minute to minute basis. Please
    help me if you can! Thanks!
    In this example, I am expecting a list of the different
    groceries/categories to show up in the tree menu. Instead, I get
    nothing.
    HERE IS THE XML FILE, CALLED "groceries.xml":
    <catalog>
    <category name="Meat">
    <product name="Buffalo" cost="4" isOrganic="No"
    isLowFat="Yes"/>
    <product name="T Bone Steak" cost="6" isOrganic="No"
    isLowFat="No"/>
    <product name="Whole Chicken" cost="1.5" isOrganic="Yes"
    isLowFat="No"/>
    </category>
    <category name="Vegetables">
    <product name="Broccoli" cost="2.16" isOrganic="Yes"
    isLowFat="Yes"/>
    <product name="Vine Ripened Tomatoes" cost="1.69"
    isOrganic="No" isLowFat="Yes"/>
    <product name="Yellow Peppers" cost="1.25"
    isOrganic="Yes" isLowFat="Yes"/>
    </category>
    <category name="Fruit">
    <product name="Bananas" cost="0.95" isOrganic="Yes"
    isLowFat="Yes"/>
    <product name="Grapes" cost="1.34" isOrganic="No"
    isLowFat="Yes" />
    <product name="Strawberries" cost="2.5" isOrganic="Yes"
    isLowFat="Yes"/>
    </category>
    </catalog>
    HERE IS THE MXML FLEX FILE THAT ISN'T WORKING AS I'D LIKE IT
    TO:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" initialize="initializeHandler(event)" width="240"
    height="340">
    <mx:Script>
    <![CDATA[
    import mx.collections.XMLListCollection;
    import mx.collections.ICollectionView;
    import mx.controls.List;
    private function initializeHandler(event:Event):void {
    textService.send();
    private function resultHandler(event:Event):void {
    myTree.dataProvider = textService.lastResult.catalog;
    ]]>
    </mx:Script>
    <mx:HTTPService id="textService" url="groceries.xml"
    result="resultHandler(event)" />
    <mx:Tree id="myTree" labelField="@name" showRoot="false"
    x="20" y="20" width="200" height="300" />
    </mx:Application>
    Any help is deeply appreciated.

    You must specify a resultformat of e4x. The default
    resultFormat is object. Object only works when you have a very
    simple xml structure that can be consistently represented as a set
    of objects.

  • JPA using dynamic database connection

    Hello everybody.
    My current project requires JPA to use dynamic datasource connection. And I need to register the database connection implementation in JNDI. For the dynamic part, the idea is that if user A logs in, JPA should use A's id and pw to create a datasource connection. When user B logs in, JPA should use B's credentials to create a datasource connection instead. I poked around a bit in the forum and found out that DataNucleus supports Dynamic datasource for JPA.
    But, could any one tell me if JPA supports dynamic datasource connection out of the box? If it does, could you point me to some samples.
    Thanks!

    Hello,
    I am using an implementation of OpenJPA.
    I can now overwrite the database user id/password defined in a data source with Persistence.createEntityManagerFactory(name, props). However, the props (java.util.Map) needs openjpa.ConnectionUserName and openjpa.ConnectionPassword key/value pairs.
    My issue now is that the user authentication will be through LDAP, so I won't be able to know the password of any user ( therefore no value for openjpa.ConnectionPassword). I am wondering if there is any way that JPA can use LDAP for the data source authentication. I guess Datanucleus framework could probably do that, but is there any way other than using Datanucleus?
    Thank you.

  • How to use dynamic column fields in formulas

    Hi,
    we changed from CR 8.5 to CR XI R2.
    Many of our reports use dynamic queries with different count of columns.
    These reports are designed for the maximum count of columns.
    This works fine with CR 8.5 but with CR XI R2 it seems to be that if one of these columns is missing i get an error in all formulas using this missing columns.
    How can i use or check this columns in formulas?
    regards
    Michael

    Could it be because of null values?  Try File -> Report Options and then check the box next to convert null values to default values and see it that helps or you can go into the formulae and choose Default Values for Nulls.  Either of these options should plug a zero if the values happen to be nulls.

  • Dynamic WEP with Win2k3 Radius server

    Can someone provide information as how to configure AP350 and AP1200 to use dynamic WEP with Win2k3 Radius server.
    What security feature should be configured
    If possible provide information for configuration of Win2k3 Radius server.

    PEAP CHAPS,128-BIT or WPA

  • Accessing a DataSource with a userid, password.

    I am getting an SQL Exception with trying to create a database connection using a datasource with userid and password, I can log in to the database manually with the credentials but when I try to access via the datasource this is the error returned.
    java.sql.SQLException: java.sql.SQLException: User: doug, failed to be authenticated.
    <code>
    //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    // start getConnection
    //-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
    * Creates a new connection to the database
    * @return the connection object
    public Connection getConnection() throws Exception{
    Context context = new InitialContext();
    DataSource dataSource = (DataSource) context.lookup("JDBC-GSFP_ResourceTracker");
    return(dataSource.getConnection("doug","root"));
    } // end getConnection
    </code>
    Any Ideas,

    Hi
    When you created DataSource in Weblogic Admin Console, at one point, you will give all the db details like DB Host, port, sid and username/password. You can TEST the connection also right there. If it says success, thats it.
    Now, on the java side, you do Initial context and do JNDI Lookup for that DataSource and directly get the DataSource. There is no need to pass again username/password from Java Side. Just use dataSource.getConnection() without any arguments.
    public Connection getConnection() throws Exception{
    Context context = new InitialContext();
    DataSource dataSource = (DataSource) context.lookup("JDBC-GSFP_ResourceTracker");
    return(dataSource.getConnection());
    } // end getConnection
    Thanks
    Ravi Jegga

Maybe you are looking for

  • URGENT Printing a BI publisher report from a column link in APEX

    I am developing an APEX report with a column link that will call a BI publisher report, the case is the link column in the APEX report will pass the item number to the BI publisher query. At the moment this is what I am doing: 1- Create a hidden item

  • Audio and video compressors

    how do i set the for my Live! Cam Chat Web Camera?

  • ACE 4710 Sticky analyzes

    Hello, I have running an ACE4710 with round 10 differnet Services what al  needs stickyness because of the Apllication what is balanced. There are also different Sticky settings setup. Now in the last days I see the Sitcky Table much more growing tha

  • 400 (or maybe 500) Mhz Titanium won't start.

    I've adopted an old friend's Ti (of unknown configuration/OS) to see if I can get it to run. (He said he hasn't used it for over a year...but the last time he did use it, it started without a problem.) I've read all (most) of the discussions about no

  • How to pass data from one internal session to another

    Hi SAP Experts, How to pass data from one internal session to another and from One external session to another external session. I used import and export parmeter and SPA/GPA parameters. What is the other way to pass data? Please tel me urgently Than