EJB - inbound and outbound proxy

I have implemented inbound and outbound proxy to transfer file. In proxyFTPClientREQIB method of ProxyFTPClientREQIB_PortTypeImpl class I want to invoke outbound proxy that sends structure to XI. I have a problem with context, because after invoking outbound proxy method from inbound proxy there is an incorrect context (concatenation of EJB inbound context and EJB outbound context: ejbContexts/bcc.com.pl/MonaApp/bcc.com.pl/MonaApp/ProxyFTPClientREQIB_PortTypeBean and localejbs/bcc.com.pl/MonaApp/ProxyFTPClientRESOB_PortTypeBean)
Context ctx = new InitialContext();
proxyFTPClientRESOB_PortTypeLocalHome = ProxyFTPClientRESOB_PortTypeLocalHome) ctx.lookup("localejbs/bcc.com.pl/MonaApp/ProxyFTPClientRESOB_PortTypeBean");
proxyFTPClientRESOB_PortTypeLocal = proxyFTPClientRESOB_PortTypeLocalHome.create();
Error:
Path to object does not exist at localejbs, the whole lookup name is ejbContexts/bcc.com.pl/MonaApp/bcc.com.pl/MonaApp/ProxyFTPClientREQIB_PortTypeBean/localejbs/bcc.com.pl/MonaApp/ProxyFTPClientRESOB_PortTypeBean.
What should I do to avoid concatenation of contexts?

Hi Julia,
the correct call is:
... ctx.lookup("java:comp/env/ejb/ProxyFTPClientRESOB_PortTypeBean");
The Reference to the JNDI name is done in the ejb-jar.xml:
<ejb-local-ref>
  <ejb-ref-name>ejb/ProxyFTPClientRESOB_PortTypeBean</ejb-ref-name>
  <ejb-ref-type>Session</ejb-ref-type>
  <local-home>YourLocalHomeInterface</local-home>
  <local>YourLocalInterface</local>
  <ejb-link>ProxyFTPClientRESOB_PortTypeBean</ejb-link>
  </ejb-local-ref>
Hope that helps,
Stefan

Similar Messages

  • 3 sap(integrate legacy with XI - Inbound and outbound proxy

    We are planning to  have 3 sap (SRM,BI  and CRM) systems  to integrate with legacy systems . All the systems have inbound  as well as outbound proxy calls. I have few questions:
    1.What are the different steps to be configured to make this scenario work  with one XI instance .
    Does any one have this kind of scenario.
    I know we can do it without proxy calls .
    Awarded for appropriate solution.
    Thanks,
    Satya.

    ECC < -
    >
    SRM     <-->      XI    <--
    >     Legacy
                            --        >
    BI <-
    This is my scenario. The communication with all SAP Systems  using proxy . Where do u specify in the Inbound that it should go to the Respective system. At SXMBP_ADM level or configuration level in (IR&ID) . Can u please send me the exact details ?
    Let me know if you have this kind of scenario?
    Thanks,
    Satya.

  • Seeking recommendations for handling large binary documents with security(preferable) for inbound and outbound scenarios from OSB- SOA and SOA- OSB

    Hi,
    I am currently working on a project with the following requirements
    1. Client transfers binary document (between 1-20MB in size) from OSB proxy to SOA composite to Content Management system
    2. Client retrieves binary document (between 1-20MB in size) from Content Management system to SOA composite to OSB proxy
    In otherwords, a inbound and outbound integration.
    What I have tried so far and my results:
    Scenario A
    1. Enabled MTOM on SOA composite by attaching wsmtom policy
    2. Created an OSB business service and consumed the SOA composite application
    3. Enabled MTOM on OSB proxy and business service and configured it to pass by reference
    Scenario B
    1. Enabled MTOM and security on SOA composite by attaching wsmtom policy and SAML policy
    2. Created an OSB business service and consumed the SOA composite application
    3. Enabled MTOM on OSB proxy and business service and configured it to pass by reference
    I have a demo integration setup that writes a binary document to a file using the above steps. My SOA composite has a file adapter that writes the binary data to an external file and it is exposed as a web service with a simple WSDL definition that has an inline XSD schema with an single element of base64binary type. I have added a mediator that maps this base64binary element node to the file adapter's input node.
    Result for Scenario A with file size less than 1 MB:
    Flawless execution with sub-second response times
    Result for Scenario A with file size of 8MB
    First attempt: SOA composite faults with database transaction related error, solved by increasing JTA timeout
    Second attempt: Flawless execution, but file transfer took over 100 seconds to complete. This is very poor performance and my suspicions are that this cannot be the expected behaviour, but I dont know the internal workings of the SOA composite and why its taking this long.
    Result for Scenario B:
    The OSB business service does not accept/recognize the SAML policy in the WSDL and suggests to configure OWSM policies manually, but OWSM policy in OSB does not have the wsmtom policy. Regardless of this, any permutation of MTOM + WSS security in this integration scenario either did not work outright or MTOM optimization was not happening ie binary data was materalizing in the message body.
    I have only about 3 weeks left to implement a viable solution and the closest ive come to a solution is Scenario A but that +100 second response time for an 8MB file is really worrying.
    I would appreciate any level of guidance, recommendations or suggestions as to how I go about tackling this problem.
    Thanks
    regards,
    Johnny

    I think this is due to the underlying mechanism of weblogic classloading..
    You can contact oracle support @ https://support.oracle.com to report issues. Roughly this is the process .
    1- get the Oracle Customer Support Identifier (CSI) for the client you are working for.
    2- Create a user profile quoting the CSI. This will send an approval request to oracle support admins at your client.
    3- Get the oracle support admins at your client site to approve your request for support access.
    4-Once they approve , you can access the support site and raise service requests.

  • To Monitor inbound and outbound messages for ECC 6.0 business system

    Hi Guys,
    I am working on ABAP proxy. I want to monitor the flow of Inbound and Outbound messages for my Business system (ECC 6.0).
    XI server is on a different system.
    I understand that SXMB_MONI is used for tracking XML messages. What kind of tracking can we do by this transaction in our Business system and the XI system?
    And how do I know whether the outbound XML message sent is lying in the Sending Business system or in the XI system?
    When I am testing my interface, there is a fault message generated. How do I know whether the fault message is being sent to XI?
    Thanks,
    James.

    James,
    Go to SXMB_MONI in your sending system.
    Here you will find a message ID fro your Message.
    Go to XI, --> SXMB_MONI -->Monitor For Processed XML messages --> Advanced Selection Crieteria and use the Message ID here to see if the Message has hit XI or not.
    Likeiwse it can be traced in the target system as well.
    The basic point,  The messages will have same Message Id on your R3 and on XI.
    Regards
    Bhavesh

  • Redundancy Design Inbound and Outbound

    Please have a look to attached diagram.
    I have 2 parts A & B. Part A already exist and running. We are planning to add Part B as show in the diagram.
    Part A consists of ASA 5540 and 2921 as Edge Router and Microsoft TMG as Web Proxy for internal users
    All other traffic routed to ASA. ASA handles NAT and ACL's
    Objective of adding Part B is to have Redundancy Inbound and Outbound. However, firstly I  want to focus on outbound redundancy then I will move to Inbound Part.
    After adding Part B, TMG will have 3 NIC's. 2 NIC will be connected to ASA's and 1 to internal
    For Web proxy fail over I will configure TMG ISP-R feature. But my concern is for other traffic
    Therefore, please can someone help me what are best possible ways I can use for outbound failover.
    Thanking in advance. I appreciate the help

    Any help, please ?

  • Monitoring of inbound and outbound messages for business system ECC 6.0

    Hi Guys,
    I am working on ABAP proxy. I want to monitor the flow of Inbound and Outbound messages for my Business system (ECC 6.0).
    XI server is on a different system.
    I understand that SXMB_MONI is used for tracking XML messages. What kind of tracking can we do by this transaction in our Business system and the XI system?
    And how do I know whether the outbound XML message sent is lying in the Sending Business system or in the XI system?
    When I am testing my interface, there is a fault message generated. How do I know whether the fault message is being sent to XI?
    Thanks,
    James.

    James,
    Go to SXMB_MONI in your sending system.
    Here you will find a message ID fro your Message.
    Go to XI, --> SXMB_MONI -->Monitor For Processed XML messages --> Advanced Selection Crieteria and use the Message ID here to see if the Message has hit XI or not.
    Likeiwse it can be traced in the target system as well.
    The basic point,  The messages will have same Message Id on your R3 and on XI.
    Regards
    Bhavesh

  • How to add Total Quantity in Inbound and Outbound Delivery screen

    Hi,
    I want to add Total quantity field in Inbound and Outbound Delivery screens.
    In document flow i can see the line item quantities in ALV Format, but if i select Display the totals above the entry check box
    in Change Layout--> Display, i didn't see any totals displayed.
    Please help me on this?
    Regards
    Bhuvana

    Hi
    If the field is a customer field, see BADI 'LE_SHP_TAB_CUST_HEAD'
    Regards
    Eduardo

  • Sharing Handling Units between Inbound and Outbound Delveries?

    Hello-
    I could use some guidance with how to best setup a handling unit scenario for a Third Party Purchasing process.
    1.) Sales Order for Third Party Purchased Material (Vended Finished Good) is created in ECC.
    2.) Purchase Order is sent to supplier.
    3.) Shipping Label is generated in SAP and is assigned a Handling Unit.  Label is sent to supplier.
    4.) Supplier affixes this label to product and ships it to our warehouse.
    5.) Goods Receipt is performed via Purchase Order (MIGO). 
    6.) Warehousing activities and Post Goods Issue of Outbound Delivery are performed via this label and Handling Unit.
    We would like to do a few new things with this process.
    A.) We would like to have the supplier provide us with the HU on their ASNs and generate a Packed Inbound Delivery from it. 
    B.) We would like the same HU to eventually be associated with the Outbound Delivery to the end customer. 
    Is their a best practice to share a Handling Unit across an Inbound and Outbound Delivery? 
    Is EWM Cross Docking the best way to accomplish this? 
    Are there other proven approaches?
    Thanks for your time and help.
    -Ron

    hi friend
    Handling unit number for identity of packing materail , pallet material carrying the carton ,carton the carrying the  material
    like FG  material and tray
    identification number controlling the handling unit numbers.
    with regards
    dinesh

  • Need IDOC inbound and outbound programs

    hi,
    i am new to xi.
    i want IDOCs , inbound and outbound / function module  programs for    PURCHASE ORDER
    and GOODS RECEIPT.
    ex:  BD10 for material master (matmas01).
    thanks and regards
    v ijender

    for purchase order.
    ORDERS / ORDERS04
    ORDCHG / ORDERS04
    ORDRSP / ORDERS04
    Programs
    RBDMIDOC – Creating IDoc Type from Change Pointers
    RSEOUT00 – Process all selected IDocs (EDI)
    RBDAPP01 - Inbound Processing of IDocs Ready for Transfer
    RSARFCEX - Execute Calls Not Yet Executed
    RBDMOIND - Status Conversion with Successful tRFC Execution
    RBDMANIN - Start error handling for non-posted IDocs
    RBDSTATE - Send Audit Confirmations
    FOr testing you can use WE19.
    and also check the below link
    http://www.erpgenie.com/sapedi/message_types_masterdata.htm
    regards
    kummari

  • SAP inbound and outbound delivey in single shipment document

    Hi
    We are doing outbound and inbound delivery creation in SAP. These are dropped to OTM(oracle transport management system). OTM will create orders for deliveries and groups multiple deliveries into one shipment. This is sent back to SAP for shipment creation. Problem we have is SAP can have either inbound deliveries Or outbound deliveires in a shipment. Based on inbound shipment or outbound shipment in shipment document type. OTM does not has this restriction and can bundle both outbound and inound in single shipment.
    Business scenario we have is multi pick and multi drop, where there is possibility that 1) inbound del from vendor for PO            2) Outbound del to customer for SO and 3) outbound/inbound del for STO from RDC to DC in a single sipment.
    Please advice ow this can be achieved in SAP.
    Best Regards
    Edited by: M.N. Phani Sai on Oct 28, 2010 10:34 AM

    It is not possible to involve both inbound and outbound deliveries in the same shipment. SAP has its deficiencies...
    http://sap.ittoolbox.com/groups/technical-functional/sap-log-wm/inbound-and-outbound-delivery-in-the-same-shipment-3512217
    http://help.sap.com/saphelp_erp60/helpdata/en/f5/04898047bd11d2bf750000e8a7386f/frameset.htm
    You cannot place outbound deliveries and inbound deliveries together in the same shipment document. Nor is it possible to assign Items from a delivery or an inbound delivery to different shipment documents. You must decide at the delivery stage whether order items can be shipped together in one delivery and therefore require only one shipment.
    Edited by: Csaba Szommer on Oct 28, 2010 11:05 AM

  • Single Function module to create inbound and outbound delivery

    Dear Frens,
       I would like to know how VL10A is creating a deliverty document in background mode.
       otherwise can anyone help me with a single function module or BAPI or BADI which creates both
       inbound and outbound delivery.
    Regards
    Priya

    Hi,
    Try FM RV_DELIVERY_CREATE or GN_DELIVERY_CREATE.
    For creating a delivery wrt PO u 1st need to have a sales order i guess.
    Regards,
    Amit

  • Regarding Inbound and outbound interfaces in ABAP HR

    Hi,
    Iam new to SAP. Can you send the document related to Inbound and Outbound Interfaces in detail.
    i.e What these interfaces comes under and steps to develop these inerfaces.
    Thanks&Regards,
    B.Thulasi.

    Hi,
    Iam new to SAP. Can you send the document related to Inbound and Outbound Interfaces in detail.
    i.e What these interfaces comes under and steps to develop these inerfaces.
    Thanks&Regards,
    B.Thulasi.

  • Puprose of inbound and outbound idocs

    plz help me
    what is inbound and outbound idoc ? its purpose
      inbound and outbound idoc steps
    thnaks

    Hi Mahesh,
    Please check this link
    what is the need of ALE/ IDOC
    what is idoc.
    IDOC creation
    inbound  idoc creation
    Best regards,
    raam

  • EMAIL inbound and outbound - Sales pro - urgent

    Hello,
    Our requirement is to reach out to the customer and also the email recieve, whether is it possible in Sales pro. i have seen in the navigation bar of SALES PRO standard workcenter EMAIL does this allow me to do inbound and outbound mails to the customer.
    Is there any SAP help related to this, or any best practice to activiate this functionality.
    do we also need to define reciepient address also via config.
    Regards
    AM

    Hi,
    http://help.sap.com/saap/sap_bp/bblibrary/Documentation/C4B_CRM701_BB_ConfigGuide_EN_XX.doc.
    https://help.sap.com/saap/sap_bp/BBLibrary/Documentation/C20_CRM701_BB_ConfigGuide_EN_XX.doc.
    pFA
    Regards,
    Sumeet

  • Degugging Inbound and Outbound idocs

    Hi friends,
    Can any one help me in debugging Inbound and outbound IDocs?
    1.I found the inbound FM using Tcode we19,clicked the inbound FM button and called it in the debugging mode.
      While debugging the Inbound FM iam nt able to figure out the actual problem.Is there any way to reach out the exact problem?
    2.How to find out the outbound Idoc FM and debug it?
    Your help is appreciated.
    Thanks in Advance.

    Hi,
    Inbound or Outbound IDoc processing FM can be found iin partner profiles(WE20).
    for Outbound: WE20 --> choose partner type --> Outbound parameters --> choose message type --> Message control Tab --> Double click on Process code to get the FM assigned.
    for inbound: WE20 --> choose partner type --> Inbound parameters --> choose message type --> inbound options --> Double click on Process code to get the FM assigned.
    For debugging, use Tcode WE15 for outbound, But before that u need to set the output type dispatch time as 1 (Send with periodically scheduled Job). Go to Output type assignment screen --> assign the output type --> choose further processing --> Set Dispatch time as 1 --> Save.
    Note: U need to keep the break point in the Outbound FM or exit if any before going to WE15 to debug from that point.
    Hope it helps,
    SG.

Maybe you are looking for

  • Report for available space

    Hello all: any standard report that show capacity , used  and available space? THx in advance. Edited by: Manthana99 on May 31, 2011 11:26 AM

  • What Hard Drive Can I use?

    Ok stupid question time. I want to get a firewire enclosure and put 3.5 hard drive in it for my mac mini. Can I buy any old hard drive and jam it into the box or do I have to buya hard drive that is specific for the Mac? I mean are hard drives mac or

  • Load balancing across multiple application servers not working with JCo RFC

    We have a problem where inbound messages to the Mapping Runtime engine (ABAP -> J2EE) are not load balanced over application servers. However, load balancing does take place across server nodes within one application server. Our system comprises of t

  • Macbook Late 2007 Rosetta Value

    Hi I was considering putting my Macbooks on eBay and was just curious if anyone could help me in suggesting a good starting bid/buy it now price for them. One is a 2.2Ghz 320GB HDD 4GB RAM, and the other a 2.2Ghz 160GB 2GB RAM Macbook Rosetta. I have

  • Where is PS Elements 10 download, serial number?

    I bought Intuos 5 touch tablet, which was sold with elements 10 program. I downloaded the complementary program following instructions on the cd, but cannot activate the download without a serial number. I have tried every code on the box but they se