How connect to DataSource in iAS

I have set up the Oracle thin client and create a Data Source in the iAS
server. Is it possible to access the DataSource from an application outside
iAS using JNDI? Thanks for anyone who can give some samples or pointers
related to this.
Regards,
Keith

Thanks for your reply, Anuj.
But after I updated the DB Adapter I received a set of new error report.
Exception occured when binding was invoked.
Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'queryByExample' failed due to: JCA Binding Component connection issue.
JCA Binding Component is unable to create an outbound JCA (CCI) connection.
*IMS2MRDBapp:FeiYeConn [ FeiYeConn_ptt::queryByExample(Mrdblite,MrdbliteCollection) ] : The JCA Binding Component was unable to establish an outbound JCA CCI connection due to the following issue: javax.resource.spi.IllegalStateException: [Connector:199176]Unable to execute allocateConnection(...) on ConnectionManager. A stale Connection Factory or Connection Handle may be used. The connection pool associated with it has already been destroyed. Try to re-lookup Connection Factory eis/DB/FeiYeConn from JNDI and get a new Connection Handle.*
*The invoked JCA adapter raised a resource exception.*
Then after I check the data source and find nothing wrong, I test the project again, it gives me another error report still about connection:
*Exception occured when binding was invoked.*
*Exception occured during invocation of JCA binding: "JCA Binding execute of Reference operation 'queryByExample' failed due to: Could not create/access the TopLink Session.*
This session is used to connect to the datastore.
Caused by java.lang.ClassCastException: oracle.tip.adapter.db.DBConnectionFactory.
*The invoked JCA adapter raised a resource exception.*
*Please examine the above error message carefully to determine a resolution.*
it's now again similar with the first time I posted.
Any idea what can I do now?

Similar Messages

  • How to use DataSource and External transaction in 9ias?

    I'm working on a project that the application server needs to connect to over 100 databases.
    I'd like to use connection pooling and external transaction service defined in OC4J's Datasources.
    I wonder if anyone has an example of using datasource and external transaction service for OC4J.
    Right now, I export toplink project to a java source and do the initialization there manually but I don't know how to use Datasource to get connections and how to use the external transaction service in the java code for OC4J.
    I really appreciate you help.
    Wei

    Here is a fill in the blank example on how you could set this up through code:
    Project project = new MyProject();
    // alternatively, use the XMLProjectReader
    server = project.createServerSession();
    server.getLogin().useExternalConnectionPooling();
    server.getLogin().setConnector(new JNDIConnector(new javax.naming.InitialContext(), "jdbc/DataSourceName"));
    // the next line depends on the type of driver you want to use.
    server.getLogin().useOracleThinJDBCDriver();
    server.getLogin().useOracle();
    server.getLogin().setUserName("username");
    server.getLogin().setPassword("password");
    server.getLogin().useExternalTransactionController();
    server.setExternalTransactionController(new Oracle9iJTSExternalTransactionController());
    server.logMessages();
    server.login();

  • How to access Datasource tag info (struts-config.xml)  in POJO

    Hello friends,
    I am doing a project in struts.I have stored the database connection information in data-source tag of struts-config.xml file.This is the code.
    <data-sources>
    <data-source>
    <set-property property="autoCommit" value="false"/>
    <set-property property="description" value="oracle Data Source"/>
    <set-property property="driverClass" value="oracle.jdbc.driver.OracleDriver"/>
    <set-property property="maxCount" value="10"/>
    <set-property property="minCount" value="2"/>
    <set-property property="user" value="system"/>
    <set-property property="password" value="manager"/>
    <set-property property="url"
    value="jdbc:oracle:thin:@localhost:1521:gd"/>
    </data-source>
    </data-sources>
    Now I want to access this data in POJO.I know how to use it in action class but unable to use it in POJO.To access it in action class , the code goes like this....
    ServletContext context=servlet.getServletContext();
    DataSource datasource=(DataSource)context.getAttribute(Action.DATA_SOURCE_KEY);
    Connection con=datasource.getConnection();
    Can anyone tell me what to do?.Any help will be highly appreciated.Thank you in advance.

    You will need to use the JSR 88 API to access deployment descriptor configuration.
    See the Programming Deployment for Oracle WebLogic Server documentation for more information.

  • How to Upgrade datasources from 3x to 7x versions

    Hi Experts
      How to Upgrade datasources from 3x to 7x versions.
      I am planning to upgrade exisisting 3x data sources which are used in data loading are there any risks involved in upgrade
    Thanks

    Hi,
    When you migrate a 3.x DataSource (R3TR ISFS) in an original system, the system generates a DataSource (R3TR RSDS) with a transport connection. The 3.x DataSource is deleted, along with the 3.x metadata object mapping (R3TR ISMP) and transfer structure (R3TR ISTS), which are dependent on it. If a PSA and InfoPackages (R3TR ISIP) already exist for the 3.x DataSource, they are transferred to the migrated DataSource, along with the requests that have already been loaded. After migration, only the specifications about how data is loaded into the PSA are used in the InfoPackage.
    You can export the 3.x objects, 3.x DataSource, mapping and transfer structure during the migration so that these objects can be restored. The collected and serialized objects are stored in a local table (RSDSEXPORT).
    You can now transport the migration into the target system.
    When you import the transport into the target system in the after-import, the system migrates the 3.x DataSource (R3TR ISFS) (as long as it is available in the target system) to a local DataSource (R3TR RSDS), without exporting the objects that are to be deleted. The 3.x DataSource, mapping (R3TR ISMP) and transfer structure (R3TR ISTS) objects are deleted and the related InfoPackages are migrated. The data in the DataSource (R3TR RSDS) is transferred to the PSA.
    Regards,
    Suman

  • How connect a 27 cinema display to HP Pavilion with VGA video output

    how connect a 27 cinema display to HP Pavilion with VGA video output

    If it is a thunderbolt version of the apple 27" display, you don't.  The TB displays can only work with a TB source.
    I also think you are out of luck with the mini-displayport versions of the apple 27" as well.   This would imply converting an analog VGA output  to a digital input of the 27".  I suspect that there is not enough data supplied by VGA for that to work and I do not believe any adapters exist for this.

  • BI 7.0: How to bring DataSource fields to InfoSource in design

    We've replicated the generic datasource from R3 to BW and we have created an InfoSource with blank fields.   We remember on BW 3.x version that we could bring Datasource fields to InfoSource by clicking somewhere, but on BI 7.0, we are trying to do the same thing, but can't find some function to do this.  Then we try to right click the InfoSource and then select 'Create Transformation', and then to select the source system and the datasource, but of course we would get the error msg like "There are no fields in target TRCS InfoSource_Technical_Name".  Any idea on how to bring Datasource fields into the blank InfoSource on BI 7.0?
    Thanks!

    Hi,
    Instead of bringing the DS fields into a blank infosource, ideally, what you can do
    is, you can create a new infosource based on your generic data source, which would make your process easy..
    cheers,
    Pattan.

  • How to find datasource for cube 0BCS_C11

    Now we plan to do BCS. We want to create a cube ZBCS_C11 to copy real-time cube 0BCS_C11, the question is how to find datasource? Is there any standard datasource? Pls info, thanks!

    hi,
    For reporting purposes, you can use the virtual InfoCube 0BCS_VC11 u2013 Consolidation (Company/Consolidation Profit Center). It shares the same structure as InfoCube 0BCS_C11.
    go through this link.
    http://help.sap.com/saphelp_nw70/helpdata/EN/05/fdce0e59a82b4da957ead6e8022233/frameset.htm
    regards
    vadlamudi

  • How connect iPhone to TV (Philips) via USB?

    How connect iPhone to TV (Philips) via USB, because TV does't recognize iPhone.

    http://support.apple.com/kb/ht4108
    http://support.apple.com/kb/HT1454

  • How connect External monitor to iMac?

    How connect External monitor to iMac?

    How to do that depends on the iMac variant you have. iMacs have been in continuous production since 1998 in four broad families that are not 100 percent alike in behavior.
    Please look at the iMac images and descriptions in the links on this site:
    http://www.everymac.com/systems/apple/imac/index-imac.html
    and tell us what variant you believe you have.
    iMacs from the first through third-generations (G3, G4, and G5 processors) that support an external monitor were not set up to do anything other than "mirroring"--you see on the external exactly what is on the built-in display.
    Your description sounds like you have a newer iMac than this forum covers because, starting with the Intel iMacs in 2006, external monitors were allowed to do both mirroring and "extended desktop." The latter is what I believe you are seeing.
    Try this first: press the F7 key. On many Macs capable fo using external monitors, this was a shortcut to toggle between mirrored and extended display. If your keyboard has an "fn" modifier key, you may need to press that to get the F7 key to work.
    If you have an intel-powered iMac I can ask the Hosts to move you to that forum, which is much more active than this one which is for pre-2006 iMacs.

  • How connecting my iPad to sharp printer MX 2700 N ?

    How connecting my iPad to sharp printer MX 2700 N ? With an appli apple ?
    Thanck a lot.
    ZINO44

    Hi,
    Firstly please check to see if your printer in the list:
    http://support.apple.com/kb/ht4356
    If YES, you can use this to fix/setup:
    iPad: http://www.apple.com/support/ipad/assistant/airprint/
    If NO you have to print using other apps (if applicable) such as
       http://itunes.apple.com/au/app/hp-eprint/id299531647?mt=8
    Regards.
    BH
    **Click the KUDOS thumb up on the left to say 'Thanks'**
    Make it easier for other people to find solutions by marking a Reply 'Accept as Solution' if it solves your problem.

  • How to change datasource name based on the partition in configplan

    Hi
    Can any one please give me some solutions regarding how to change datasource name based on the partition in
    configplan.
    can't we do this in configuration plan?

    If you want to change template based on parameter. you have to use below syntax
    v_layout boolean
    V_LAYOUT:= FND_SUBMIT.add_layout(template_appl_name => 'SQLAP' -- application short name
    ,template_code => 'HUBAPAPN' -- template name
    ,template_language => 'en'
    ,template_territory => '00'
    ,output_format => 'PDF');
    Above can be used in plsql stored procedure before submitting Concurrent Program (Bi Publisher report) or may be you can try to add this code in Oracle reports after report or before report trigger
    Thanks
    Kamalakar

  • How to enhace datasource 0CUSTOMER, 0MATERIAL AND 0VENDOR?

    how to enhace datasource 0CUSTOMER, 0MATERIAL AND 0VENDOR in general what are the steps required? it is on my resume and i have to answer it. please help

    Hi Les,
    in R/3 Tcode CMOD and create, if does not already exist a project, for example ZBW1 (is simply a definition). Then enter in Components of the project selecting the corresponding flag and then select EXIT_SAPLRSAP_002 Exit Function.
    Then double click on the word ZXRSAU... at the right of word INCLUDE.
    In the next screen you introduce your code.
    Hereunder an example for vendor:
    DATA: L_BIW_LFA1_S LIKE BIW_LFA1_S,
          l_tabix LIKE sy-tabix.
    CASE i_datasource. <i><b>(this is always necessary)</b></i>
    WHEN '0VENDOR_ATTR'.
       LOOP AT i_t_data INTO l_BIW_LFA1_S.
         l_tabix = sy-tabix.
         SELECT XEGLD FROM T005
                 INTO V_XEGLD
                  WHERE LAND1 = l_BIW_LFA1_S-LAND1.
           IF V_XEGLD = ' '.
              l_BIW_LFA1_S-ZZXEGLD = 'E'.
             ELSE.
              IF l_BIW_LFA1_S-LAND1 = 'IT'.
                 l_BIW_LFA1_S-ZZXEGLD = 'I'.
                ELSE.
                 l_BIW_LFA1_S-ZZXEGLD = 'C'.
              ENDIF.
           ENDIF.
         ENDSELECT.
         MODIFY i_t_data FROM l_BIW_LFA1_S INDEX l_tabix.
        ENDLOOP.
    ENDCASE.  <i><b>(this is always necessary)</b></i>
    Ciao.
    Riccardo.

  • How to - customize datasource by means of 'Function module'  via 'RSO2' ?

    Wilson, the topic of Function Module extractors is well documented in the forums - please search the forums before posting
    +__Hi,Expert:__+
    +__Could you please kindly advise me how to customize datasource by  'Function module',__+
    +__and which aspects I should pay more attention?__+
    +__Or provide me valuable documentation.__+
    +__Thanks very much !__+
    Edited by: Arun Varadarajan on Feb 11, 2009 9:58 AM

    Hi Wilson,
                  Check here..........
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/a0f46157-e1c4-2910-27aa-e3f4a9c8df33
    https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/84bf4d68-0601-0010-13b5-b062adbb3e33
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d3219af2-0c01-0010-71ac-dbb4356cf4bf
    Generic extractor based on function module RSAX_BIW_GET_DATA_SIMPLE
    Thanks,
    Vijay.

  • How to generate datasource for inforsource in BW 7

    Hi all:
         Could you please tell me how to generate datasource  for inforsource  in BW7, it seems that the way
    is different from other lower edition BW 3.x.   Should I  choose   Tranformation  ? and then how ?
    Thank you very much!
    Edited by: jingying Sony on May 9, 2009 8:41 AM

    1) First thing is that in BI 7.x the infosource is optional.You can directly create a transformation between datasource and data target (e.g. cube). If you still want to use a infosource then you will require 2 transformations. 1 will act as a transfer rule and other one will act as a update rule. This is a crude example showing the comparision between 3.x and 7.x.
    2) Infopackage in 7.x will load the data only till PSA. From PSA to data target you will need DTP. DTP will load data from PSA to data target. So you need to ensure you create a complete flow from datasource to data target and create infopackage & DTP.

  • How to create DataSource for FlatFile Source Systems

    Hi,
    I am practicing BI7.I am familiar with BW 3.5 but while practicing BI7 i am facing some problems.I am trying to load master data of an infoobject (STUDENTID) STUDENTID ATTR.
    After creating Appl Comp and when i am trying to create transformations for the master data attribute i am unable to assign data source.I came to know that i have to create datsource at this step.But dont know how to create datasource for FlatFiles.
    Can anyone give me stpes how to create DataSource.
    Thanks in advance,
    Sunny

    Hi
    Find below help link for procedure
    http://help.sap.com/saphelp_nw04s/helpdata/en/43/01ed2fe3811a77e10000000a422035/frameset.htm
    and below are some help links which will be usefull in BI7.0
    http://help.sap.com/saphelp_nw04s/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    Look at this new features in Bi 7.0
    http://help.sap.com/saphelp_nw04s/helpdata/en/a4/1be541f321c717e10000000a155106/content.htm
    how to's in BI 7.0
    http://help.sap.com/saphelp_nw04s/helpdata/en/e3/e60138fede083de10000009b38f8cf/frameset.htm
    Demo's
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/webcontent/uuid/ba95531a-0e01-0010-5e9b-891fc040a66c [original link is broken]
    Report designer new component
    Most of ur solutions u can get through help or SDN search
    Regards,
    Ravi

Maybe you are looking for

  • Multiple hierarchial structuring for Accounts that apply at the same time to a document

    Use Case: There are 2 ways of logically grouping entities for our UCM Accounts permission: For external Partner users (one  taxonomy applies)  @Corp/Partner1, @Corp/Partner1(Region 1)   are valid accounts that can be assigned to users so that they ge

  • I need help transferring my number to AT&T

    My husband and I have been Verizon customers for almost 6 years. Since I use my phone very little, it just made sense to have me in the "pay as you go" plan once my contract expired. I kept the same phone for years, but since the phone was starting t

  • Terminal command to turn on/off iCloud syncing?

    I'm a musician using my MacBook Pro on gigs and lately I've been experiencing some glitching in my audio that I believe is related to sync services or other processes that Mavericks uses to communicate with iCloud.  Googling, I saw references to an i

  • Downloading Acrobat Reader X

    I wish to download Acrobat Reader X so that I can install it on a PC NOT connected to the internet How do I do this?

  • Is part of iTunes store down? Purchased music not loading

    Been trying off and on for a couple of hours to download music off iCloud.  When I click on 'purchased' in iTunes I get the loading spinner but it never finishes. Anyone else? The store itself seems to be okay.  Just not this feature.