IPC using JSR 168 in Weblogic Portal

Hello world
Time and now I see a few articles on the most essential notion that we try to acquire knowledge and to produce in our portal application is inter-portlet communication. I found a lot of samples for websphere based of portlets and a few extensions more to support interportlet communication. Let me introduce to you in a concise way of what we are trying to achieve, we try to create inter portlet communication without using session context, event handlers and the backup files. Add to this that we try to have an ajax based approach to refresh portlets. We started using portal weblogic portal development just a month back and its all Greeks and latins for us to start with very little information, just, I think that I will get some answers from the experts here. I also understand that this post may be the requirement for most of the people who work with the portal environment. Please post your suggestions/samples on this approach and the ways to do this. Thanks in advance.

Concerning
Ashwin

Ashwin Hello,

Thank you to detail what you want to do. From your description, I think certainly you don't want to use asynchronous desktop. In the async Office, portlets refresh when they are interacting with on the customer or when they receive an event of the portlet is interacting with (and for the next version of WLP, whenever they welcome an audience of JSR286 make parameter). But WLP 10.3 for your use cases events are going to be the way forward to ensure the good portlet (s) are updated in desktop async mode.

So for your use case described below, I think that you would be events want to implement something like this:

High portlet fires an event (I'll call it "filterParams") when it gets to a call from processAction() indicating that the user interacts with this portlet and filter settings may change. To the event payload you might use a simple map of the filter parameter name / value of the filter setting.

Second portlet listening event "filterParams" (from the top of the page portlet), so that it can cool off and display the AAU links based on what is at the top of the page portlet (which he received in the event payload). The second portlet also sends an event in its method processAction(), which I will call 'linkSelected', with a payload of the link that should display the third portlet. In the Manager 'filterParams' of events the second portlet can also send a "linkSelected" event to cause the third portlet refresh if you want to only it when the top portlet filter of modified page settings.

The third portlet would listen for the "linkSelected" event and set its content appropriately from the link he received in the event payload.

It would be possible to upgrade to JSR286 events in the future if you implemented this way with JSR168 events now.

Kevin

Tags: Fusion Middleware

Similar Questions

  • Using the JSR 168 Interportlet communication

    Hi all

    We use JSR 168 portlets. My requirement is to call on some events from Portlet to Portlet B method.

    I need assistance on the implementation of communication Interportlet using JSR 168

    Thank you

    Hello

    Pass review below two discussions

    Using the JSR 168 Interportlet communication

    Re: JSR 168 Portlets - IPC with custom events

    Thank you
    Vincent Sarvabatla

  • How to add portlets JSR 168 Portal Web Logic

    I installed WebLogic Server 10.3, WebLogic Portal 10.3 and workshop 10.3 on a virtual Windows Linux (version 5.4 of Red Hat Enterprise Linux Server).

    I used Workshop for WebLogic to create a Web portal project and a portlet in the < BEA_HOME > /wlportal_10.3/samples/domains/portal field. I can view the page in the portal at http://localhost:7041/PortalOneWP/myportal.portal.

    Using NetBeans IDE, I created a JSR 168 portlet that is packaged in a WAR file. I put the file. WAR in the folder < BEA_HOME > /wlportal_10.3/samples/domains/portal/autodeploy

    How can I add this portlet to the page I have to the http://localhost:7041/PortalOneWP/myportal.portal?

    Thanks in advance for your help,
    Barbara

    Hello Barbara,.

    The problem is that your JSP attempts to use portlet_2_0 tag library, which works only with the JSR286. JSR286 only is not supported by WLP right now (although it will be in the next version), only JSR168 is supported.

    If you do not use the specific tag library JSR286 features, you may be able to just change the import of taglib to be "http://java.sun.com/portlet" (the library of tags JSR168) and everything should work. If it still does not compile with that change, watch the JSR168 tag library documentation and make sure that you use only tags and attributes that are supported in JSR168 tag library.

    Kevin

  • interaction of JSR 168 portlets with a portal

    Hi, I'm fairly new to jsr 168 prtlets and how to use on a portal.
    I want to design two placeholders, one to the left and to the right. Then each placeholder has a jsr 168 portlet such as portlets on the left have buttons or hyperlinks and clicking on them, the page or action opens on the right portlet.

    Can someone guide me on how to code it. I use weblogic workshop for that. Please give me an example of code if you can.

    Thank you much for the help in advance

    Concerning
    John

    Hi John,.

    In JSR168, there are two "scopes" for the session - scope portlet (which is the default) and the scope. Your code would work except that you have found the scope of default by portlet session; you want the scope of application shared-of-everything-portlets.

    For that, all you need to do is to change your call:

    portletSession.setAttribute ("testVariable", "testing123");

    TO:

    portletSession.setAttribute ("testVariable", "testing123", PortletSession.APPLICATION_SCOPE);

    and modify your call:

    String value = (String) portletSession.getAttribute ("testVariable");

    TO:

    String value = (String) portletSession.getAttribute ("testVariable", PortletSession.APPLICATION_SCOPE);

    Kevin

  • Portlets JSR-168 in WebCenter Interaction

    We exposed re-implement many of our portlets WebCenter Interaction in the JSR 168 standard uses the container of the JSR-168 WebCenter interaction. What we found, is that the stardard is fairly simplistic, and we do not find a way to access things like Id of the portlet or the URL of the Image Server, which we are accustomed to use. Is there a way to make use of these things in the WebCenter Interaction JSR-168 container?

    The main reason that we wanted to move to the standard is to facilitate future updates. We will have to move in the future everything on an IBM WebSphere portal that our company uses also, or if we stay with WebCenter Interaction, finally we heard that there could be major changes when the product merges with WebLogic portal.

    Thank you
    Tim

    Hello

    JSR168 is a fairly simplistic standard, but there are ways to do more things.

    For example, to get the portlet ID (I assume you want a single portlet instance ID and not an ID for that 'typical' portlet), you can use the PortletRequest.getWindowID () to return an ID for the single portlet user session.

    For the storage of URLs that need to be reconfigured depending on deployment, which is usually done with the preferences of portlets JSR168 portlet - portlet can read its value, which can be set by a developer or an administrator (or the portlet itself, if you wish). Deployed with portlets Java properties files can also contain this configuration information.

    Kevin

  • Question of packaging portlets JSR 168

    Hello

    I have a bunch of Java (JSR 168, using Spring MVC) portlets (PortletOne, PortletTwo... PortletN) that I've created as individual Web portal projects and are contained in a portal REE project. This portal EAR is my unit of deployment and consists also of another project of Portal Web (Assembly.war) that contains an app.portal file where I intend to assemble all these Java portlets and use it to create a desktop computer. The reason for having all individual portlets in web projects that is clean is to export it to a device and use it as a shared library or package in the EAR another file as necessary.

    my application.xml looks a bit like this:
    <?xml version="1.0" encoding="UTF-8"?>
    <application id="Application_ID" version="1.4" xmlns="http://java.sun.com/xml/ns/j2ee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">
    
         <display-name>MyEar</display-name>
    
         <module id="WebModule_1">
              <web>
                   <web-uri>Assemby.war</web-uri>
                   <context-root>appname</context-root>
              </web>
         </module>
    
         <module id="WebModule_2">
              <web>
                   <web-uri>PortletOne.war</web-uri>
                   <context-root>PortletOne</context-root>
              </web>
         </module>
         
         <module id="WebModule_3">
              <web>
                   <web-uri>PortletTwo.war</web-uri>
                   <context-root>PortletTwo</context-root>
              </web>
         </module>
    </application>
    But since all these WAR files are at the same level that I can't refer to definitions of context and the controllers for the portlets defined in each of these portlet WAR files (PortletOne, PortletTwo,...) of the joint web project that contains the file app.portal in Assembly.war. I tried to set up a structure of classes customized in weblogic - Chargers application.xml and put the war on a lower level assembly file, but the app even not a not deploy with IllegalAccessError as soon as a framework for each of the war files is saved by the hot deployment of processes. Moreover, when I deploy the EAR file, the portlets defined in each of the WAR files do not appear in the resource library, seen from the Portal Administration console.

    Suggestions how to assemble these common individual portlets in a web project, while keeping their packaged in the same EAR file? Other approaches are also welcome.

    I've already reviewed deploy these files of WAR portlet like Weblogic J2EE of shared libraries. But with this approach, the overall application response time is very slow despite exhausting all the tuning options and can also precompile JSP pages in shared libraries.

    Is to import the JSR-168 portlets using the import utility as WSRP portlets ARE a viable option? I'll be able to share in portlets all session variables, of fire and manage events and be able to precompile the JSP in Rible portlets?

    Published by: shyam6190 on August 13, 2009 13:25

    Hello

    Maybe the nested multiple classloaders involved with shared libraries approach slows down, it down-if this is the case, it would be difficult to fix.

    With the help of WSRP should work for you; There is a little more complex, but if you have relatively simple portlets, use methods and tags correct JSR168 (or done spring bridge), it shouldn't be too difficult to get to work. The IDE may be able to help you with that; You can create a new portlet type 'remote portlet' in your aggregate webapp, and a wizard will guide you through the steps. If you use the local proxy mode, individual portlet WSDL URL will be the URL of the Web application for each portlet on localhost.

    WSRP configuration can also be done dynamically in the tools of administration of portal, and even using a specialized tool to import JSR168, but these two options would create instances of database portlets and portals in your webapp library. It would be nice if your EAR group does not need to move to a different deployment environment, but if you need portability of the EAR in another environment it makes packing, as data is also necessary. If you happen to use WLP version 10.3, according to me, there is a bug that prevents the import JSR168 tool specialized to work, but the tool is documented here:

    http://download.Oracle.com/docs/CD/E13155_01/WLP/docs103/prodOps/deployment.html#wp1047337

    Because all WSDL URL show up only on the local host, when you compress the associate WAR file it should successfully deploy on all servers. Information about the local proxy mode, which should improve the performance of your configuration, are described here:

    http://download.Oracle.com/docs/CD/E13155_01/WLP/docs103/Federation/chap-Best_Practices.html#wp1010714

    I hope this helps!

    Kevin

  • WebLogic Portal deployment in question - managed server

    Hello

    I have a sample file Portal ear (default value of pointbase database) which has been developed in weblogic workshop to the
    development of base domain - server admin in portal weblogic 10.3. able to test page successfully picking flow.

    ----

    Now, I created another baseTdomain mode of production, weblogic portal 10.3 domain admin server and the servers managed in a cluster.
    for this baseTdomain, I am pointing to the oracle database.
    Admin Server (port: 7001) and managed servers (port: 7009) begin very well without any problems.

    I exported the ear of the workshop of the domain based file on my local and trying to deploy in the
    managed server.

    Its not to deploy and complain... The EAR file is prepared instead of an active state.

    How can I copy all the information portlet from pointbase to Oracle stuff. Am I missing something here and so, no deployment happens?

    < 19 August 2009 11:44:24 AM MST > < WARNING > < Server > < BEA-002637 > < could not registries
    ER a listener of disconnection due to weblogic.rmi.extensions.DisconnectMonitorUna
    vailableException: could not register a DisconnectListener to [weblogic.rmi.int
    Iqbal. BasicRemoteRef - hostID: '-7879092007710906947S: 192.168.1.116: [7009,7009,-]
    [1, -1, -1, -1, -1]: baseT_domain:ms1', oid: '31,' channel: 'null']. >

    < 19 August 2009 11:58:41 AM MST > < WARNING > < hats > < BEA-149004 > < ended in failure
    detected when opening to distribute task for application 'psAppEAR '. >
    < 19 August 2009 11:58:41 AM MST > < error > < Console > < BEA-240003 > < Meeting Console
    The following error weblogic.application.ModuleException Ed: preparation of Exception
    module: EJBModule (netuix.jar)


    Unable to deploy EJB: netuix.jar ProxyPagePersistenceManager:

    Exception when trying to deploy Unchecked or excluded from security policy: web
    logic.security.service.ResourceCreationException: weblogic.security.spi.Resource
    CreationException: [Security: 090310] cannot create the resource

    Thanks for your help in advance,

    Thank you
    Krishna.

    Hello
    I'm not sure if you can ignore the warnings or not. Probably, if you do not use JMS / async Web services you can.
    3 Im still not sure what port you are talking about, where you specified it? do you mean port multicast? in which case it can be the same as the admin server port (the multicast address is different), but you should use unicast I think

  • Sequencer of WebLogic Portal

    HI Experts,

    We are currently migrating to a CMS tailored to weblogic portal CMS, we have done the migration on the level of database by creating scripts that will insert the data from the old CMS to WLP CMS, but after migrating all data, we met a PK violation in the CM_NODE table in particular on the NODE_ID column when we try to create a new content through WLP CMS API. I discovered that the ID on this column (NODE_ID) are generated by p13n sequencer (correct me if I'm wrong). Here's my question, is there a way to modify the starting value sequencer to avoid a PK violation on the current NODE_ID on table CM_NODE? I checked the table SEQUENCER and tried to change the current value for NODE_ID but I have no chance. or is it possible to call the sequencer on an insert script? so scripts that I created will always use the ID generated by the sequencer. I hope you can help me with that. Thanks in advance!

    Villy

    Hi Villy,

    WLP uses the table SEQUENCER to manage all sequences.

    Simply find the entries you want to update in this table. After this operation, restart your servers WLP.

    Emmanuel

  • Migration of WebLogic Portal Portal WebCenter

    Hello
    We are on the path of migrating our WebLogic Portal application to the new WebCenter Portal framework. We solved some problems, but now we are one, we do not know how to solve.
    In our WebLogic Portal, we used the tag "isUserInRole' of http://www.bea.com/servers/p13n/tags/auth
    We cannot find this tag or something similar in the new environment.

    < code >
    < % @ taglib prefix = "auth" uri = "http://www.bea.com/servers/p13n/tags/auth" % >
    ....
    ....
    ....
    < auth:isUserInRole roleName = "AuthenticatedVisitor" roleMap "rm" id = 'RID' = >
    .........
    .........
    < / auth:isUserInRole >
    < code >


    I know, we could begin to write our own libraries of tags, but I can't believe that this is the preferred and recommended way.
    Our environment to the WebLogic Portal, (WebLogic Server 10.3.2) is JDK 1.6 and JSF 1.2
    and as a first step, we would like to just keep everything that's not migrate to ADF, it is a later step.
    Target environment: Portal WebCenter framework 11.1.1.4.

    Can someone help, please?

    Concerning
    Edmund

    Edited by: egeesken the 05.04.2011 10:07

    WebCenter IS ADF... This is not a tag... It's the expression language.
    You don't have to do anything special to make it work. No special necessary library, if that's what you mean.

    WebCenter is nothing more than the ADF with a whole bunch of libraries top :)

  • How to create and use Webservice using WSDL controls in weblogic portal10.3

    I have WSDL, how to create webservice control using WSDL in portal weblogic 10.3 and use these controls to call the Web service methods?
    Please give me the links of documents for this.

    Thank you

    Published by: user9041086 on August 12, 2010 09:26

    See the discussion below

    How to create and use Webservice using WSDL controls in weblogic portal10.3

    Thank you
    Vincent Sarvabatla

  • Adapter of the UCM VCR for weblogic portal.

    Hello
    Where can I find the VCR UCM installable adapter, tried to get the version of the patch as described in the oracle documentation but was not a success.
    We use weblogic portal server version is 10.3.0.0


    Thank you and best regards,
    Prashant.

    To clarify:

    -You can patch your 10gr 3 original WLP (10.3.0.0) install the 10.3.1.0 patch level that is the patch of UCM VCR adapter.
    -On delivery only the most recent version of WLP isavailable, which is currently 10.3.2 - who owns the card already included in the installation.
    -If you want to continue your 10.3.0.0 patch original install to 10.3.1.0 you can do it, but you will need to contact support for patches or use smart update client and apply the fixes mentioned in the documentation for 10.3.1.0.

    Marcus

  • WebLogic portal 10.3.2 sample domain admin console question

    I use the domain example bundled with WebLogic Portal 10.3.2 for some tests. I'm trying to access the admin console, can someone tell me how to find the username and password to access the console? I thought that weblogic/eu1 was the default.

    Thank you

    The password for the user of weblogic in the WLP 10.3.2 domain example is "webl0gic" (note the use of zero the password).

    Brad

  • Authorization and authentication external Weblogic Portal

    In our project we use Weblogic portal 10.3 and Oracle 11 g as a backend. During the creation of the field, I specified Oracle as backend. All schemas relevant portals are created in the Oracle database. For our application, we created a specific schema. In a specific scheme of project, we have the table user containing fields like username, password, e-mail, and other relevant areas. How to configure in weblogic to access this table for authentication instead of the user portal schema table? As well as I need to know, in a console of Directors if a new user is created, and then details will be stored in a table schema portal or a project schema user table? In the end, I want to configure specific project table to store the information of the user when the user created through the administrative console.

    It's urgent.

    Hi Renon
    Basically, you need to authenticator custom to store and authenticate all your users to your own specific Tables DB (with information from the user). For this you need to develop custom authenticator. Please note that this has nothing to do with the portal. It's core weblogic security stuff. I have compiled a few links for you. Incase if Oracle Support, open a ticket with them have Oracle support work entirely custom authenticator sample of RDBMS that stores and authenticates users of specific set of custom tables. They will send you immediately. I hope that someone in these forums can have this example also in their personal blogs/forums.

    And, Yes, you can force your custom authenticator to be one by default and to store users when you create new users in the administration Console. Essentially, when you create new users, you should see the option as to create users in what way authentication provider.

    http://download.Oracle.com/docs/CD/E12840_01/WLS/docs103/dvspisec/ATN.html (authentication providers)

    http://download.Oracle.com/docs/CD/E12840_01/WLS/docs103/dvspisec/ATN.html#wp1145342 (do you need to develop a custom authentication provider?)

    http://download.Oracle.com/docs/CD/E12840_01/WLS/docs103/dvspisec/ATN.html#wp1089150 (how to develop a custom authentication provider)

    http://download.Oracle.com/docs/CD/E12840_01/WLS/docs103/secmanage/ATN.html#wp1204261 (by changing the order of authentication providers)

    Thank you
    Ravi Jegga

  • How to get the object request or session in action jpf in WebLogic Portal 8.1

    I am using WebLogic Portal 8.1. I want to get the parameters of query/attributes in the flow (jpf) page controller action method. Can someone help me how to get objects session or request to the page (CCP) flow control.

    getRequest() (inherited method gives extended request)
    ScopedServletUtils.getOuterRequest (scopedRequest) gives the main query

  • IPC using mower portlet

    Hello

    All those put implement IPC using mower portlets? My problem is a bit like the problem described in [this thread: http://forums.oracle.com/forums/thread.jspa?threadID=965532 & tstart = 0].

    Let me try to explain the problem: we have an existing j2ee web application running on wls 9.2. This application is used its pages in 2 sections, a header (which has navigation tabs), then the content. We used 2 mowers - a cutting of the tab header menu (lets call it the portlet header) and the other for the body content (lets call it the portlet content from body). 2 portlets are available on the same page of the portal. Now, when a user clicks on a tab on the mower header portlet, should refresh the entire page and the content portlet body mower should be used as the content of the link clicked in the header portlet.

    I understand the way it would be to generate a custom event by clicking on a link in the portlet header and have a handler in the portlet body listen to the event, retrieve the event payload (that would be the url of the clicked link) and then cool off with the content of the link clicked. It is somewhat similar to the approach described by Kevin forum user in the other thread.

    I know how to listen to an event in the portlet body and attach a method in an event handler and al. What I need help on is to understand the methods of life cycle in the backup file of the header portlet where I need to get this custom event. I have tried to create a generic portal (onRefresh) event and attached a handler who listens to its own instance only (as a test), but the method of backup file never take a shot even if the page refreshes with the new clipped content.

    Thank you for taking the time to read this post.

    see you soon,
    RAM memory.

    Hello Ram,

    The best way to check if the initial state for the Clipper portlet has been set would be to put the following code in your backup file event handler method:

    com.bea.netuix.servlets.controls.portlet.backing.PortletBackingContext pbc =
        com.bea.netuix.servlets.controls.portlet.backing.PortletBackingContext.getPortletBackingContext(request);
    com.bea.netuix.servlets.controls.application.backing.DesktopBackingContext dbc =
        com.bea.netuix.servlets.controls.application.backing.DesktopBackingContext.getDesktopBackingContext(request);
    String portletLabel = pbc.getLabel();
    String desktopLabel = dbc.getDefinitionLabel();
    String sessionKeyName = "clipperState:::" + desktopLabel + ":::" + portletLabel;
    javax.servlet.http.HttpSession session = request.getSession(true);
    Object clipperState = session.getAttribute(sessionKeyName);
    

    -the variable "demand" must be the HttpServletRequest object. If the variable 'clipperState' at the end is not null, the clipper portlet has been initialized and you devriez be able to put the remote URL using the ClipperHelper API, unless something I messed up with the classpath by putting pots patch directly in your WEB-INF/lib directory. If "clipperState" is null, then the initialization is not happened for a reason, and we can explain the NullPointerException you get when you call the ClipperHelper API - although we would still need to understand why initialization has not yet happened.

    Kevin

Maybe you are looking for

  • To unsubscribe from apple's music

    How to unsubscribe from Apple music composition?

  • Hinges on satellite Pro 4600

    I need to replace a hinge broken on the cell above.Did anyone here know where I can get one? I tried searching google etc, but nobody seems to have in stock. Any help would be welcome.

  • Sound playback

    Hello I'm ringing playback from a dataset in tiara.  Given my layout view tiara which consists of two video windows synchronized to a curved 2d graphics, I see that the sound icon is disabled.  The data loaded into the graph of 2d consists of 8 data

  • HP Pavilion p6710f: Question of compatibility before panel connectors

    Hi, I decided to build a new office and reuse my old HP pavilion case. So, my question is whether the connector on the front panel of the case is compatibile with the Panel on my new motherboard header. My motherboard is ASRock B150M Pro4s. Thank you

  • How to upgrade my motherboard?

    I am completely new to the game on PC and recently have an incredibly heinous error which I think is related to my motherboard. I'm not sure exactly how to... I have an Asus CM5675