Is there a possibility to implement a Portal Services by EJB Bean?

Let suppose we have a Portal Service class ITestPortalService and EJB called TestEJB
Can we do this in this way or any other way?
public class TestBean implements javax.ejb.SessionBean, TestPortalService

Question: Is there a possibility to implement a Portal Services by EJB Bean?
I don't think you can do this directly as the portal service is maintained and called from the irj (portal) application, while the EJB beans are called directly from the web application server (as far as I know).
The only think you could do is to have the Portal Service be  a bridge, which basically only calls the EJB and returns the results.

Similar Messages

  • Is it possible to implement iSupplier Portal for Employee type Vendors

    We have iSupplier portal for external suppliers which we customized to show only invoices and payment advices.
    Is it possible to implement the same to our internal employees without creating them as new suppliers ?
    We want employees use iSupplier portal to view their expense(payments).

    If you are using presentation API then as Nagarajan said, you can use Endeca Dimension Search to power your TypeAhead/Predictive search.  Below are a few pointers that may help.
    Trigger typeahead only after user enters a few characters (ideally after 2-3 characters).
    Introduce a delay of a few milliseconds between your Endeca Searches.
    Limit the Dimensions to include using the Di parameter.
    Control the number of dimVals returned and other Dimension behavior using Drc and Dp
    Use Drc (to evaluate InStock products) in a seperate query with D=* to get a list of all valid DimVal IDs. Cache them and use this list to remove any out of stock dimVal IDs from the real query results.
    Use Dk and Dx to control match mode and your relevance ranking strategy to sort your results.
    Oracle Commerce Services also offers a prepackaged service called Endeca Predictive Search (EPS) module that can be quickly implemented to power TypeAhead. EPS provides other configurable features like caching, record search, frequent matches ,etc.  Reach out to your Oracle representative if that intersts you.
    All the best! I hope this helps.
    Best,
    Kaush
    P.S. Google limits the search result to 4 which, works for them and might work for you but to exploit the full potential of Predictive Search based on Endeca, try HomeDepot.com, Staples.com, etc. for inspiration.

  • MeasureExpression property - Is there a possibility to implement distinct count with exclude empty?

    I have a measure which needs to have distinct count aggregation with exclude empty.
    Is there a possibility to specify MeasureExpression property to achieve the same? I have set the aggregation of the measure to none and I have typed the following function,
    Count(Distinct(Column_name),EXCLUDEEMPTY)
    where as the measure reads 0(zero) upon processing. Is there any other way to achieve this?
    The data feed has nulls included too for the column which this is to be achieved, which cannot be modified in the data level.
    Regards,
    Kantha Girish

    Hi Kantha,
    According to your description, you want to implement the distinct count aggregation, right? In this case, we can use a query like
    count(nonempty([DimName].[HierarchyName].[LevelName].members,[Measures].[MyMeasure]))
    Here are some blogs about how to implemet distinct count aggregation, please refer to the link below.
    http://blog.sqltechie.com/2009/09/distinctcount-analysis-service.html
    http://richardlees.blogspot.com/2008/10/alternative-to-physical-distinct-count.html
    If I have anything misunderstood, please point it out.
    Regards,
    Charlie Liao
    TechNet Community Support

  • Question regarding implementation of Portal Service

    Hello,
    I want to create a portal service that calls our R/3 system and comes back with customer master data. For that I have to hand over the userid to the portal service.
    The Interface looks like that:
    import com.sapportals.portal.prt.service.IService;
    import com.lgs.model.CustomerDataBean;
    public interface IR3CustDataService extends IService
        public static final String KEY = "R3CustDataService";
        // returns an object with all customer master data from R/3
         public CustomerDataBean getCustomerData(String userid);
    The implementation of the method in the corresponding class is:
    CustomerDataBean cdb = new CustomerDataBean();
    public CustomerDataBean getCustomerData(String userid) {
              return cdb;
    Now I would implement the program logic (accessing R/3 and fill the CustomerDataBean) in the init method of the portal service class.
    public void init(IServiceContext serviceContext) {
                    mm_serviceContext = serviceContext;
                    implementation of program logic, usage of userid necessary
    My question is now how I can use the String userid in the init method? How can I hand over the userid to the init method so that I can use it?
    Any hint is really appreciated!
    Thanks a lot.
    Arno

    hi
    MY level of understandind u r problem is
       by application  u r sending the username and password to the portal and getting the required data by beans
    if so
    check this it may be usefull foru
    Integrating External Application Services without Web service
    bvr

  • DB access in Web Dynpro Portal Service / or EJB with WebService ?

    Hi,
    I will develop a web dynpro application which will run in the EP and use an DB. How are the best practices in this scenario ? Should I use a Web Dynpro Model (EJB or WebService) for the persistence operations or should I use Portal Services ?
    Regards
    Flo

    Thanks,
    ok some words more... , I want to find out the differences between VC, PDK and Web Dynpro. Most of the parts of the application will be written in Web Dynpro. It´s possible to access portal services in Web Dynpro. But not with a Web Dynpro Model, so will going to use EJB/Webservice.
    But here I have one more question... I am wondering why EJB a n d Webservice in combination !?!? Can´t I only write a Webservice o r a EJB to achieve the DB connectivity ?
    Thanks
    Flo

  • Retrieve Portal Service from EJB

    Hi All,
    I am trying to use a custom Portal Service from an EJB application. I assume that I have to do the  JNDI lookup for the service since I can not use the usual "PortalRuntime" to get the service instance.
    Looking at the JNDI browser in the Visual Admin, I can't seem to find it. I have seen some code snippets on SDN for UWLService  where lookup is done via "/broker/services/XXXX.KEY"
    Any insight?
    Thanks,

    Hi,
    Take a look at this similar post: /thread/412823 [original link is broken]
    BRgds,
    Simon

  • Start Portal Service from EJB

    hi developers,
    I want to start a portal service from an ejb which runs on my portal server (this ejb is called from a r/3 system).
    The portal service than has to do set km file authorizations.
    Has anyone an idea how I can do this and which portal service is the best for this?
    Thanx a lot
    Christoph

    Hi,
    Take a look at this similar post: /thread/412823 [original link is broken]
    BRgds,
    Simon

  • Is there existing an EASY Implementation Guide for Services ?

    Do anyone know where I can find an easy GUIDE with an easy example for an ESOA implementation with less then 300 pagesm ?

    Hi Dirk,
    here is a useful doc
    http://hosteddocs.ittoolbox.com/CM021805.pdf
    regards,
    P.
    if helpful reward points are appreciated

  • Can´t sync movies with iTunes 11.1.4 (on Mavericks 10.9.1) to iPhone 4S with iOS7. Is there a possibility to reset the sync on iTunes?

    I produced some videos in iMovie 10.0.2 and transfered they to iTunes 11.1.4.
    That worked so far....
    After that I´ve compressed the movies for the use with iPhone and iPod
    .....also worked.....
    Then I tried to sync the movies to my iPhone4s with iOS7.0.4. The sync starts, runs and ends without an error. But after that I can´t find the movies on my phone. There is enough free memory on my phone and I also tried to shut the movie app and restart my phone. The movies are still not there.
    When I check what´s on my phone with iTunes (iPhone connected), iTunes says the movies are on my phone!?!?!?
    Maybe there are some troubles within a sync "library" or something like that? Is there a possibility to reset the sync services or whatever is responsible for the sync?
    Or maybe somebody has another solution which solves the problem!?
    The strange thing is that my music, books and all the other stuff will sync fine!
    Hope that someone can help me with this issue.
    thanks a lot

    I´ve fixed this issue as follows:
    1) did a backup of the iPhone in the cloud
    2) reset the iPhone in manufacturing mode
    3) restored the backup out of the cloud
    After that the sync with iTunes worked well also with movies.

  • Get current user in portal service context

    hi guys,
    We want to implement a portal service which will check user's role from LDAP, and we need to get the current user id.
    We know for class IPortalComponentRequest, there is method getUser().getUserId(), is there any similar method for IServiceContext? or any way for us to get user id in portal service?
    regards,
    Guo Feng

    Hi Feng,
    Implement
    public String getParameter(IPortalComponentRequest arg0, String arg1)
    eg in your implementation class and add the following code.
    IUserContext userContext = arg0.getUser();
    String username = userContext.getLogonUid();
    String full_name = userContext.getDisplayName();
    HTH

  • Calling Portal Service using result as Java Bean Model impossible?

    Hello folks,
    we try to achieve to call a portal service (working) which gives as a result a list of object of type com.foo.Report. We want to make use of this class as a model class, so we have the class as a model node in the context. The class itself is part of the service DC.
    Unfortunately at run time it gives us a NoClassDefFound Exception of com.foo.Report.
    As the com.foo.Report is part of the same DC as the service, it is no option to add the PAR public part to the used DCs of the WD DC because then there is this type conflict when we call the service (service look up). Or am I wrong and this is the way to do it? I mean I struggled quite a while to get the service look up right and needed to remove all the PAR/lib used DCs from the used DCs of the WD Project, when I got it working this Model error came up. I also tried to put the Model class in a separate DC but that caused the same error.
    how is it possible to call a Portal service from WD and using it's return vale as a Model class
    our system iis 7.0.17
    best
    Stefan

    Hi,
    Refers the following docs..
    EJBs in Web Dynpro Application Using Wrapper Class
    Here Java Bean Model used in web dynpro.
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/00be903b-8551-2b10-c28a-8520400c6451
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c
    Accessing database table using EJB and web dynpro
    https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c
    Oracle Connectivity with EJB using WebDynpro Application
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/wdjava/oracle%2bconnectivity%2bwith%2bejb%2busing%2bwebdynpro%2bapplication
    Hope it will help u.
    thanks
    Abhilasha

  • Use of portal service in JAAS Login Module

    Is it possible to use an portal service in an JAAS Login Module?
    I've tried to use the IUserMappingService and always run in an Null Pointer Exception.
    All needed Used DC references are set and the build and the deployment of the
    login module is possible without any errors.
    Best regards,
    Thomas

    I've debuged my JAAS login modul.
    The following objects are in accessable over my context object
    {broker=broker, com.sap.portal.pcm.collaborative.ipartstemplates={}, UME=UME, com.sap.workflow.es.portal.IKMCRoomService=com.sap.workflow.es.room.KMCRoomHelper@44c944c9, comp.sap.portal.fpn.marshallersrepository={com.sapportals.portal.workset=com.sap.portal.fpn.marshal.WorksetMarshaller@7cf07cf0, com.sapportals.portal.rolefolder=com.sap.portal.fpn.marshal.RoleFolderMarshaller@489b489b, com.sapportals.portal.operationmodifier=com.sap.portal.unification.semanticlayer.marshalling.OperationModifierMarshaller@1a1b1a1b, com.sapportals.portal.businessobject=com.sap.portal.unification.semanticlayer.marshalling.BusinessObjectMarshaller@1fc71fc7, com.sapportals.portal.layout=com.sap.portal.fpn.marshal.LayoutMarshaller@454f454f, com.sapportals.portal.role=com.sap.portal.fpn.marshal.RoleMarshaller@590e590e, com.sap.portal.obn.semanticlayer.businessobject.BusinessObject=com.sap.portal.unification.semanticlayer.marshalling.BusinessObjectNYMarshaller@68af68af, com.sap.portal.obn.semanticlayer.operation.IOperation=com.sap.portal.unification.semanticlayer.marshalling.OperationNYMarshaller@4f4a4f4a, com.sap.portal.pcm.admin.PlainFolderConverter=com.sap.portal.fpn.marshal.FolderMarshaller@284a284a, com.sapportals.portal.iview=com.sap.portal.fpn.marshal.IViewMarshaller@7ba37ba3, com.sapportals.portal.page=com.sap.portal.fpn.marshal.PageMarshaller@a100a10, com.sapportals.portal.operation=com.sap.portal.unification.semanticlayer.marshalling.OperationMarshaller@ece0ece}, WP=com.sapportals.portal.prt.core.resource.MultiPropertiesResource@3b213b21, ContentCatalog=ContentCatalog, Navigation=Navigation, PCD=PCD, com.sap.portal.obn=com.sap.portal.obn, com.sap.portal.usermanagement.usermanagement=com.sapportals.portal.prt.service.usermanagement.UserManagementService@60cc60cc, ProductionMode=true, AdHocWorkflowConnector=com.sap.workflow.es.portal.WFEWorkitemProvider@30d630d6, com.sap.ip.bi=com.sap.ip.bi, com.sapportals.portal.pcm.registeredServies=com.sapportals.portal.pcm.registeredServies, UniversalWorklistService=com.sap.netweaver.bc.uwl.core.portal.UWLPortalService@57e957e9, com.sap.portal.appintegrator=com.sap.portal.appintegrator, rtmf_messaging=com.sap.ip.collaboration.core.api.rtmf.core.RTMFMessaging@41af41af, com.sap.workflow.es.portal.IKMNotificationService=com.sap.workflow.es.portal.KMNotificationService@1daa1daa, com.sap.portal.pcm.collaborative.pagestemplates={}, runtime=runtime, Authenticator=com.sapportals.portal.prt.service.authenticationservice.AuthenticationService@756f756f, com.sap.workflow.es.portal.IKMAttachmentService=com.sap.workflow.es.portal.KMAttachmentService@9750975, unification=unification}
    The IUserMappingService is missing.  Any ideas?
    Best regards,
    Thomas

  • Portal Services

    I have created a portal service with 2 simple functionalities of adding and subtracting 2 numbers.
    I made this using NWDS and deployed it as a par file
    I have consumed this service by calling the methods in another portal application project.
    Now, I need to know:
    If someone asks me to make this a web service, why would they want it and how do I go about doing this in NWDS. How do I consume this web service in a new portal project.
    Would be glad if someone explained the steps to me.

    If you have the Portal Service and the other project in the same Portal server, why would you want to make a Web Service out of it and then consume it in Portal.
    Simplest would be to just use the Portal Service from your Portal Application.
    Coming back to your requirement, in order to consume a web service, it's again only possible to create another Portal Service that consumes the Web Service and then again, you'll have to call the newly created Portal Service (that has consumed the web service) from the Portal Project.
    You're of course making a round-about action of the simplest.
    Sol1: What's simple and best to do.
       1. Create a Portal Service X.
       2. Use the Portal Service X in your Portal Project Y.
    Sol2: This is what you are trying to do.
       1. Create a Portal Service X.
       2. Publish it as a Web Service A.
       3. Consume the Web Service A in Portal Service B.
       4. Use the Portal Service A in your Portal Project Y.
    Do you really want to do this?
    Regards,
    JP

  • Create new portal account in EJB

    Hi All,
    I have a stateless EJB whose work is to update a database and create a
    portal account (by the service of UserManager Bean).
    These two actions use two different Tx Data Sources( myDataSource and
    commercePool ) respectively.
    Everytime I invoke createPortalAccount(), the account is created but the
    system is hang too.
    Here is my code:
    private void createPortalAccount(String username, String password)
    throws RemoteException {
    UserManagerHome umHome=null;
    UserManager userManager = null;
    String UM_HOME = ".BEA_personalization.UserManager";
    try {
    umHome = (UserManagerHome) JndiHelper.lookupNarrow("portal" +
    UM_HOME,
    UserManagerHome.class);
    userManager = umHome.create();
    if(userManager.userExists(username)) {
    throw new Exception();
    else{
    ProfileWrapper pw = userManager.createUser(username,
    password);
    } catch (Exception e) {
    e.printStackTrace();
    Is there any restraction of creating a portal account in EJB?
    The function can work alone in a normal java application class.
    Sincerely,
    Alan.

    The attached file is the statck trace.
    Thank you for your help.
    Alan
    "Daniel Selman" <[email protected]> ¼¶¼g©ó¶l¥ó
    news:[email protected]..
    Alan,
    When the system hangs hit CTRL-BREAK in the app server console window and
    send the stack trace.
    Sincerely,
    Daniel Selman
    "Alan Liu" <[email protected]> wrote in message
    news:[email protected]..
    Hi All,
    I have a stateless EJB whose work is to update a database and create a
    portal account (by the service of UserManager Bean).
    These two actions use two different Tx Data Sources( myDataSource and
    commercePool ) respectively.
    Everytime I invoke createPortalAccount(), the account is created but the
    system is hang too.
    Here is my code:
    private void createPortalAccount(String username, String password)
    throws RemoteException {
    UserManagerHome umHome=null;
    UserManager userManager = null;
    String UM_HOME = ".BEA_personalization.UserManager";
    try {
    umHome = (UserManagerHome) JndiHelper.lookupNarrow("portal" +
    UM_HOME,
    UserManagerHome.class);
    userManager = umHome.create();
    if(userManager.userExists(username)) {
    throw new Exception();
    else{
    ProfileWrapper pw = userManager.createUser(username,
    password);
    } catch (Exception e) {
    e.printStackTrace();
    Is there any restraction of creating a portal account in EJB?
    The function can work alone in a normal java application class.
    Sincerely,
    Alan.
    [20020506-01.txt]

  • Consume Portal Service from J2EE web application

    hi, i am a newbie to portal content development. My team have developed a J2EE web application to be run on the portal. Is it possible to consume a Portal Service from J2EE web application? If possible, deeply appreciate if you could provide some guidelines. Kindly advise. Thanks.

    Hi Theodore Yu,
    You need to expose your portal service as a webservice to consume it in a j2ee web application.
    For exposing a portal service to webservice check this link
    http://help.sap.com/saphelp_nw04/helpdata/en/43/cb213e578c0262e10000000a11466f/frameset.htm
    Thanks,
    Padmaja
    Edited by: Padmaja Pedapudi on May 20, 2008 2:03 PM

Maybe you are looking for

  • Issue with pressing down on the Home Button

    I have had my iPhone 4 since launch day abd have had no issues with it. Runs great, but I went ahead and got the free bumper just in case and sure enough after getting it and putting it on, I was at a concert and had it knocked out of my hand. Causin

  • Portege Z10T-A140: Can I upgrade to Win 8.1 and where to find serial key

    Hi , I have Z10T-A140 . when i check part number in link : http://www.toshibamea.com/en/Compatibility-Matrix-8-1?SerialNo=pt131v-00h005ar told me not compatible with win 8.1 . but at under page write it is compatible with win 8.1 . Why result is diff

  • How to reset the TMP password?

    Hi, to all, this is my first post on this forum. I've got Lenovo ThinkPad Z61m, and got problem with the Client Security Solution. This is the message when I try to configure this program: " The Trusted Platform Module (TPM) on this system has been c

  • BAM and SoapUI

    Hi, I'm newbie in Oracle BAM and I'm having problems using BAM with SoapUI, a test enviroment for webservices. I send records, via XML, from SoapUI to BAM succesfully, but in date fields, if I keep this fields blank, a default date is received from B

  • Any advantages to using a VPN accell card?

    are the accellerator cards worth purchasing?  other than offloading the IPSEC onto the card from the maincpu is there any netwrok speed benefits i would see from using them on our devices?  i'm thinking of getting a vac plus card for my pix 515.  i a