Add the project to remote portlets as a shared library in another project

Hello

We are working on WSRP. We have producer such as Websphere and Weblogic (ver 10.2) consumer.

We created a portal (WsrpEar) EAR & portal (WsrpWeb) Web project and then consumed all the remote portlets for Websphere. The "producer" created during this process is 'MyProducer '. This project has no other all local portlets. In this "WsrpWeb" project we do not have a file ".portal. The reason is that we want to EXPORT this project "Web portal" alone as a '. '. WAR"file (WsrpWeb.war), and then add it as a shared library in our application MAIN WEBLOGIC PORTAL (MyProjectEar & MyProjectWeb).

We could do all this stuff. Once the war (WsrpWeb.war) is added as a shared library in the main application, we could see the remote portlets under "Available Portlets" from the main application. We could even drag it and drop it on the main ".portal' of application file. But when I ran, he throwed an error like below:
-----
{color: #ff0000} The source of this error is:
com.bea.wsrp.consumer.management.producer.ProducerManagerException: producer with handle {color} [{color: #ff0000} MyProducer {color} | http://forums.oracle.com/forums/] {color: #ff0000} in webapp {color} [{color: #ff0000} MyProjectWeb {color} | http://forums.oracle.com/forums/] {color: #ff0000} does not exist. {color}
-----

He is looking for the handful of producer in ' wsrp producer - registry.xml "of the main application (MyProjectWeb). But here we do not have an entry because we are consuming remote portlets directly from shared library and the shared library has a file of "wsrp producer - registry.xml" who did the handful of producer entry.

When I manually added the entry handle producer in the ' wsrp producer - registry.xml ' main, as application below, remote portlet executed successfully.

& lt; wsrp producer handle = "MyProducer" & gt;
& lt; Description / & gt;
& lt; seller / & gt;
& lt; initCookie requires & gt; perGroup & lt; / initCookie requires & gt;
& lt; requires registration & gt; false & lt; / requires registration & gt;
& lt; - service URL & gt;
& lt; WSDL url & gt; [http://xxx:yyy/wsdl/myservice.wsdl] & lt; / wsdl-url & gt;
& lt; / service-URL & gt;
& lt; / wsrp-producer & gt;

(xxx and yyy here are the host name and port # producer websphere).

Anyone can guide us on this? Is he referring to also make an entry in the ' wsrp producer - registry.xml ' main application or is there any way?


Thank you
ANU

Published by: user10826720 on January 29, 2009 06:36

Published by: user10826720 on January 29, 2009 06:38

Hello Anu,

The file WEB-INF/wsrp-producer - registry.xml (normally created by the IDE) and the database tables (normally created through construction Administration Tools) are the only two places where WSRP producer is stored for a consumer WSRP WLP.

So, yes - you can add this file (or an entry in this file) in your web application, or the other possibility would be to create your own code that calls the ProducerManager API to implement the producer when the webapp deploys first of all to a new server to boot. You could make this code look in what that are the configuration files you wanted to, but I don't think it would be easier to just put information in wsrp producer - registry.xml.

Thomas

Tags: Fusion Middleware

Similar Questions

  • Add the project of sample problems-specific classes

    Hallo!

    I'm sorry - I think it's a very stupid question, but after two days of googling and asking a colleague who has experience with C++ (which I did not...) I can't know what I'm doing wrong.

    I use in a clean project, some (reduced) categories of a sample application (the cat of SPP) as a basis for my application. This works as expected.

    But when I try to call a constructor of a custom class, I always get a ' conversion of ' TestClass * "no scalar of type"TestClass"requested" or error "undefined reference".

    (ChatManager.cpp)

    First error:

    void SPPThread::run()
    {   // conversion from 'TestClass*' to non-scalar type 'TestClass' requested
       TestClass test = new TestClass();
    }
    

    Second mistake (after searching on Google, the first error and find this "solution"):

    void SPPThread::run()
    {
       TestClass* test;
       test->process();     // undefined reference to `TestClass::process()'
    }
    

    TestClass.hpp:

    #ifndef TESTCLASS_HPP_
    #define TESTCLASS_HPP_
    
    class TestClass {
    public:
        TestClass();
        virtual ~TestClass();
    
        void process();
    };
    
    #endif /* TESTCLASS_HPP_ */
    

    TestClass.cpp:

    #include "TestClass.hpp"
    
    TestClass::TestClass() {
        // TODO Auto-generated constructor stub
    
    }
    
    TestClass::process()
    {
    
    }
    
    TestClass::~TestClass() {
        // TODO Auto-generated destructor stub
    }
    

    The TestClass.hpp file is included in the ChatManager header.

    I also tried being a Q_OBJECT TestClass but with the same result. My colleague and I suspect strongly that TestClass is found by the compiler/linker, but why?

    Does anyone have an idea?

    Sorry if this is a stupid question - I am new to the development both BlackBerry10 and C++, but you have to start somewhere, not you?

    -Answered my own question (is it just me or the answer always comes, when you post your question on a forum?).

    I created an empty Test Cascades in QNX Projekt and added a class. I don't have the "undefined reference" error, when you create a new instance or call a method of that class.

    I then compared this Test and my project project .pro files and found a single line, what was missing in my project:

    include(config.pri)
    

    I don't know yet, why the sample application (which I copied the .pro file) didn't need this, but of course I need, when I want to add more classes (no QObject)...

    With this, it works:

    void SPPThread::run()
    {
       TestClass* test = new TestClass();
       test->process();
    }
    

    Not sure by now why I have to use a pointer (as I said - I'm a beginner C++), but maybe I'll find out...

  • Task remote Flow and a shared library

    Hi Expert,

    Could you please tell me the difference between the remote call task flow and using the shared in performace propective library.

    If we use remote task flow, then there will be less dependecy from other project which has never want to use streams of task remotely... just give the URL and shared input parameter. I'm not sure how to call the remote task flow in a dynamic region. We do not want to use af:iframe as there is a lot of problem with leaking memory in the browser... Oracle does not recommend to use the iframe...

    Appreciate your help.

    Thank you

    Naresh Garg

    We already use af:iframe to call the remote task of flows in a couple of tab in a single Application. Somehow we get the problem by making the taskflow distance when visted repeatedly in different-2 tab in the fast. As directed by the team of Oracle's Support, do not use af:iframe to call the remote task flow.   So looking for solution to avoid the use of iFrame pages. as the dynamic region call...

    I just found a link to TaskFlow remote...

    Note: this distance task flow calls must be made from a delineated stream or unbounded task high on the page of the calling application. If called from a region (using the call parent activity) in a page, the State of the region is not recovered on workflow performance.

    The ADF developers have recently identified task flow remotely like an architectural model to partition their application of ADF in independently deployed Java EE applications. Although it looks like a desirable use of the remote task workflow capability, it is not possible to reach for as long that remote task flow return as a region of the ADF.

    Thank you Tim for quick response.

    Thank you

  • Cannot get Windows 7 homegroups to work properly. Double-click a shared library on another machine in the residential group doesn't.

    I just bought a new laptop with Windows 7 on it, so I decided to try the new homegroup in Windows 7 feature.  I activated the homegroup on my desk and apart from the music, photos and videos.  I then joined the residential group with the new portable computer using the password provided by the office shared libraries and the same 3 homegroup.  All appeard to put up correctly, but I can't browse libraries shared each machine to other machine.  I have the Homegroup and click on the other machine and I see 3 libraries, but when I click on any one of them does nothing.  This happens on both machines.   The only way I can get the residential groups to work is to first go to the other machine and provide credentials on the other machine.  After doing this, the homegroup files begin to work.  I was under the impression that the homegroup password was all I had to have access to all shared folders with the homegroup, but the only way I can get the homegroup to work is first authenticate itself to other machine using a user name and password.

    The two machines are configured with the following:

    • Network discovery is enabled
    • File sharing and printer is enabled
    • Public folder sharing is on
    • Streaming Media is on
    • File sharing connections is configured to use 128-bit encryption
    • Password protected sharing is on
    • Homegroup connections is set up to allow Windows to manage.

    I came across this forum because I had the same problem today. Real quickly, I have two laptops, one running windows 7 Home premium 32-bit and the other runs windows 7 Professional 32-bit. I have comcast for my internet provider and their cable modem attached to my belkin wireless router. I don't know if my fix will work for someone else, but it worked for me, so this is.

    1. unplug the router cable modem wireless
    2. connect the router to one of your computers using an ethernet cord
    3. open a web browser and type in the IP address of the router in the Web page bar (as when you type hotmail.com to go check your email). Mine is a belkin so 192.168.2.1 has worked for me.
    4. the control of the router page should open, and one of the options should be to reset factory settings, do this.
    5. DO NOT CONNECT THE ROUTER TO THE CABLE MODEM
    6 configure the router in the same way that you did when you first installed the router, but just to be sure, I used another name for the network
    7. Once you have the password set up and named network you can disconnect the ethernet cable.
    8. connect to the new network without wire of each computer (just like when you connect to a wireless network) choose House (rather than work or public) for the network location.
    9. at this stage my homegroup didn't work, if it is not there for you, you may need to set up the homegroup in Control Panel.
    10. once the residential group is working the way you want to connect the router wireless to the modem cable and check to see if your internet connection is working by opening a web browser and go to any old site
    Hope this helps!
    Cameron
  • How to add _LARGEFILE64_SOURCE to the project?

    I'm on a project that does not allow me to add

    DEFINES += _FILE_OFFSET_BITS = 64
    DEFINE _LARGEFILE64_SOURCE += = 1

    in the .pro file.  The IDE auto generates the config.pri

    I tried to add the project properties defined in the paths and symbols but my application does not always scan all files on the sd card.  What gives?

    In other projects, all I do is just add to the .pro file and it works.

    Too bad. I just had to add to the .pro file.  Arggg

  • Native extension using the shared library

    Hello

    IAM trying to create an extension which will be used in cordova, well the work of foundations... but what I have to do is add a shared library from another company for my project.

    They have a folder with all the files of all and a .so file, how can I add to my project and use it in the extension?

    Thank you.

    You start with the model BB10-Cordova?

    https://github.com/BlackBerry/WebWorks-community-APIs/tree/master/BB10-Cordova/template

    You should be able to add the library to the project using the Add Library Wizard in project-> generation properties C / C++-> the settings-> the tool parameters

    Note: It is recommended that you back up your project first.

  • to access the pots through the class-path to the manifest of a shared library.

    I have a large number of pots that are used by the J2EE applications and stand-alone (client) applications.

    I like to keep only one copy pots on the drive (for example, in a myLibraries/lib directory).

    Is there a way I can create a shared library with the Class-Path entry in a manifest that points to the jar files in the myLibraries/lib directory? (If Yes, which? the ear of shared library manifest, the manifest of a pot of "module" in the ear of shared library or the manifest of a pot within the APP-INF/lib?)

    Otherwise, it seems that I have to include copies of these pots in the EAR of my shared library application.

    Thanks in advance
    Mike

    Mike,

    I guess that it may be possible to refer to the pots where they are already using a manifest, but this isn't how I saw. If you look at weblogic.jar, it's META-INF/manfiest.mf uses references to other module pots. However, you're talking as if you want to do something more absolute path. Why not consider the following which is more standard...

    To use a pot as a shared library or optional package, study it:
    http://download.Oracle.com/docs/CD/E14571_01/Web.1111/e13706/libraries.htm#i1070930

    Basically, make sure that the jars you want to be a shared library have a manifest file which specifies the extension name, spec, and version impl.

    For example. Let's say you have myExtension.jar - inside there should be a META-INF/MANIFEST. File MF that looks like this:
    Name of the extension: myExtension
    Specification-Version: 2.0
    Implementation-Version: 9.0.0

    Deploy this jar in a WLS library.

    Second, depending on which classloader you want to access in the container, make a reference to the optional package. For example, in the EAR that you want to access this pot, change META-INF/MANIFEST the EAR. MF so that it looks like this:
    List of extensions: myExtension
    myExtension-Extension-name: myExtension
    myExtension-Specification-Version: 2.9
    myExtension-application-Version: 9.0.0

    You can also reference the style jar libraries in weblogic application. The EAR like this XML:

    ...

    myExtension

    ...

    Note that the library-ref above referring to a jar approach does not work for applications packaged as WAR files and editing weblogic.xml, you must use the obvious approach for the web module archive jar base shared libraries reference.

  • Cannot add any portal pages, a portlet to my portal project

    Hello world

    I created a project of portal in Workshop 10.3. The target framework's BEA WebLogic Server 10.0.
    When I try to add a new portal, Portlet, Page or any other component related portal, he said "*"MyPortal"project is collecting not a valid portal.

    The project is deployed with the files of the Portal works correctly. Y at - he of the configuration files that I missed to set if this workshop does not think that the project is a project of Portal? Could someone give me a hand on this subject? Thank you very much!

    Unfortunately, it is necessary for the workshop version, WLP server and projects workshop phase for all WLP works correctly.

    Greg

  • Photos - project - want to access album photos to add to the project that has already started

    I have taken two different albums in photo I want to use as sources for my photo book.  (I tried to combine and Photo won't do).  I started the project and now can't access the albums to add these photos.  All I can do is photos by date.  Can anyone help?

    No idea of what you are seeing or doing

    the easiest way to use Photos IMHO is to show the sidebar (menu display ==> see sidebar) - then open the album you want to use and drag the photos of the project at the bottom of the sidebar

    LN

  • Add external Python DLL to the project setup

    Hi all

    I have a Setup program, but can't seem to add a python DLL. There's that VI s that use the DLL, but for some reason, the project does not add the python DLL. I tried to do the project > add to the project, but that allow you to add files randomly, just of Labview files. Not sure why it is so restrictive.

    Any help would be appreciated.

    Thank you

    I thought about it. If you go to work in the project that lists, right-click the add menu has more options. Cordially for someone else.

  • can not see Add targets and devices in the Project Explorer

    Hello!

    I think I have a strange question. I have the evaluation version of Labview 2010. I am trying to add my cRIO 9004 to a project. I'm just trying to follow the instructions in the getting started with manual cRIO. It is said, add crio to the project by project root right clicking and selecting NEW > ADD TARGETS AND DEVICES. The problem is I can't see the link to the NEW, but once I click that I see not a link under "add new target or device" appear, instead, I see the dialog box to open a NEW FILE LABVIEW appear. everywhere in distress forum/basic knowledge/support of shooting and get started articles have mentioned project root right click > select NEW > select Add a target or peripheral >, as if she IS supposed TO APPEAR STANDARD in all new projects! But I'm not! I do not understand what Miss me. The version of software that I have are below:

    the cRio:

    OR VISA 5.0

    NEITHER RIO 3.0
    RT LV 8.6

    and he allied himself with what I installed on my host.

    I can communicate with the device of cRIO times using MAX as well as ping at the windows command prompt command.

    Any help would be great!

    Thank you!

    Rajesh

    After you have installed the evaluation version of LV 2010, you reinstall all of the other drivers, as for the cRIO?

  • Dummy question: add several files to the project to JDE

    Hello

    I try to use JDE (standard single application, not the eclipse plugins).

    I try to search through all the menu of this software and I can't find a way to add many source files in a project. I can only add a single file each time with "add a file to the project feature.

    I create a project in Eclipse plugin with a large amout of source file, and I want to import in to the JDE environment (for testing with the component pack 4.2).

    Is there a good way to do that than to add a single file to add the file to the project feature?

    Thank you

    You can copy the jdp (project) of your plug-in in eclipse. Open it in a text editor (notepad ++ for example) and change the paths for source files, if necessary.

  • Add a bin to sand content in the project and recompile

    Hello.

    Is it possible to add the content of the bin to sand in the project and recompile it? If so, how?

    Thank you.

    Best regards, John

    Yes it is possible with the help of the merge of ferry command to sand (sbmerge).

    Read this on how to use it:

    http://blogs.VMware.com/ThinApp/2010/02/simple-steps-for-using-sbmerge.html

  • You cannot use a remote location like a cache of the project folder.

    I get this message when you try to activate SCORM in my project, how can I publish?

    You cannot use a remote location like a cache of the project folder. Please enter a valid address to continue.

    Any ideas are appreciated!

    Hello

    Can you check edit > Preferences > General settings.

    and check the location of the cache folder and the project preferences.

    This location by defalt is: C:\Users\ user\Documents\Adobe put Captivate cached ongoing projects

    Please check this and respond

    Thank you.

  • How to add the Web site project?

    I finished my project in Beta 2, but impossible to find tutorials on how to actually add it on my site...?

    Can someone please explain the difference between 'deploy to the web' and 'run-local' files (when using either, or) and also tell me how to add my project in my Dreamweaver site?

    Thank you!

    Hey!

    So it depends on what you mean by "a component.

    Do you mean the project created in the catalyst file consists of a component (interactive map) and you want to paste only specific somewhere within your site?

    You can embed the swf file from the Deploy folder Web as much as you would like in your site (main.swf, ignorant main.html).

    You will still need to copy all the files of deploy on the web, to ensure that your assets and others get lost along the way.

    This thread should help in this case: http://forums.adobe.com/message/2449721#2449721

    Is that what you're looking for?

    If not, let me know

    Thank you

    Tara

Maybe you are looking for