Custom Adaptor for JDBC Communication Channel

Hi Guys,
My apologies if this has been asked before, but I did a few searches and could not find anything.
I'm trying to write an adaptor that will use/ access the information passed into a JDBC Receiver communication channel prior to the normal adaptor being called.
Iu2019ve written a module that gets as much information from the ModuleContext and the ModuleData as possible, but I canu2019t find where the information on the database connection is being passed.
Is there any way of accessing the Database Connection information in a custom adaptor module?
Kind regards,
John

Hi 'PI Expert'
Thanks for your reply. I'm not sure we can use that as we're running PI7.0, but just in case:
I can't find too much information suggesting that it's possible to call the Directory API from within an adaptor module allowing the information to be read, and hopefully modified, when the communication channel is used.
Is it possible to call the Directory API from within a custom adaptor module?
Kind regards,
John

Similar Messages

  • Error in Sender JDBC communication channel

    Dear All,
    We have an interface in which we are fetching data from SQL database through sender JDBC communication channel.
    Last week SQL server was upgraded from 2000 to 2008 and the communication channel has stopped working and is giving the following error:
    Database-level error reported by JDBC driver while executing statement 'SELECT * FROM mstemp_tbl WHERE Active='0''. The JDBC driver returned the following error message: 'java.sql.SQLException: [Microsoft][SQLServer 2000 Driver for JDBC][SQLServer]The incoming tabular data stream (TDS) remote procedure call (RPC) protocol stream is incorrect. Parameter 1 (""): Data type 0x38 is unknown.'. For details, contact your database server vendor.
    Please let me know if any JDBC drivers are to be installed for SQL 2008 or how can we resolve this.
    Thanks,
    NJ

    Hi,
    You may need to update your JDBC driver to 1.2 or 2.0. Kindly see supportability matrix on this link (question #2):
    http://msdn.microsoft.com/en-us/sqlserver/cc325721
    Regards,
    Jenny

  • Error at sender JDBC communication channel

    Dear All,
    While executing JDBC(MS-Access)-PI-RFC interface, we are getting error in sender JDBC communication channel. The error is as following:
    Error during database connection to the database URL 'jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=
    sappidev\Datatran\Database.mdb' using the JDBC driver 'jdbc.odbc.JdbcOdbcDriver': 'com.sap.aii.adapter.jdbc.sql.DriverManagerException: Can not establish connection:: SQLException: [Microsoft][ODBC Driver Manager] Data source name not found and no default driver specified'.
    I have checked various posts on forums and as per those no drivers installation is required to access MS-Access database and I am not able to find any post which could solve my problem.
    Kindly guide me on what might be the problem and how this can be resolved.
    Regards,
    NJ

    Hi Nishu,
      That error ALWAYS means your DSN name is incorrect or can't be accessed for some reason (permission). The ODBC part says that the bridge is working.
      But that DSN is 100% wrong or cannot be seen by the user account that the server is running as. Make sure you have a system DSN and not a user one.
    You can refer these....
    http://bytes.com/topic/java/answers/625400-java-sql-sqlexception-microsoft-odbc-driver-manager-data-source-name-not-found
    http://www.daniweb.com/forums/thread13092.html#
    Hope this will help you....
    Regds,
    Pinangshuk.

  • Regarding the JDBC Communication Channel error

    Hi all,
    We installed one non-central adapter engine for our xi server. But when configuring jdbc channels with this non-central adapter engine, the jdbc channel not picking data from tables, instead it is always showing message "Processing Started". All the channels configured with central adapter engine are working fine. Basis person is working on this problem for 10 days, he didn't find any solution. Pls help us.
    Note:-when we start the channel configured with non-central adapte engine, the channel is automatically getting lock in visual admin. Even though we will release the lock manually, after starting once again it is getting locked again.
    thanks,
    madhusudhan.

    hi,
    Is your decentral adapter engine working fine for other communication channels.There might be some problem in your decentral adapter engine installation.
    You can refer to my blog on this.
    Basic Steps In Decentralized Adapter Engine
    regards,
    ujjwal kumar

  • Sender RFC and JDBC communication channels required to be activated

    Hello Guys,
    Whenever we have a Oracle restart after the server is shut down for maintainence . The sender JDBC communication channel does not poll and we have to activate the channel again in the Integration Directory to make it work, is there any way to make it work automatically.
    Similar is tha case with the sender RFC communication channel.
    Allthough the component monitoring shows green button for the JDBC, RFC communication channel.
    In case of the JMS channel (sender) the channels are in red.
    Thanks for your help.

    HI
    There is no automatic ways to restart channel that you have to manually start.
    You need to stop the channels first before getting oracle server down for maintenance. This will save from errors. Maximum what you can do is to start stop channel using a program externally but that require development.
    Start/Stop using RWB
    Starting / Stopping of Communication Channel from RWB
    Start/Stop without using RWB
    Control Communication Channels Externally without using RWB
    Thanks
    Gaurav

  • XI: Sender JDBC Communication Channel is not getting picked the records

    Hi All,
    Here I 'm facing an Issue with my sender JDBC communication Channel. Previously it was working fine but It is not Picking the records from the JDBC table.
    Communication Channel is in active mode only.
    I have checked in RWB communication Channel monitoring there i didn't get any error or success messages but channel is showing healthy status only(Green)
      But i had created the new communication channel..with the same parameters which are in the older communication channel.. and sender agreement level also i had changed.. so now  new channel is working fine.... I didn't understand what is the problem with previous communication channel.
    Thanks

    Hi yadav,
    do you have TWO CCs polling at the same time via JDBC?
    This could be the problem --> a conflict between both CCs.
    Switch off ONE CC:
    Regards Mario

  • Query in JDBC Communication channel

    Hi,
    I want to pass the database connection details dynamically to the JDBC communication channel during runtime from file. How is this possible?
    What is the purpose of 'Java Library' in Processing Sequence?
    Regards,
    Venkatesh

    Hi,
    >database connection details dynamically to the JDBC communication channel
    To my Knowledge  it is not  possible as of now.
    Regards
    Agasthuri Doss

  • No adapter registered for this channel FOR JDBC COMM CHANNEL

    Hi Friends,
    We installed JDBC driver(for Oracle) and it works correctly from Visual Administrator.
    We have created comm channel 'jdbc_receiver'.
    However, when we check in "Adapter Monitoring", it is not active (Green color) and short text says 'No adapter registered for this channel'. Where should we look further to resolve the issue ? How do we test this comm channel from XI box ?
    Thanks.
    Niranjan

    Hi Niranjan,
    How you solved the problem?
    I have deployed JDBC driver (sqljdbc4.jar) according tohttp://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/00b4a020-4ae6-2c10-5a95-fed4ad9a4b60?QuickLink=index&… .
    Driver deployed successfully and I have checked it in folder \usr\sap\xxx\DVEBMGS30\j2ee\cluster\bin\ext\com.sap.aii.adapter.lib\lib and it's found ok. But this adapter type  not showing in Communication Channel only RFC and SOAP are showing there. I have restarted the server also.

  • Processing Started in JDBC communication Channel?

    Dear Friends,
    in JDBC Sender Channel i am facing one issue, i.e the data coming from DB but in PI/PO 7.4 data is not reached and channel is showing Green color and log is showing processing started. But as per my experience may the data is locked in server level. PI 7.0 for this type of issues we are deleted the locks in adapter level in visual admin. but 7.4 version is not having Visual Administrator. Please suggest how to resolve this issue in sap pi 7.4?
    Note: Previously it is working fine.
    please find the screen shots for your reference.
    Regards,
    Kiran Polani

    Dear Friends,
    i seen ur answers, but if it is production that is not possible to take restart ther server, for this visual administrator -->adapter locks i deleted db locks previously in pi 7.0 but i need solution for 7.4.
    2) http://hostname:port/nwa/locks as suggested by naveeen, for this type of issue dblocks are not available in this url location.
    and i have check this also no use and stoped communication channel and started so many times no use and maintained DIsconnect from Database after processing each message in channel level
    Regards,
    Kiran Polani

  • Error in Receiver JDBC communication channel

    Hi friends,
    I am getting an error in communication channel while inserting xml data into ORACLE database. Error is like
    "Message processing failed. Cause: com.sap.aii.af.ra.ms.api.RecoverableException: Error processing request in sax parser: Error when executing statement for table/stored proc. 'SUB_ORDER_HEADER' (structure 'STATEMENT_SUB_ORDER_HEADER'): java.sql.SQLException: ORA-00936: missing expression ".
    In the above error 'SUB_ORDER_HEADER'  is table and 'STATEMENT_SUB_ORDER_HEADER' is a statement tag of XML SQL.
    Please help me to solve the issue.
    Regards,
    Santhosh

    Hi,
    Since oracle database has all fields in Caps, and also it is case sensitive. So check whether you have the database table name and the field name specified in the datatype are concurrent with the fields and the table name in oracle table.
    Regards,
    Nithiyanandam

  • Alert Management for RFC Communication Channel

    Hi All,
    I want to send notification to user using Alert Management in case of System Error in RFC Adapter.
    I tried with defining rule in RWB with * . But still I am not able to find notification in Inbox or Mail Inbox.
    Thanks.

    Infact it is working fine for JDBC CC.
    But in case of RFC Receiver CC it is niether apperas in Alert Inbox nor in Mail Inbox.
    Then there needs no more setting to be done. Are you sure that an error has been reported by the RFC channel (red symbol) and there is no restriction in Alert Configuration....like the interface name/ adapter type etc.
    Uncheck the option Suppress Multiple Alerts of this Rule option

  • JDBC Communication channel : Error establishing socket

    Dear friends,
    Im using JDBC comm channel. JDBC driver has been insatlled for SQL Server 2000 (SP3) .
    However for the JDBC comm. channel i get an error
    "SQLException: [Microsoft][SQLServer 2000 Driver for JDBC]Error establishing socket.'
    following parameters are used :
    JDBC driver:  com.microsoft.jdbc.sqlserver.SQLServerDriver
    DB connection :
    jdbc:microsoft:sqlserver://<ip address>:1433;databaseName=<dbname>
    i looked up some blogs in SDN, & tried some other options,
    eg: com.microsoft.sqlserver.jdbc.SQLServerDriver
    DB name:
    jdbc:microsoft:sqlserver://<ip address>:1433;DatabaseName=<dbname>
    However still get the same error
    Can somebody help ?

    Hi
    The following should fix your problem
    <i>I had this problem using SQLServer 2000 Driver for JDBC and finally solved it. Here's what I did:
    1. Make sure that SQL Server is set to mixed authentication. To do this, open enterprise manager, right click on server/properties; go to security tab and select SQL Server and Windows Authentication. Apparently, the driver from Microsoft cannot handle windows integrated authentication.
    2. Keeping the server properties dialog up, go to the general tab and push the network configuration button. <b>Enable TCP/IP (it is disabled by default). If you wish, press properties to change the default port (1433).</b>
    3. Add an SQL Server login account (NOT a WINDOWS account (see 1)). You can also use your sa account, but I don't recommend it.
    4. Use the login setup in step 3.
    Some final notes:
    (1) I've seen ads for third party drivers that can use Windows integrated authentication. Try one if you need this feature.
    (2) One responder suggested telneting to port 1433 to verify TCP connectivity. The connection is refused on my machine even though I can connect through the driver. And this is how it should be; otherwise there'd be a security risk.</i>
    Courtesy:XI installation Configuration of J2EE engine problem
    Regards
    krishna
    <i>Note:Reward points if helpful</i>

  • User dynamic for RFC communication channel

    Hello,
    we are developing an architecture for a bank company. We have a JAVA frontend and a R/3 backend, with a XI machine between both. All the authorizations are implemented inside the R/3 backend, and we need that all the users of the frontend exist on the backend. For this reason, when we define the RFC communication channel inside the integration builder configuration, the user must be dynamic. However, on the RFC communication channel only an static user-password is permitted. Could you tell us a possible way to define this user dynamically?

    Hello,
    SSO - Single Sign On is not supported in XI3.0, communication channels need a service id for talking with R3.
    We have been following up with SAP for SSO functionality. Its still in the pipeline. In the near future they may provide SSO.
    Regards,
    Naveen

  • Reg jdbc communication channell proccessing

    I have scenario i.e JDBC to RFC
    but i need  small calrification like is it possible to trigger the jdbc sender communication channel automatically whne the file tirggerd from the orcle Database
    like without giving the any polling intervals CC should poll when the file triggerd.
    i am not going to use that file its just a flag to start the communication channel
    can we achive this through OS commands ???
    thanks in advance....
    Edited by: katakoti on Nov 9, 2011 2:18 PM
    Edited by: katakoti on Nov 9, 2011 2:19 PM
    Edited by: katakoti on Nov 9, 2011 2:20 PM

    can we achive this through OS commands ???
    Yes you can write script and control the channels externally like give start or stop command at your specified requirement time.
    Please see this link
    Control Communication Channels Externally without using RWB
    Also you can use wget or curl command in the script  followed by http url string.
    Example:
    wget  http(s)://host:port/AdapterFramework/ChannelAdminServlet?party=party&service=service&channel=channel&action=start

  • Role for Changing communication Channel parameters

    Hello All,
      I'm looking for a role that gives access to Changing communication Channel parameters in Integration Directory. I know that SAP_XI_ CONFIG_J2ee gives this access but is there a way to assign any security role or any component so that it gives access to  just Changing communication Channel parameters  in Integration Directory instead of giving access to the whole IB:Configuration.
    Thanks in Advance

    Hi
    dont have idea but maybe u can get idea about assigning role from these,
    see if  it helps
    http://help.sap.com/saphelp_nw04/helpdata/en/89/05793c05f0807be10000000a11405a/content.htm
    http://help.sap.com/saphelp_nw04/helpdata/en/45/0c86aab4d14dece10000000a11466f/frameset.htm
    regards
    Pratibha

Maybe you are looking for

  • How to change a date in one format to the other?

    Hi, Say I have a String representing a date in the following format: dd/MM/yyyy e.g. 12/03/2002 How can I convert this String to a String representing a date the following format: ddMMyyyy e.g. 12032002 Without using the String class. Thanks

  • XML Parsing Error: no element found

    Hi, I'm working with BIPublisher 11g and I'm having the following error, this error occurred when I'm in the report and try to get the XML : XML Parsing Error: no element found Location: http://172.16.10.46:9704/xmlpserver/servlet/xdo Line Number 4,

  • Problem with sqlquery

    hi, i have a requirement where i have to find a (status='C' >2) can anyone correct select CR.REPAIR_NUMBER,CR.INCIDENT_ID,CS.INCIDENT_ID,CS.INCIDENT_NUMBER,CR.STATUS FROM CSD_REPAIRS CR, CS_INCIDENTS_ALL_B CS WHERE CR.INCIDENT_ID = CS.INCIDENT_ID AND

  • Using Scripts in Oracle Weblogic Server

    Hello friends, I have a query in which I need to use scripts: setWLSEnv.sh? or setDomainEnv.sh? Thanks

  • D&D problem since SDK1.4. Dropped object falls through JPanel

    Hi, my application consists of two JInternalFrame. First frame consists of JTree and JPanel. Second frame consists of JTextArea. JTree is DragSource, JTextArea is DropTarget. JPanel-object is neither DragSource, nor DropTarget. It is possible to drag