Outbound DB Adapter configuration in OSB

Hi,
I have configured Outbound DB Adapter in OSB using JCA protocol. i am able to insert data also in database using OSB.
But i am getting some problem with one to many relationship tables.
here my database tables look like
BaseTable:
ID(primary Key), servicename, servicetype, amount
ChildTable:
ID (foriegn key reference from Basetable ID), taskname, tasktype, taskvalue
primary key: (id, taskname).
here relationship is : one to many relationship with childtable. means
one ID in basetable having many number of rows in child table.
Data:
ID servicename servicetype amount
1 aaaa bbbb 12
childtable:
ID taskname tasktype taskvalue
1 zzzz lllll 34
Problem:
when i am trying to insert one more row in childtable. it is not inserting new row, it is overriding exiting row. but as my understanding one to many relationship means, new row has to be created.
Please help me how to resolve this issue.
Thanks.

Hello,
You mention that the child table uses id and taskname as the primary key, but not what is specified as the primary key in at the object level. My guess is that you are only using the id field as the primary key, and so adding a new Child that references the same parent causes an object identity problem - since child1 and child2 both have the same value for ID, they can't be distinguished from each other.
Please be sure that you have both fields marked as the prmary key. If they are, please show how the child table is mapped.
Best Regards,
Chris

Similar Messages

  • AQ adapter configuration in OSB.

    Hi,
    1)I have developed a OSB service that dequeues the message from the queue and calls a stored procedure.
    2)I used a non XA datasource for AQ adapter.
    3) I could see that the message is going to processed state only after we get the response from PL/SQL stored procedure.
    4)My requirement is to dequeue the message from the queue(AQ), then go and "Processed" state then call the stored procedure.
    Can any one please help me on this.
    Thanks,
    Naveen.

    Naveen1215 wrote:
    4)My requirement is to dequeue the message from the queue(AQ), then go and "Processed" state then call the stored procedure.Unusual requirement... I think you will have to split OSB service in two to achieve it...

  • Adapter configurations in clustered environments

    Could you please let me know if any additional configurations/changes in the WSDL files are required for the Oracle adapters in a clustered environment.
    The Apps adapters , AQ adapters and the DB adapters in our processes have stopped working after being migrated to a clustered environments.
    Any inputs on the same would be greatly appreciated.
    Thanks a lot in advance!

    DB Inbound WSDL generated for single node cannot be used in clusters. At least for DB adapter released with OSB 10.3.1 Maintenance Pack1, we have to create separate inbound wsdl in jdev if they are supposed to be deployed to cluster. These is no way we can modify the Inbound WSDL generated for Single node to work in cluster.
    For a cluster inbound these steps are required
      1. Distributed Polling – When generating the WSDL in JDeveloper, set the Distributed Polling option when creating the DB adapter WSDL in JDeveloper. This option is required in an Oracle Service Bus cluster.  
    2. UseDirectlySQL – When generating the WSDL in JDeveloper, if you are using Distributed Polling  
    3. <toplink:lock-mode>lock</toplink:lock-mode> on toplink file
    Outbound WSDL should work with out any issues in cluster.
    Are you using adapters bundled with OSB?
    Cheers
    Manoj

  • Dynamic file names in outbound file adapter

    I have to configure a flow in XI system wich takes an input file from one machine and after mapping process leaves the output file in target machine with the same name of input file.
    Name of input file won't be always the same (*.dat) so i cannot hardcode this name in outbound file adapter.
    Does anyone know how to transfer input filename from inbound file adapter to XI message and then to outbound file adapter?
    I know there is an option to create dynamic file names in file adapter but i think it isn't enought to solve my problem.

    I have to configure a flow in XI system wich takes an input file from one machine and after mapping process leaves the output file in target machine with the same name of input file.
    Name of input file won't be always the same (*.dat) so i cannot hardcode this name in outbound file adapter.
    Does anyone know how to transfer input filename from inbound file adapter to XI message and then to outbound file adapter?
    I know there is an option to create dynamic file names in file adapter but i think it isn't enought to solve my problem.

  • OutBound File Adapter Issue

    Hi,
    I need some help in configuring file adapters:
    Process: I have a inbound adapter where i am feeding 4000 - 5000 rows of data from a flat file. I use these records to query a database and get response. I have a outbound file adapter where I write database response to a file.
    Problem: I have set the, write new file to 100 records. But if there are 3950 records going to outbound file adapter, It is only writing 3900 records in the output file directory.
    I need to write all records to the file. Please help me achieve this.
    Thank You
    Anil

    Hi,
    the batching criteria (100) is not met.
    You could improve the bahaviour by setting "Elapsed Time Exceeds" parameter, but still, there are some probs because critaria is only evaluated on invocation (anyone has an answer to that?!):
    from Doc:
    Elapsed Time Exceeds: Specify a time which, when exceeded, causes a new outgoing file to be created.
    Note:
    The Elapsed Time Exceeds batching criteria is evaluated and a new outgoing file is created, only when an invocation happens.
    For example, if you specify that elapsed time exceeds 15 seconds, then the first message that is received is not written out, even after 15 seconds, as batching conditions are not valid. If a second message is received, then batching conditions become valid for the first one, and an output file is created when the elapsed time exceeds 15 seconds.

  • Outbound JMS adapter with fx example

    When I wire outbound jms adapter as a listener for the spreaderOut
    <wlevs:stream id="spreaderOut" manageable="true">
    <wlevs:listener ref="outboundJmsAdapter" />
    </wlevs:stream>
    I get a error in instantiation of the outbound jms adapter using the factory. Although a create instance method exists it gives me an error as follows:
         at java.lang.Thread.run(Thread.java:595)
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'outboundJmsAdapter' defined in OSGi res[META-INF/spring/com.bea.wlrt.example.fx-context.xml|id=127|symName=fx]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: No matching factory method found: factory method 'createInstance'
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:448)
    The adapter factory configuration is as defined in the adapter spring configuration.
    <bean id="outboundJmsAdapter" class="com.bea.wlevs.example.jms.outbound.OutboundMessageAdapter" factory-method="createInstance">
              <constructor-arg value="sample.outbound" />
              <constructor-arg ref="wlsjmsQueueConnectionFactory"/>
              <constructor-arg value="JMSQueueConnectionFactory01" />
              <property name="destinationName">
                   <value>JMSResponseQueue01</value>
              </property>
              <property name="messageType">
                   <value>text</value>
              </property>
    </bean>
    How do I resolve this?

    When I wire outbound jms adapter as a listener for the spreaderOut
    <wlevs:stream id="spreaderOut" manageable="true">
    <wlevs:listener ref="outboundJmsAdapter" />
    </wlevs:stream>
    I get a error in instantiation of the outbound jms adapter using the factory. Although a create instance method exists it gives me an error as follows:
         at java.lang.Thread.run(Thread.java:595)
    org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'outboundJmsAdapter' defined in OSGi res[META-INF/spring/com.bea.wlrt.example.fx-context.xml|id=127|symName=fx]: Instantiation of bean failed; nested exception is org.springframework.beans.factory.BeanDefinitionStoreException: No matching factory method found: factory method 'createInstance'
         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:448)
    The adapter factory configuration is as defined in the adapter spring configuration.
    <bean id="outboundJmsAdapter" class="com.bea.wlevs.example.jms.outbound.OutboundMessageAdapter" factory-method="createInstance">
              <constructor-arg value="sample.outbound" />
              <constructor-arg ref="wlsjmsQueueConnectionFactory"/>
              <constructor-arg value="JMSQueueConnectionFactory01" />
              <property name="destinationName">
                   <value>JMSResponseQueue01</value>
              </property>
              <property name="messageType">
                   <value>text</value>
              </property>
    </bean>
    How do I resolve this?

  • Outbound RFC Adapter - Limit in Response

    Dear all!
    i face the following problem using a Outbound RFC Adapter:
    XI2.0:
    We call a RFC-FunctionModule which has an output-param of type XSTRING.
    The xml-Schema definition for this param in the XI-Repository is "base64Binary".
    As long as the output-param has a character-length < 1536, it works fine, but if it is longer, then the following Message can be seen in the XI-Monitor:
    "cannot serialize JCo response to XML"
    any advice? thankx in advance!
    Christoph

    Hi ram.
    In XI 2.0 RFC adapter is installed on XI engine not as part of decentral adapter like file adapter.
    So you need to configure it on XI engine itself.
    Thanx and regards
    Vinod ahir

  • Error -17600 when switching from LabVIEW Development System to LabVIEW Run-Time Engine in Adapter Configuration

    I receive an error message (code -17600) while loading my test sequence after switching from LabVIEW Development System (2009 f3) to LabVIEW Run-TIme Engine using the Adapter Configuration.
    ErrorCode: -17600,
    Failed to load a required step's associated module.
    LabVIEW Run-Time Engine version 9.0.1f3.
    When I switch back to the LV development system, everything is OK, and the sequence loads and runs perfectly.
    My TestStand Engine Version is 2012 f1 (5.0.0.262).
    I'd appreciate any help on this issue.
    Roman

    Hi Roman,
    There are a couple of things you can try:
    1) Determine if the LabVIEW RunTime Engine is corrupted in some way. Create a new simple VI with no sub-VIs, using the same LabVIEW Development system you used for mass-compiling the VIs. Create a TestStand step that calls this VI and ensure it runs correctly. Now switch your LabVIEW adapter to use the RuntimeEngine and choose the "Auto detect using VI version" option.
    Check if the simple VI is loadable and runs without errors in TestStand.
    If the step generates the same error, you should try a re-install of the LabVIEW development system.
    If not, its most likely that there is some VI you are using that is not loadable in the LabVIEW Runtime Engine because:
    1) Some sub-VI is still not saved in the right version or bitness. Open the VI heirarchy of the top-level VI that you are calling from TestStand and examine the paths of all the sub-VIs to check if they were in the folder you masscompiled and re-save any that are outside this directory.
    Also, when you try to close the top level VI, do you get a prompt to save any unsaved files? If so, they could be the sub-VIs that are not saved in the right version. Save all of them.
    Check if you are loading any VIs programatically and if these are compiled and saved in the right version as well.
    2) There is some feature you are using in your LabVIEW code that is not supported in the LabVIEW RunTime Engine. To check this, add your top-level VI to a LabVIEW project and create a new build specification and create a new executable from this VI.
        Right-click "Build Specifications" and choose "New->Application(EXE)".
        In the Application Properties window, select Source Files and choose the top level VI as the start-up VI.
        Save the properties.
        Right-click on the newly created build specification and choose Build.
    Run this executable (it will be run using the LabVIEW RunTime) and check if the VI has a broken arrow indicating that it cannot be loaded and run in the LabVIEW Runtime Engine.
    You might need to examine your code and find the feature which is not supported in the LabVIEW RunTime and find an alternative.
    Another thing i forgot to mention the last time around is if you are using 64-bit LabVIEW with 32-bit TestStand, then executing code using LabVIEW RTE from TestStand will not work since the 64-bit LabVIEW RTE dll cannot be loaded by the 32-bit TestStand process.
    If none of the above steps resolve the issue, consider sharing your LabVIEW code so i can take a look.
    Regards,
    TRJ

  • File adapter configuration parameter for "hexadecimal conversion"

    (File adapter for XI 2.0)
    Does anybody know the exact File adapter configuration parameters for reading a file with hexadecimal control characters as seperators. My file has
    3 types of seperators - i.e "2F", "05" & "0D2F"
    Eg: xml.fieldSeparator= "2F"
    When I specify this the file is getting split into fields
    at all the seperators in the file. I guess I am not using the right format in my defination ?
    Dorai

    Is there any special format for reading a file containing hexadecimal control characters?
    The file to be processed has hexadecimal separators:
    Field Delimiter        : '09' or '05'
    End of record delimiter: '0A' or '25'
    End of Table delimiter : '07' or '2F'
    Initially i would like to read the file into XI as it is i.e without any split by using "xml.fieldFixedLengths= "
    However, everytime I process the file(with hexadecimal contol characters), I have noticed that my file is getting split, even when I did not specify anything for field separator(i.e when i used fixed field length).
    Thanks,
    Dorai

  • File name naming convention in File Adapter configuration in ID

    Hi All ,
    I have a query related to xml filename created in IDOC-XI-FILE scenario based on value of one of IDOC field .
    The scenario is like this :
    I have to send one xml file per store for material master . In this case how can I define my file name with store name in File adapter configuration in ID .
    Naming convention should be
    <b><storename>_date_masterdataname.xml</b>where store name is one of field of IDOC .
    Plz help me .
    Thanks in Advance
    Regards
    Prabhat Ranjan

    Hi Prabhat,
    take a look at this weblog:
    /people/jayakrishnan.nair/blog/2005/06/28/dynamic-file-namexslt-mapping-with-java-enhancement-using-xi-30-sp12-part-ii
    you have to specify variable substitution
    (in the file adapter)
    and give the path to the store name (in the variable sustitution table)
    you <b>file name schema</b> (from the file communication channel can look like this)
    %storename%_date_masterdataname.xml
    Regards,
    michal
    Message was edited by: Michal Krawczyk

  • Using adapter specific message attributes in SOAP adapter configuration

    Hi,
    Can you please let me know how to use adapter specific message attributes in receiver and sender SOAP adapter configuration. If possible , with example.

    See here:
    Adapter-Specific Message Attributes in the Message Header
    http://help.sap.com/saphelp_nw04/helpdata/en/43/0a7d1be4e622f3e10000000a1553f7/frameset.htm
    Sender Soap Adapter:
    http://help.sap.com/saphelp_nw04/helpdata/en/fc/5ad93f130f9215e10000000a155106/frameset.htm
    Receiver Soap Adapter
    http://help.sap.com/saphelp_nw04/helpdata/en/29/5bd93f130f9215e10000000a155106/frameset.htm

  • Sender Mail Adapter Configuration error

    Hi,
    I am working on scenario mail adapter to CRM system. And when I tried to configure the sender email adapter I have got the error following error, Can any one help me to resolve this issues
    error occured: <b>exception caught during processing mail message; java.net.ConnectException: Connection refused</b>
    the details I have provided are as follows
    Transport protocol is POP3
    URL - POP://mailservername/Inbox/folder
    And I have tried with the IMAP4 also
    URL - IMAP://mailservername/Inbox/folder
    And we have cross checked that the XI server is able to ping that particular mail server.
    Regards,
    Venkat.

    Hi Venkateswara,
    I would suggest that you go through these to know how to configure your sender mail adapter,
    <a href="/people/michal.krawczyk2/blog/2005/12/18/xi-sender-mail-adapter--payloadswapbean--step-by-step mail adapter step by step</a>
    <a href="/people/prasad.ulagappan2/blog/2005/06/07/mail-adapter-scenarios-150-sap-exchange-infrastructure adapter Scenario</a>
    Also, to know the various parameters of a sender mail adapter, just go through this link,
    <a href="http://help.sap.com/saphelp_nw04/helpdata/en/23/c093409c663228e10000000a1550b0/content.htm">Configuring sender mail adapter</a>
    Check your mail adapter configuration against these details. Also, check if the mail server you are trying to access is running.
    Also go thru this pdf to make yourself more comfortable with mail adapters.
    https://websmp205.sap-ag.de/~sapidb/011000358700004556712005E/HowTo_Mail_Adapter2.pdf
    Regards,
    abhy

  • Sender JMS adapter configuration for IBM MQSeries

    Dear All,
    i am doing a IBM MQSeries 5.2.x Message ->sender JMS adapter -> XI server -> receiver RFC adapter -> R/3.
    i have deployed the JMS adapter with the required jar files of IBM MQSeries 5.2.x in XI server.
    in Sender JMS adapter configuration for IBM MQSeries 5.2.x, i have put following data:
    1. Transport Protocol: Websphere MQ - is it okay?
    in JMS provider settings:
    2. in channel name - what should be there?
    3. Transport Network protocol should be TCP/IP or WebsphereMQ - how to decide this thing.
    4. JMS Complaint - whether WebsphereMQ or JMS API.
    in JMS Settings:
    5. JMS Queue user - is this IBM MQSeries 5.2.x Queue User or someother user?
    6. JMS Message Selector - what data to take here.
    So if anybody has connected IBM MQSeries 5.2.x to XI via JMS adapter, please answer my above queries.
    Regards,
    Rajeev Gupta

    Hi Swaroop,
    you can send me those documents at my gmail-id : [email protected]
    Hi All,
    one more question - to connect XI server to IBM MQSeries via JMS adapter in ID, do we need to have a MQSeries Client installed on XI server - or - just by configuring JMS adapter, we can send messages from IBM MQSeries to XI server without any MQSeries client on XI server?
    Why Channel name is required in JMS configuration data?
    Thanks,
    Rajeev Gupta

  • Mail Adapter Configuration in XI 3.0

    Hi all,
    i tried to set up a process using the mail adapter. Unfortunately it doesn't work. Has anyone succeeded in setting up a process with the mail adapter using POP3 and SMTP?

    Hi Michael,
    I did not find any documentation of the XI 3.0 mail adapter so result of practical test only for outgoing mail using SMTP:
    <b>Mail server settings:</b>
    SMTP port 8025 (you can configure any port of course)
    Account demo, password test
    <b>Mail adapter configuration:</b>
    Bubble adapter java class
    classname=com.sap.aii.messaging.adapter.ModuleBubble
    Bubble.Helper=com.sap.aii.messaging.adapter.ModuleBubbleHelperXIMailImpl
    Part 0 : common part ######
    Mail.MailSubject="mail from adapter z_outmail"
    Mail.MailFrom=[email protected]
    Mail.MailTo=demo@<you mail server name>
    XIALL or XIPAYLOAD
    Mail.MessageProtocol=XIPAYLOAD
    Mail.Log=1110
    Part : XI client to Mail server ######
    OMail.TargetURL=smtp://<you mail server name>:8025
    OMail.User=demo
    OMail.Password=test
    The port and path where the adapter waits for XMB messages from clients.
    XI.Port=8240
    XI.Path=/z_outmail
    It look so that there is no POP3 support, just only IMAP.
    Jiri

  • Get the filename after an outbound file adapter operation

    Hello,
    I am calling an outbound file adapter operation in BPEL (10.1.3.3) - using a filename mask with a sequence (i.e. po_%SEQ%.xml). I would like to provide the filename created at run-time (i.e. po_123.xml) to my BPEL process so I can send this in an e-mail. Is this possible?
    Thanks in advance!
    Rod
    Message was edited by: Rod - fixed a typo
    Rod Tunnels

    Well, I took a different approach - which looks like it will work. Instead of letting the adapter decide the filename - I'm generating that in BPEL and passing that to the adapter using the header variable. So ... nevermind. ;-)

Maybe you are looking for

  • Toshiba Satellite A505-S6973 Windows Vista OS won's startup

    I have a Toshiba Satellite A505-S6973 with Windows Vista OS. Recently, the OS would not start up, it will stay at the "miscrososft corporation" logo page forever. I tried F8 to start as Safe Mode, the safe mode started but will load some files, and s

  • Parent-Child-Parent Sql

    Hi: I have two tables.  My main table contains item and quantity.  The second table contains  material_item, item  and quantity. They are joined on item.  The next step is to check if the material_item contains in the item record in the second table.

  • Drag and Drop between two JTrees (urgent)

    Hello, I want to drag a node from one JTree and Drop it to another JTree, but it is not working, I am able to Drag from JTree and drop that on Label successfully. I didn't get any tutorial regarding my problem. If anyone of you have made it. Can you

  • Using Boot Disk with external monitor?

    Does anyone have any idea how to boot from the OSX install disk while using an external monitor? My powerbook screen and HD are both busted and I can't install the OS on the new HD. I can get to the point where it has booted up and is using the exter

  • Problem in syncing the Apps version 5.0.1

    Hi there First: actually my problem is that after the syncing of my iphone the Apps not transfering to it!!! it said that it is synced  but nothing appear in my iphone??! any body know what is the problem that happened specifically after the updating