Use session in business services

I want to use JSFUtils.storeOnSession in the Model project. I created a class that I want to expose as a Data Control but I can't because the FacesContext can't be imported.

User, please tell us your Jdev version!
What is the use case behind your question?
You should not access the session from the model layer at all. There are other solutions you could implement depending on your use case.
Timo

Similar Messages

  • Use-Case for Business Services (Service Without Party) in SAP XI

    Hi,
    I have a synchronous scenario where I am calling a web Service from SAP R/3 via SAP XI. I have designed the Integration Scenario in the Integration Repository, where I created an A2A role for the R/3 System and a B2B Role for the Web Service. For the Web Service Party in the Integration Directory I use a Business Service unterneath 'Service without Party' as the party for the Web Service is unknown.
    I realized that I cannot assign the Business Service to the defined Web Service Role when I want to use the Integrationscenario-Configurator. This only works when I ceate a Party and create the Business Service underneath this Party.
    I understand that this makes sense when I am having a B2B communication like in this case although I don't have a real external Party for the Web Service.
    But I don't understand for which cases I would create a Business Service underneath the 'Service without Party' as internal Systems are known and can be set-up as Business Systems in the SLD.
    Does anybody have such a case where I use an 'Internal' Business Service? And is there any way that I can use such a Business Service in the Business Integrationscenario-Configurator?
    Thanks in advance.
    Alex

    Hi,
    for creatting a communication channel you will have to have either the Business system, Business service.
    For file systems which are generally just servers come under Business service. This is one of the place where you use Business service.
    Regards
    Vijaya
    Message was edited by: vijaya kumari

  • How to use a existing Business Service in IDoc-File Scenario

    Hi Experts,
    I am new to XI.
    I am working on a IDoc to File scenario where in i am importing the CREMAS.CREMAS03 IDoc from the R/3 System.
    When i try to create a Business Service in Configuration Scenario Object in Integartion Directory, i get a message saying "SAP system ID ER1 and client 800 already exist in service | CLNT800ER1".
    Can i reuse this Business Servie in my Configuration Object?
    If yes, can you please guide me How to go about it?
    Thanks for the effort.
    Cheers
    Gaurav Raghav

    U may directly use it.
    Just select the business service wherever required. It is not necessary that the Business Service is present in ur configuration scenario. But if u still want it, u may add it using "Add to Scenario" option from other configuration scenario or from Objects tab
    Regards,
    Prateek

  • Using session in Web Service

    Hello friends;
    I have a question. Can � use session in webservice? Does Web service support session? I searched but didn' t find a good result.

    This has been logged as a bug and was upgraded to severe in March, but nothing has been done on it as far as I am aware. Beware this bug also affects global temporary tables--the same session and everything related to --including session context variables and global temp tables are shared by every call to the web service.
    Service Request 6067517.994 - SYS_CONTEXT SESSION DATA IS NOT PRIVATE BETWEEN MULTIPLE CLIENT SESSIONS has been updated by Oracle Support with relevant information on 18-JAN-07.
    To view the progress on-line via MetaLink, go to this URL:
    http://metalink.oracle.com/metalink/plsql/tar_main.this_tar?tar_num=6067517.994&p_ctryCode=840

  • Mapping Exception when using Business service

    Hi
    I am using a business service for my IDOC to File scenario and its working fine. But when i am using the same Business service in many work spaces for the same scenario, its giving me an Mapping Exception and the one that was working also giving the same problem. Why its so and it could be solved by using a business system in the scenario. But how the problem is happening?
         Guide me through this.
    Thanks
      Vinod

    Hi, MK
    In XI 3.0 Exchange Infrasturcture, SXMB_MONI (XML Error messages) under SOAP Header --> Error
      <SAP:Stack>During the application mapping com/sap/xi/f/_mMa_Fle_To_SDS a com.sap.a.u.mc.i.BeRimEcepio a thown: Fatal Error: com.sap.enielbxlprr.Parser~</SAP:Stack>
      <SAP:Retry>M</SAP:Retry>
    I am looking container element to display this messages in my alert cagegory ???
    you know SXMB variables but i could't found to display this error how to found out SAP: stack variable please help
    Thanks

  • Business Services development with jDeveloper

    We are making use of the Business Services feature in JDE to expose business functions as web services, that's great and working.
    we have one problem with jDeveloper during development.
    we can create a new business service from OMW in JDE and invoke jDev from there, that's fine.
    then we can put codes in the project in jDev, that's fine.
    then we can publish the code as J2EE web service, that works as well.
    then if we restart jDeveloper after that, the J2EE web service doesn't work in the jDev embeded web server any more.
    we always have to delete the web service in the project and go through the same wizard steps to generate the web service again.
    it's very annoying when you have more than a handful of web services you want to expose.
    and if you use the WSDL in a client project to call this web service, you have to remember to give the web service the same name when re-generating otherwise you have to reimport the WSDL again on client side, it can be another huge pain if the client is Oracle BPEL.
    so my question is, why is this happening? is it some settings in jDev that we didn't set right? or is it a bug in jDEv and is there a work around?
    thanks in advanced!

    What error did you get?

  • Re: OSB - How to put multiple files via a osb ftp business service?

    I have been trying to create an ftp business service to transfer files to a remote machine. I select that the service should support any XML document (since I am only sending XML). Then, I specify the remote server directory like so:
    ftp://hostname:port/directory
    I take the rest of the default settings. However, when I use the business ftp service by testing it in the console, it just hangs. I can successfully ftp to the server and send files from the OSB server command line to the remote server in question. So, it isn't a problem with our network or a misconfiguration of ftp. Has anyone successfully used the ftp business service in OSB? If so, how do I configure it properly? Thanks much

    Have you checked server logs? Enable message tracing in operational settings and check the logs to find out where it is getting stuck.
    Regards,
    Anuj

  • OSB  Business service not getting created

    Dear team,
    We created a db adaptor which invokes a DB procedure with  input paramter as tabletype .
    Db procedure and tabletype are in same schema .
    We are trying a generate a Business service based on jca file. We are getting error
    "Error while retrieving information from JCA file".
    Can you please suggest

    1. What instrument did you use for creating Business Service?
    2. How did you create the Business Service step by step?
    3. Can you please attach JCA, WSDL, XSD for Db procedure?

  • Can OSB proxy and business service act as a stub ?

    Hi all,
    would like to enquire whether I can achieve the following. I have a web service consumer. Can the consumer call a OSB proxy service and within the proxy service, I use XQuery and extract the body and perform some transformation. And the proxy service return variables to the consumer? Without calling any business proxy in the process
    Can the proxy service act as a stub? Would I need a dummy business service for it?
    Or my objective cannot be achieved in OSB?
    Appreciate any thoughts.

    Hi,
    Assuming the incoming body contains "name: Peter, age: 13". Can the return information contain "name:Peter, age:13, Status: N"Yes, it's possible too, in your Response XQuery Transformation u can add n number of additional fields, and send back to requester.
    You can do both Translations and Transformations.
    Can I also configure the proxy service not to call any business service?Have you made/generated your proxy service from existing Business Service?
    If yes,: then your message flow would have only Route Node ( routing to Business Service).
    1. To do transformations on request add a Pipeline Pair in message flow and inside it add stage for doing XQuery transformations.
    2. Use Reply Action in stage as last Actions and do reply with Success.( The message flow won't go to Route actions after this ).
    IF No : Then either remove the OSB Action which is being used to call Business Service.
    It is considered good etiquette to reward answerers with points (as "helpful" - 5 pts - or "correct" - 10pts).
    Regards,
    Abhinav Gupta
    Edited by: Abhinav on Mar 8, 2013 3:27 PM

  • We need to create one or more business services to connect to service provider in OSB

    Hi all,
        I posted some questions for OSB and received some responses helpful. And today, I have a question about it to clearing about business services in OSB.
        Based on oracle's documents, a business service will connect to (I mean it can communicate) service provider (backend service). I have a example: Backend service A provide two services getEmployeeInfo and updateEmployee. Will I create one or two business services to connect to A ( to use these services) ? I think I need only one ? Can anyone talk about this case ?
        Many thanks.

    Hi Beck,
    for your scenario you can use only one business service,
    1. As Karan already explain about wsdl,  you should create a Business Service using WSDL file then you can choose operation at testing time.
    2. if you don't want  to use a wsdl and you can create a SOAP type service then you can use WSA-Action  to identify the service at beckend . Using wsa-action you can send a operation name like :
    <wsa:Action>http://xmlns.oracle.com/pcbpel/adapter/db/dbAdapterMultiOperation/Project1/AnkitTest/insert(Operation Name)</wsa:Action>
    Here 2 different solutions for you Question.
    Thanks
    Ankit

  • Replace E1- Adapter with Business Services

    Hello,
    We are using E1-adapter to communicate with web Methods ( like calling business function, table IO etc..), now we are planning to replace E1- adapter with Business Services. We are using tools 8.98.11 and Application Release E812.
    Question is , is it possbile to create a wraper to call any business functions just like E1-adapter? Any help is greatly appriciated.
    Thank you.
    Edited by: user3448054 on Oct 12, 2009 1:09 PM

    Yes, you can use the JDE Business Service Server to simulate the E1-Adapter associated with webMethods. Oracle provides out of the box Business Services for a majority of the E1 transactions. We have implemented Business Services Server with our webMethods and it is working very well.
    -Eric

  • ERP 8.12 TR8.98 and available business services question

    Hi there
    We are just about to upgrade to TR 8.98 from 8.96 primarily to make use of BSSV functionality. We are still on ERP 8.12.
    I am a little confused about what we would have access to in 8.12 TR8.98.
    I thought I read that the RI's are for testing purposes and should not be used in production, but used as a basis for development.
    I just found document 'JD Edwards EnterpriseOne Business Services 9.0 Reference Guide' which lists quite a few available business services that look ready to use.
    Would these now be available to us on ERP 8.12 TR8.98 or do we need to be on ERP 9.0 to use these services, which are not prefixed with 'RI'.
    I would just like to clarify what our situation will be and if we don't have these services, could we get them in the form of an ESU?
    Best Regards,
    Perusha

    Yes, you can use the JDE Business Service Server to simulate the E1-Adapter associated with webMethods. Oracle provides out of the box Business Services for a majority of the E1 transactions. We have implemented Business Services Server with our webMethods and it is working very well.
    -Eric

  • Conflict between 2 business services for the same SAP R/3 instance

    Hi,
    We developed a packaged solution that connects to SAP R/3 with RFC Adaptor and idoc Adaptor.
    We deliver design and configuration packages defining the entire integration schema between an external system and SAP.
    The configuration defines a business service BS_SAP_R3 containing RFC and idoc communications channels.
    When we deploy and configure the solution (design and config) on a XI instance we have a conflict.
    As the XI already contains a Business Service connecting to the same SAP instance (other integration) we want to use with our business service BS_SAP_R3, we have an error when configuring the “<i><b>Adapter-Specific Identifiers…</b></i>” properties “R/3 System ID” and “<i><b>Client</b></i>” from the section “<i><b>IDoc Adapter and RFC Adapter</b></i>” with the message, for the BS_SAP_R3
    <i><b>Check Result for Object BS_SAP_R3
    SAP system ID D46 and client 800 already exist in service | BC_TEST_SAP_R3  </b></i>
    Is there a way to solve this conflict problem?
    Thanks for your help.
    Adalbert

    Dzieki za odpowiedz
    Could you give more details about the design issue and what you have on mind?
    I also suspect a design issue but do not know how to solve it...
    If in your Configuration you have 150 Receivers Determinations, Interface Determinations and Receiver Agreements referencing the same BS business service to access SAP, can you make the service configurable in any sort…
    Can you recommend another solution?
    The only solution I see it to regenerate all the configuration by hand using the already exiting SAP BS… But for 150 objects… it is not a real solution...
    Thanks for your help
    Adalbert
    Wojtek

  • OSB business services slow after upgrade

    Hi all!
    After upgrading development environment to wls 10.3.6 + OSB 11.1.1.6 I noticed, that proxy services are executing notably slower (instead of 100ms, it is now about 4-5 seconds). After some investigation, I found out that all this time is taking "Route" action. Even simply executing
    business service from osb test console takes 4 seconds, instead of usual miliseconds. Using SOAP UI, business service executes as normal - tens of miliseconds, so I think, problem is somewhere within OSB.
    I tried on 2 machines - one with Win7, other Linux, same on both. Then I started again on wls 10.3.5 + 11.1.1.5, execution time was good.
    any clues?
    Thanks,
    Aigars

    i ran Gather Schema Statistics for all of 60%.Please run the same concurrent program for GL (estimate percentage: 10%) and check then.
    Mostly GL is slow others looks fine.What part of GL is slow? Forms? Reports? Tables?
    Have you applied all recommended/critical patches?
    R12.1: General Ledger List of Patches [ID 1328833.1]
    EBS: R12.1 Oracle Financials Recommended Patches [ID 954704.1]
    Oracle Applications Current Patchset Comparison Utility - patchsets.sh [ID 139684.1]
    Critical Patches when Upgrading EBS 11i to 12: New Report Available
    https://blogs.oracle.com/stevenChan/entry/upgrading_from_11i_to_12
    Please also see:
    R12 SLA/FAH: How to Improve Performance in Subledger Accounting & Financials Accounting Hub [ID 791049.1]
    R12.0 and R12.1: FAQ for the SLA Upgrade: SLA Pre-Upgrade, Post-Upgrade, and Hot Patch [ID 604893.1]
    Thanks,
    Hussein

  • Business Service - Other Attributes

    Hi Guys,
    I have a file to rfc scenario, The file is coming in from a file system and mapped as per business req to the structure of the BAPI.
    I am using a single business service for both sender and receiver , I came across other attributes  tab where it is Third party service (chargeable) or SAP Service (Non Chargeable)...
    What should I select , and what is the impact ??
    pls share your thoughts.
    Regards,
    Teja

    how would we know if it is chargeable or not?
    This is what your integration architect or Business Folks will confirm.....if it is confirmed that the service which you are trying to send message to is a third party then you may be charged for some amount....the business has to takke a call on whether the messages is to be sent by paying some charges or use some other mechanism which will provide more cost-effective solution.
    Saw this when we had a Discovery Server installed....personally never tried communicating with third party systems....but my project-anchor mentioned this issue of charges with the Discovery system.
    Regards,
    Abhishek.

Maybe you are looking for

  • Can we import photos from iphone to windows PC when Iphone is locked with passcode?

    Hello, I am using Iphone 5 running IOS 8.1.2. I recently connected my Iphone to my friends windows laptop to import the photos and videos. I observed a strange behaviour. I was able to import photos even when my Iphone was locked with passcode. Can a

  • Fieldpoint get info on 'all' channel

    Hello Can somebody, please, tell me how to get info which channels are in the 'all' channel? I know how to do it in MAX and in project, but, how to get the info in *.vi? For example, in my item xxx.xxx.xxx.xxx\FP\2AI\All are channels 2,4,7 and 8. The

  • Spry Horizontal Menu - Safari on Mac

    I have used the spry menu in CS3 for the first time on a Mac and it looks fine in Firefox, but the sub menus look like they are about 4px to the left on Safari. I have one page uploaded with the menu on it at www.fatpipe.co.uk/AT/bodies2.html Any ide

  • Extension tab doesn't display

    First Safari extensions weren't showing up.  After some help, I was able to get the extensions tab back, but found the privacy tab won't display.  I unknowingly jacked another thread, as I'm new at this, so now am posting my own.  I'm running Safari

  • Is this possible to select Path nodes....? - Please help!

    Hi Everyone! Is this possible to select Path nodes. Like below image. If I select more than one closed and apply Path operation like shapeOperation.SHAPEINTERSECT & combine path. Thanks in advance. Note: Select all nodes from path not a select path i