Portlet - PERL communication

Hi all,
We are developing a portlet which has to access a perl module. For the portlet-perl communication which one of the below will be better.
1.Using JCA adapter.
2. Using JMS.
3. Using SOAP messaging.
4. Using CORBA.
Regards,
Muthu.

Hi oli,
as concerns the piece of code:
Runtime.getRuntime().exec("perl
d://perlscripts/konverta1.pl");
I used a different syntax:
Runtime r = Runtime.getRuntime();
Process p = null;
try
p= r.exec("c:\\windows\\command.com /c C:\\Perl\\bin\\perl C:\\myPath\\myFile.pl"); (one line)
catch (Exception e)
JOptionPane.showMessageDialog( null, "Error!!!!");
and it works well under windows 98!
Good Luck!
Marina

Similar Messages

  • Inter portlet comminication ?

    Hi
    Does anyone know how to establish communication between two (pageflow) portlets ?
    Of course you can use session. But I'd like to use custom events instead. Or any other way that is considered "right".
    The docs says nothing about how you fire these events and how you listen to them. They only mention portal events (like minimize etc).
    Thanks
    MP

    Hi
    there are atleast 3 ways
    a. Use ScopedServletUtils.getOuterRequest() and use it to set and get attributes. So you can set attributes in one pageflow and get them in another
    b. Use the Listen To attribute in the portlet(Deprecated now i think)
    c. Use the Event Handler methods(sp4+). Note that you can handle pageflow action and choose your own pageflow actions as the handler from the available actions
    I use a. when i want to be independent of which portlet im communicating with , use c. otherwise
    Lookup PortletEvent and PortletEvent.Manager for events and how to fire them. I havent used this myself but i think there was some docs in weblogic portal framework whitepaper
    HTH
    deepak

  • Is there any list for out of the box portlets that come with portal installation.

    Is there any list for out of the box portlets that come with portal installation?
    Ramesh

    Yes - it's in the online help, on the Learning About Your Portal : About Portlets page. Here is the content:
    Portlets Created Upon Install
    The following portlets (and their necessary portlet Web services and Remote Servers) are created when you install the portal:
    Folder Expertise:This portlet displays the list of folders for which the user is an expert. It is added to the User Profile page by default.
    General Information:This portlet displays the default Profile Page. It is added to the User Profile page default.
    Managed Communities:This portlet displays the list of communities managed by the user. It is added to the User Profile page by default.
    Portal Login:This portlet allows users to log in to the portal. You probably want to add this to the guest user's home page so that users can log in from the default page displayed when they navigate to your portal.
    Portal Search:This portlet allows users to search your portal and access their saved searches. Users might want to add this to their home page for easy access to their saved searches.
    The following portlet templates (and any necessary portlet web Services and Remote Servers) are created when you install the portal:
    Community Links:This template is used by the portal to create portlets that display the links saved in a Community Knowledge Directory folder. To learn more about Community Links Portlets, see Community Links Portlets.
    Content Snapshot:This template is used by the portal to create portlets that display the results of a Snapshot Query.
    You can also install the following functionality as part of the Optional Enterprise Web Components:
    [url[/url]Stored Content:This portlet template allows you to create portlets that display stored content that is periodically refreshed. You might use this type of portlet to display content that is resource-intensive or takes a long time to generate. To learn more about Stored Content portlets, see Stored Content Portlets.
    [url[/url]XML Source:This portlet template allows you to create portlets that can collect XML content from an external source and display it in the portal as HTML. To learn more about XML Source portlets, see XML Source Portlets.

  • Perl module install noob question - Solved

    hello everybody,
    i've been away from the *nix world for some time now, and there are some things i remember better than others.
    atm i am trying to install perl-term-readline, as it is a dependency for the metasploit framework - although i am surprised that package isn't already installed, as it belongs to the core modules group (that means the module should come with every perl install) if i recall correctly.
    This is what i have tried so far (i read some perl wiki page and this is what came up):
    [root@Omega /]# pacman -S -f perl-term-readline
    perl-term-readline: not found in sync db
    where do i have to look for that module?
    -Southern_Trendkiller
    Last edited by Southern_Trendkiller (2007-02-05 11:42:42)

    I have tried that already, without luck.
    This is what i get:
    [root@Omega ~]# pacman -Ss perl-term
    extra/perl-term-readkey 2.30-1
    A perl module dedicated to providing simple control over terminal driver
    modes.
    community/perl-term-progressbar 2.09-1
    Provide a progress meter on a standard terminal in perl
    community/perl-term-read-password 0.07-1
    lets you ask the user for a password without echoing
    perlcpan/perl-term-progressbar 2.09-1
    Term::ProgressBar - Progress bar in just ASCII / using Term
    perlcpan/perl-term-ui 0.14-1
    Term::UI - No description provided by CPAN
    perlcpan/perl-termreadkey 2.30-1
    Term::ReadKey - Read keystrokes and change terminal modes
    [root@Omega ~]#
    thanks for your reply anyways

  • EmployeeSearch Portlet Problem

    Hi, I am trying to install those three portlets in Community Contribution. The first one, Calendar Portlet is O.K. But after installing the second one, EmployeeSearch Portlet, I got the following error when I tried to run it:
    "Request URI:/EmployeeSearch/code/EmployeeSearch.jsp
    Exception:
    oracle.jsp.parse.JspParseException: Line # 20, Error: Unable to find class for bean: dataBean defined by tag with class: employeesearch.SearchBean".
    I checked everything and all the .class file and .jsp file are in the same directory.
    I appreciate your help!
    Young

    Young,
    Compile the java files by running the command : javac -d . *.java
    This generates SearchBean.class and ConnectionParams.class within the directory employeesearch.
    Restart the HTTP Server listener.
    Hope this helps
    Pushkala

  • Community Preferences Issue

    I placed a portlet in my community and I clicked on the add button to add a key, value pair, nothing seems to happen. No error code, nothing? Can you tell me what do I need to set? I defined web service and it renders fine on the portal (5.x). What else could I be missing?
    PS. I tried this with Community and CommunityPortlet setting in my code and still it does not work. Below is the code for the ADD button that user would click on after entering the NAME and Value into text fields in the form.
    protectedvoidButtonAdd_Click(objectsender, System.EventArgs e){// Get the portlet context object and request/response objectIPortletContext PortletContext = PortletContextFactory.CreatePortletContext(Request,Response);IPortletRequest PortletRequest = PortletContext.GetRequest();IPortletResponse PortletResponse = PortletContext.GetResponse();
    stringstrName, strValue;strName = TextBox1Add.Text;strValue = TextBox2Add.Text;
    //Update the pref value with the posted valuePortletResponse.SetSettingValue(SettingType.CommunityPortlet, strName, strValue);// Return to pageResponse.Redirect(PortletContext.GetRequest().GetHostPageURI().ToString());}
    Thanks

    Since Community preferences are shared between portlets, there is the danger of one portlet overwriting another portlet's community settings. Hence there is a setting on the Web Service object where the administrator must set specific Community Preferences to send to each portlet; these are also the only Community preferences that that portlet can set.
    CommunityPortlet preferences do not have this restriction, since they pertain to only one portlet (within only one community).
    The Enterprise Web Development Guide goes over this in detail.

  • Portlet Header controls (edit, preferences etc)

    Hi,
    Wanted to confirm some behaviour I am experiencing and wanted to know if there is a workaround for it.
    I am working on a page at the moment that has serveral portlets (custom and out of the box). As an admin I can see some small icons on the top right of the header of any given portlet, these icons give me access to the 'Edit Portlet' and/or 'Portlet Preferences' features.
    I want to provide community managers access to the Edit Portlet feature however there doesn't seem to be a way of doing this - it's either or (i.e only and only admin's have access to this feature).
    Anyone know a good solution to get around this or point me in the right direction in case I missed something.
    Thanks in advance,
    Tahir

    It depends on the type of preferences you want them to have access to. Off the top of my head, you have Admin Prefs, Portlet Prefs, Community Prefs and User Prefs.
    Each of these requires different levels of access. For our intranet, we usually seperate them into community prefs and admin prefs. I set the admin prefs for everyone on the portlet and the content managers have Edit priveledges on the portlet and community so they can edit the community preferences.
    If you want everyone to be able to edit preferences, then I would say that you are interested in User Preferences. For this, you would have to write your portlets to support this and change the display according to the User Prefs. You will need to setup the User Prefs page on the Web Service for the portlet.
    I'm sure a BEA ALUI rep could probably answer this a bit better than myself.

  • Displaying a page in a particular region

    Hi
    We have several tabs for different pages. One of our tabs is "Inofrmation and resources" within this page we have a region on the left handside with a list of departments within the company. I'd like to be able to open a new page within the right hand side region of this page depending on which department you click on.
    I've tried to create seperate pages but when these open we loose the tabs at the top. I dont want to be recreating the tabs on all the different pages we create.
    So my question is how can I display a page within a particular region depending on which link is clicked?

    Hi Neil,
    How about having two portlets inter-communicating with each other ... Did you have a look at the Site Indexing Portlet available on the Portal Integration Solutions site (http://www.oracle.com/technology/products/ias/portal/point.html) ?
    thanks,
    Harsha

  • SQL (Injection) Vs Flat File TXT Vs XML (XPath Injection) For Database.

    I will have to deal with robust login sessions so I need some advice on what type of database and language I will use.
    PHP and MySQL is the choice but I hear that flat file TXT are more faster so I am thinking about Perl.
    Perl is very flexiple and have many advantages but why do many folks use PHP.
    SQL and XPath injection are becoming more frequent plus MD5 and SH512 have been cracked by some angry folks.
    The Perl community is becoming very small so it will be difficult to receive support if I have a specific problem.

    In our projects we are extracting SMS messages and
    based on the
    MISDN (Telephone number) of each SMS we are fetching
    the corresponding
    account information (server name and password) from
    the database through (connecting through)
    webservice.The data is stored in the DB which you are accessing through a webserivce and that's too slow and unreliable so you are caching the results in a text file...
    That's horrible. The party responsible for the webservice should be fixing it or you should rethink the architecture. All this extra complexity and basically it's just causing problems for you. You'd be better off just accessing the DB directly. I assume this is possible since you know there is a database. In a good SOA architecture, you should not know or care about where the data is persisted.
    This webservice connection is slow/unreliable so a
    local copy of the
    MISDN number and corresponding account information
    are stored/updated in flat files tp prevent repeated
    accessing through webservice.
    My question is-which will be faster for accessing,
    using txt file or xml or a different format.I don't think it's going to matter much at all for the numbers you site, unless you are running this on a 20 year old PC or something.
    But I think you are addressing the wrong problem.

  • Quick Links in plumtree

    HI All
    Can anyone plz tell if it is possible for a portlet user to add quick links to the portlet i.e. user should be able to add any URL(This is a MYFavourite links portlet). I want to do this using out-of-the-box features of plumtree.
    An early response will be highly appreciated.
    Thnx

    A "my" links and a "community" links portlet are two portlets that are very easy to implement using Portlet and Community Portlet settings, respectively.
    In fact, to this day, we still use the my and community links portlets as a training exercises in our IDK courses.
    If you want to contact me offline, I can just send you some source code that may find useful. It won't come with support, blah blah blah, but you're welcome to use it as you wish.
    HTH,
    Chris Bucchere | bdg | [email protected] | http://www.bdg-online.com

  • Like a regex, but readable?

    Not to raise the ire of uncle_alice, but try as I might to read regex
    tutorials, any sufficiently long regex pattern string is indistinguishable
    from magic to me. It's unreadable.
    So I'm wondering if code that step-by-step constructs a regex object,
    without resorting to string symbols, would be more comprehensible?
    Are there any example of this being done in any library? Or should I
    just drink the Kool-Aid?

    Actually, I agree: regexes cram too much meaning into too few characters, and end up looking like chicken scratch. Also, they were originally designed to match "regular" grammars (whatever they are), while we usually use them on non-regular grammars like natural languages, programming languages, HTML, etc.. Thanks to that impedence mismatch, some tasks that are conceptually simple are difficult to perform, if not impossible.
    Trouble is, there's nothing else out there that's as powerful, general, and convenient as regexes. The only thing I know of that could completely replace regexes is a parser generator like Antlr or JavaCC, but those are way too heavy for most tasks. There are projects, like the two listed below, that try to make it easier to generate parsers, but they still lose out to regexes on the convenience front.
    http://bnf-for-java.sourceforge.net/
    http://jtopas.sourceforge.net/jtopas/index.html
    I'm afraid the only thing that's going to be able to supplant regexes are better regexes, like the ones the Perl community is working on:
    http://dev.perl.org/perl6/doc/design/syn/S05.html
    But Ipthar help the schmuck who gets the job of shoehorning those into Java! ^_^

  • Behance Ask a Pro Webinar this Friday

    If you never attended one of the free Ask A Pro webinars, you should start this Friday the 2nd at 12 PM PT with "Take your work from the cloud to the community with Behance" Presented by: Mell Perling, Community Manager on Behance where you will discover many aspects of this pillar of Creative Cloud, and how to use it to showcase your work!
    http://www.adobe.com/cfusion/event/index.cfm?event=detail&id=2008488&loc=en_us&sdid=KAYFJ

    Mordy Golding (Real World Illustrator books) had a little info about the 64bit rewrite of Illustrator here:
    http://rwillustrator.blogspot.com/
    Scroll down to: "Illustrator CS6 is 64-bit; What does it mean?"

  • Locating jni.h in a sensible manner

    Hi!
    I'm working on a project that has to use JNI. (I say that to ward off the people who will helpfully suggest that pure Java is better... sorry, not an option)
    Currently, I'm using autoconf/automake to run the project, which is working fine. But in an attempt to be more Java community friendly, I was wanting to move the build system to use ANT. The problem is, there doesn't seem to be any (sensible) way to determine where jni.h lives.
    Is there a magical property that contains this information anywhere? Python's setuptools and Perl's MakeMaker seem to be able to help compile C extensions reliably in a cross-platform manner... is there no corresponding, standard way to do this with Java? If there isn't, where should I look or ask to add this ability?
    Thanks!
    Monty

    >>
    Not really. It is certainly acceptable to assume that someone that is going to compile something will have at least some experience in compiling and in general computer knowledge. So they can be directed to update a file.I'm not sure how to disagree with this without getting in to a "not really" back and forth. :) But in general, being someone who downloads and compiles things all the time, I consider any build system which requires me to edit files to be either 20 years old or unfinished. Or both. When working in a distributed development environment, editing build files with hard-coded file locations leads to people checking those paths in from time to time - thus the reason that most code that I see that is distributed in source form finds these things at configure or build time.
    And I can assure you that the most likely reason that has been your experience is because you have only experienced it in a limited way.
    I have encountered all sorts of build problems which can be caused by things like compiler versions, compiler set ups, compiler footprints, standard libraries, permission problems, etc.
    It is certainly easier when the target audience uses all of the same tools, same versions, same installs, same options, etc.
    But that is not guaranteed.
    However, this differs vastly based on JVM and on Platform (go looking on Mac OSX some time and you'll see what I mean) so the code gets sort of wordy. Sorry then you are approaching the problem with incorrect assumptions.
    First despite claims there is very little non-trivial java code that one can assume will work on all platforms without verifying via test. And certainly little C/C++ code that is so. And compilers most definitely are not.
    So you would need to test everything on all the boxes that you are claiming to support anyways.Right, but this isn't about testing the code for compilability. It's about being able to programmatically determine what the complete build environment is. Of course you need to test on platforms, but testing that something builds on a particular platform/compiler combination is not related in any way to where the appropriate headers files happen to be installed on that system or on that distribution. On Linux x86/Sun Java JDK5 alone you've got the situation where someone has installed via RPMs on RedHat, via apt on Debian or via self-installer binary package from Sun. All three of these put jni.h in different locations. But if there were a program distributed as part of the JDK environment that returned the filesystem path of the header files, then it would be quite trivial (as it should be) to add to the set of options to be used by the C compiler. This is all quite normal stuff. And what if I have a system that I want to build for all those? Or what if I am using a cross compiler?
    Not to mention of course that there is no such thing as "jni.h" as a standard. That is the way Sun does it. It doesn't mean that anyone else need do it that way.
    >
    And there are no standards in terms of how a VM must implement the way it runs and certainly not in the way it lays down itself nor how it sets up the environment.
    So based on your original question - it is impossible.
    Even if you wrote an installer you would still need to deal with all of the possibilities.I think I might be miscommunicating here. I guess my question now is - what do I need to do or where do I need to go to add some sort of program to the standard so that build systems can count on being able to discover necessary parts of the build environment?
    Well that is easier.....
    Based on perl (since I know how that one works versus python) the self compiler system was built up over years by a multitude of different people each of who had access to different platforms/compilers/environments. Over time that experience allowed the configuration system for perl to be set up such that when you laid down a component that required a C build that it would do it for you.
    That of course was necessary because perl by itself, without the add on libraries lacked a substantial amount of functionality. So there was quite a bit of incentive for people to do things like that. And the very wide usage of perl probably drove that multi-platform support more.
    Java of course comes with a lot of library stuff.
    However I suppose you could undertake doing that same thing for the java community. You might start with SWIG which might already encompass at least a primitive version (but I am just guessing about that.)
    And by the way, despite years and dedicated effort by the perl community individuals still have problems with the system (going back to your point that you never have problems.) And those problems are often compounded by the extreme complexity that needs to exist to support all of the possibilities. Thus when it fails it is much harder, even for an experienced programmer, to figure out and that is because it was made easier for so many.

  • Trying to get Perl Portlet example to work

    I followed the instructions on How to Build a PERL Portlet (http://portalcenter.oracle.com/pls/ops/docs/FOLDER/COMMUNITY/PDK/ARTICLES/HOW.TO.BUILD.PERL.PORTLET.USING.PDKURL.SERVICES.V2.HTML)
    When I put the portlet on a page, I get the "Perl portlet timed out" message. I know the server that is hosting the Perl script is working when I directly access the URL but the portlet continues to display the timed out message.
    Any ideas on getting this to work?

    Hi Irene,
    You can avoid this by increasing the timeout values that you specified at the following two places,
    - During Provider Registration, Go to Edit Providers & change the value
    - In the provider.xml file
    However, note that the timeout value specified during provider registration should be greater than the value specified in provider.xml file.
    Let me know if this works,
    Thanks & Regards,
    Abhinav

  • Returning to different community pages from remote portlet

    Hi,
    I'm trying to determine the options available if we'd like to a remote portlet on one community page to return to a different page within the community on post back. We're able to dynamically build out a redirect string using parts of the request's hostpage properties, but we know that the page id of the community will probably change between different environments (dev/staging/live). I understand that pages don't have UUIDs so that's out.I'm sure there are some kludgey workarounds like keeping track of the different pageIDs as preferences or an external file, but we'd like to do this the "right" way if possible so we don't have to separately maintain that info.
    Any help is appreciated, thanks!

    hi,
    i don't think producer can access consumer's backing contexts.
    but you can use backing files on the proxy portlets and retrieve desktop, page names in the backing file and pass the data to producer using custom data transfer technique. For further info, pl. refer to the below link.
    http://edocs.bea.com/wlp/docs81/wsrp/custxfer.html
    -sampath

Maybe you are looking for