Java Portal API to determine the proxy?

Hello,
I am writing a JSP-based portlet, using the Apache SOAP 2.2 implementation to access a web service, and I need it to be flexible enough to access that service through a firewall. So I need to be able to pass a proxy host and port to the SOAP HTTP connect object. Rather than hard code the proxy address or create a customization page for the portlet where the proxy has to be manually set, is there a Portal API to determine the proxy server that's been set through the main admin screens?
Thanks in advance,
Mike

I don't think there is a public API for this.
Instead of hard-coding the proxy, make it a parameter of your servlet. The proxy is not something that will change very often (if at all) so it is a fairly safe bet.
Using a servlet parameter also means that the proxy can be easiy changed if the installation is moved or the network is reconfigured

Similar Messages

  • Java Portal API

    Hi all,
    Could anyone suggest me from where can I download API for "JAVA
    PORTAL".
    thanks,
    chakri

    I don't think there is a public API for this.
    Instead of hard-coding the proxy, make it a parameter of your servlet. The proxy is not something that will change very often (if at all) so it is a fairly safe bet.
    Using a servlet parameter also means that the proxy can be easiy changed if the installation is moved or the network is reconfigured

  • Is there any Java Mail API to get the delivery mail status

    My requirement is to capture the delivery mail status that is being sent via my application. Is there any Java Mail API or any other way to do this.Kindly guide

    Yes, you can use the [UTL_HTTP Package|http://www.oracle.com/pls/db102/to_URL?remark=ranked&urlname=http:%2F%2Fdownload.oracle.com%2Fdocs%2Fcd%2FB19306_01%2Fappdev.102%2Fb14261%2Fpackages.htm%23sthref1930]

  • Newbie question on the Java communications API

    Hi All,
    I found the javax.comm extension package that lets me listen to the serial port of the PC, but am unsure as to how to use it. Well, I've tried running the SimpleRead.java program and I get an error message that says the package is missing in the import (which I assume means that I havent downloaded it and added it to one of the folders in my Java directory). Where can I find the package from? And am I missing anything else?
    In case you're all wondering, I've got a microcontroller attached to the serial port that sends data periodically. I would like to use the Java comm API to read the incoming data (and if possible store it in the form of a text file or something). Any suggestions would be great as I'm still new to Java. More of a C/C++ person (^_^) Thanks in advance.....

    Did you try using that little search field in the upper right hand corner of your browser?

  • Can you call a SAP java Portal Service from the Dot Net code?

    Is there a link to a document or snippet of code to call a customized Portal Service in a Dot Net code?

    Hi Steve,
      yes.,u can call a java portal service in .net.,the only thing what u need to do is to establish that portal service as web service and use that web service in ur code..
    Regards,
    Vinoth

  • Java JRE 1.7 & 1.8 is not detecting the proxy (TMG) server

    Hi ,
    We are using the windows 7 64 bit OS and JRE 1.7 and 1.8. The Java and eclipse running behind the proxy server.
    We are using Microsoft Forefront TMG client.
    We are trying to connect the maven / eclipse market place but its not detecting the TMG server.
    Up to java 1.6 there no error while accessing maven / eclipse market place. after upgrade the java we are facing the issue.
    Issue: I am unable to connect to Maven Repository(https://repo.maven.apache.org/maven2/....) when I use Java 1.7
    where as I am able to connect to maven repository when I use Java 1.6
    I used the windows command prompt.
    Got below message
    "[WARNING] Failed to retrieve plugin descriptor for org.apache.maven.plugins:maven-clean-plugin:2.5: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artif
    act descriptor for org.apache.maven.plugins:maven-clean-plugin:jar:2.5
    org.apache.maven.plugin.PluginResolutionException: Plugin org.apache.maven.plugins:maven-clean-plugin:2.5 or one of its dependencies could not be resolved: Failed to read artifact descriptor for org.apache.maven.plugins:maven
    -clean-plugin:jar:2.5
    at org.apache.maven.plugin.internal.DefaultPluginDependenciesResolver.resolve(DefaultPluginDependenciesResolver.java:122)
    at org.apache.maven.plugin.internal.DefaultMavenPluginManager.getPluginDescriptor(DefaultMavenPluginManager.java:148)
    at org.apache.maven.plugin.DefaultBuildPluginManager.loadPlugin(DefaultBuildPluginManager.java:81)
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolveFromProject(DefaultPluginPrefixResolver.java:138)
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolveFromProject(DefaultPluginPrefixResolver.java:121)
    at org.apache.maven.plugin.prefix.internal.DefaultPluginPrefixResolver.resolve(DefaultPluginPrefixResolver.java:85)
    at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.findPluginForPrefix(MojoDescriptorCreator.java:260)
    at org.apache.maven.lifecycle.internal.MojoDescriptorCreator.getMojoDescriptor(MojoDescriptorCreator.java:220)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:103)
    at org.apache.maven.lifecycle.internal.DefaultLifecycleTaskSegmentCalculator.calculateTaskSegments(DefaultLifecycleTaskSegmentCalculator.java:83)
    at org.apache.maven.lifecycle.internal.LifecycleStarter.execute(LifecycleStarter.jav

    Refer similar post.
    https://community.oracle.com/thread/3634249

  • Verify EJB after Cannot determine the Java EE module type for

    Hi All,
    I start verify EJB it's throw an exception
    Which cases occurring this exception, how can I resolve this?
    Could not verify successfully.
    java.io.IOException: Cannot determine the Java EE module type for C:\Mystuff\projects\Naki\Naki-ejb\dist\Naki-ejb.jar
         at com.sun.enterprise.deployment.archivist.PluggableArchivistsHelper.getArchivistForArchive(PluggableArchivistsHelper.java:137)
         at com.sun.enterprise.deployment.archivist.PluggableArchivistsHelper.getArchivistForArchive(PluggableArchivistsHelper.java:98)
         at com.sun.enterprise.deployment.archivist.PluggableArchivistsHelper.getArchivistForArchive(PluggableArchivistsHelper.java:110)
         at com.sun.enterprise.deployment.archivist.ArchivistFactory.getArchivistForArchive(ArchivistFactory.java:93)
         at com.sun.enterprise.tools.verifier.VerificationHandler.initStandalone(VerificationHandler.java:204)
         at com.sun.enterprise.tools.verifier.VerificationHandler.<init>(VerificationHandler.java:109)
         at com.sun.enterprise.tools.verifier.Verifier.verify(Verifier.java:140)
         at com.sun.enterprise.tools.verifier.Verifier.main(Verifier.java:114)
    Thanks,

    I'm getting the same error although i'm not receiving those entries in the log. Can someone please respond to this post. I've tried a lot of things but can't seem to figure it out. Please email me at [email protected] if you can help.
    Thanks

  • Link b/w orclIsEnabled on OID and portal API calls wwsec_api.activate_user

    Hi Folks,
    I am just curious about the account status on OID and access on portal user profiles.
    Is account activation or deactivation in OAS portal (using wwsec_api.activate_portal_user/ deactivate_portal_user calls) related to the OID enable/ disable of an account using orclIsEnabled field?
    i think the portal api calls control the portal access in the wwsec_person$ tables. but does it also reflect on to the orclIsEnabled field?
    any guidance will be highly appreciated!
    AMN

    I'm not 100% positive but I do not think the portal account activation/deactivation calls change the orclIsEnabled attribute in OID since there are times when a user in OID may still be enabled for SSO purposes but that same user may be deactivated as a portal user.

  • Using Java Mail API from Tomcat

    Hello,
    Purely as an academic exercise I have written a JSP page which, upon being requested from the client's browser, should send me a default email using Java Mail Api.
    here is the code :
    import java.util.*;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    public class TestMail {
        static String msgText1 = "success this time 12";
        static String msgText2 = "This is the text in the message attachment.";
        public String sendIt() {
            String to = "<my email";
            String from = "<anything>";
            String host = "<my ip address of smtp server>";
            boolean debug = false;
            Properties props = new Properties();
            props.put("mail.smtp.host", host);
            Session session = Session.getInstance(props, null);
    .....The code works fine as a stand alone app but when called from JSP page it hangs on the Session.getInstance line. I can only guess that this might be a security issue with the container not allowing access to the smtp server ?
    Can anyone give me a clue ???

    Your Tomcat log files should spell out the problem for you.
    My Tomcat installation does not come with the Java Mail API. I had to add the mail and activation jar files to the server/common.lib directory (or the server's shared/lib or the WEB-INF/lib of your application.)
    HTH.

  • Oracle BPEL Java Client API: Reading Configurations dynamically

    We have a requirement to use Oracle BPEL Java client API to control the BPEL instances at the runtime, from an ADF BC Application. is there any possibility to read the configurations/properties that are required to look up (using 'oracle.soa.management.facade.Locator' ) the BPEL Process Manager/Server from connections.xml/adf-config.xml ?
    In other terms, as we need the details like the bpel server URL, security credentials..etc to lookup the BPEL server and instances using the BPEL java client API, how can we read these details from the ADF standard config files like Connections.xml/adf-config.xml instead of hard coding them in the Java program.
    Edited by: 899479 on Feb 4, 2013 6:02 AM

    The api's for BPEL / Workslow canbe found here:
    http://orasoa.blogspot.com/2007/05/newbie-getting-started-with-oracle-soa.html
    Marc

  • Determining the relationship between 2 database tables

    hi all,
    is it possible to write a java program that can determine the relationship between 2 database tables, given only the database tables? can you provide examples please? thanks.

    java.sql.DatabaseMetaData provides the methods ....Just as long as the relationships are simple and the database and driver are known. For example there is no way that it is going to be able to tell you about a trigger that connects two tables.

  • Need JAVA API to list down all the Proxy Services in OSB Console 11g

    Hi,
    I need a java API to List down all the Proxy Services present in OSB Console for SOA 11g (11.1.1.5). I am in a situation where I cant use python script for the same.
    any help will be much appreciated.
    Thanks in Advance,
    Ravi
    Edited by: 899443 on Oct 1, 2012 4:13 AM

    AFAIK it is proprietary.
    What I do in a similar situation is to form XML for the services, package them into JAR the same way as an import JAR is packaged (creating ExportInfo resource, ...) and deploy with standard WSLT script. Works for simplest services only (direct proxies mostly) but I can also form security, alerts, throttling etc etc etc -- all in one shot.
    Out of sheer interest, may I ask you a question? Why do you need to create OSB services from Java?
    Vlad
    http://vladimirdyuzhev.com

  • Where can i find the Java doc API for Sun Portal 6.2

    Hi
    I am looking for the java doc api for portal.. for e.g, i want to know the available classes under com.sun.portal.providers.util and method details under that..
    Thanks
    Ramesh

    There should be a file called javadocs.jar in your portal installation directory. Either under SUNWps/sdk or SUNWps/export.
    - Jim

  • SAP ABAP Client proxy Errror occured when determining the Business system.

    Dear Friends
       I am trying to push data from ECC to PI and then MS-SQL Server. My SAP scenario is ABAP Proxy to JDBC
      I have created on Enhancement Implementation for AS01 ( Asset Master creation). Here I am calling my ABAP proxy and uploading ANLA and ANLZ strucutre  to my abap proxy.  but I get the run time error. that suggest Error occurred while determining the Business system - SLD_API_Exception.
    My all IR and ID objects are activated, I have tested the scenario successfully without error in ID, 
    When I check SM21 it suggest that error is due to XI is unable to access the SLD. Could_not_determine_sld_access_data.
    SLDCHECK works fine in PI system.
    SLDCHECK is failed in my ECCDEV 400 client System.
    Is it mandatory to configure SLD access in ecc development system as well ?  is this  the reason why I am not able to push the data to my PI system? Please tell me How can I solve this error? you any answer will be appreciated greatly.
    Please look the below link it contains the enhancement code of AS01 transaction code where I am calling abap proxy to send the data.  Runtime analysis report, SM21 log, and SLDCHECK failed screen shot in 400 client. SLD working fine in PI system. my SLD is configured in SOLMAN system.
    You can see the error and Code from this link ->  [Code , Runtime Dump Analysis report, SM21 Log and SLDCHECK|http://www.scribd.com/doc/61192432/Sap-Abap-Proxy-Error]
    Please help me How can I solve this ?
    Regards
    Naeem

    Hi Naeem,
    >>>is it mandatory to configure SLD access in ecc development system as well ? is this the reason why I am not able to push the data to my PI system? Please tell me How can I solve this error? you any answer will be appreciated greatly
    YES...you need to configure SLD check in your ECC System also
    Also check the links below for proxy connectivity step by step
    /people/vijaya.kumari2/blog/2006/01/26/how-do-you-activate-abap-proxies
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/50d69314-1be0-2b10-11ab-8045021f0c3a?quicklink=index&overridelayout=true
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/e0ac1a33-debf-2c10-45bf-fb19f6e15649?quicklink=index&overridelayout=true
    Regards,
    Naveen

  • How to determine the Current Domain name from inside an Mbean / Java Prog

    We have registered an Application Defined MBean. The mbean has several APIs. Now we want to determine the currrent domain using some java api inside this Mbean. Similarly we have deployed a Webapp/Service in the Weblogic domain. And inside this app we need to know the current Domain. Is there any java api that will give this runtime information.
    Note: We are the MBean providers not clients who can connect to the WLS (using user/passwd) and get the domain MBean and determine the domain.
    Fusion Applcore

    Not sure if this will address exactly what you are looking to do, but I use this technique all the time to access runtime JMX information from within a Weblogic deployed application without having to pass authentication credentials. You are limited, however, to what you can access via the RuntimeServiceMBean. The example class below shows how to retrieve the domain name and managed server name from within a Weblogic deployed application (System.out calls only included for simplicity in this example):
    package com.yourcompany.jmx;
    import javax.management.MBeanServer;
    import javax.management.ObjectName;
    import javax.naming.InitialContext;
    public class JMXWrapper {
        private static JMXWrapper instance = new JMXWrapper();
        private String domainName;
        private String managedServerName;
        private JMXWrapper() {
        public static JMXWrapper getInstance() {
            return instance;
        public String getDomainName() {
            if (domainName == null) {
                try {
                    MBeanServer server = getMBeanServer();
                    ObjectName domainMBean = (ObjectName) server.getAttribute(getRuntimeService(), "DomainConfiguration");
                    domainName = (String) server.getAttribute(domainMBean, "Name");
                } catch (Exception ex) {
                    System.out.println("Caught Exception: " + ex);
                    ex.printStackTrace();
            return domainName;
        public String getManagedServerName() {
            if (managedServerName == null) {
                try {
                    managedServerName = (String) getMBeanServer().getAttribute(getRuntimeService(), "ServerName");
                } catch (Exception ex) {
                    System.out.println("Caught Exception: " + ex);
                    ex.printStackTrace();
            return managedServerName;
        private MBeanServer getMBeanServer() {
            MBeanServer retval = null;
            InitialContext ctx = null;
            try {
                //fetch the RuntimeServerMBean using the
                //MBeanServer interface
                ctx = new InitialContext();
                retval = (MBeanServer) ctx.lookup("java:comp/env/jmx/runtime");
            } catch (Exception ex) {
                System.out.println("Caught Exception: " + ex);
                ex.printStackTrace();
            } finally {
                if (ctx != null) {
                    try {
                        ctx.close();
                    } catch (Exception dontCare) {
            return retval;
        private ObjectName getRuntimeService() {
            ObjectName retval = null;
            try {
                retval = new ObjectName("com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean");
            } catch (Exception ex) {
                System.out.println("Caught Exception: " + ex);
                ex.printStackTrace();
            return retval;
    }I then created a simply test JSP to call the JMXWrapper singleton and display retrieved values:
    <%@page contentType="text/html" pageEncoding="UTF-8"%>
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
       "http://www.w3.org/TR/html4/loose.dtd">
    <%@ page import="com.yourcompany.jmx.JMXWrapper"%>
    <%
       JMXWrapper jmx = JMXWrapper.getInstance();
       String domainName = jmx.getDomainName();
       String managedServerName = jmx.getManagedServerName();
    %>
    <html>
        <head>
            <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
            <title>JMX Wrapper Test</title>
        </head>
        <body>
            <h2>Domain Name: <%= domainName %></h2>
            <h2>Managed Server Name: <%= managedServerName %></h2>
        </body>
    </html>

Maybe you are looking for

  • IPod Classic 120GB cannot sync, "Required disk not found"

    Somebody, please help! iPod Classic 120GB charcoal, current OS as of about a week ago (won't stay synced long enough for me to see what it is), iMac 24" 10.6.4, iTunes 10.0.1. Let me know if you need any more info and I'll try to provide it. Everythi

  • Passivation of Connection Object in Stateful Session Bean

    Hi all, I am developing a Stateful session bean that has a Connection object as its instance variable. And this bean starts transaction that spans across multiple method calls and finally either commit or rollback. BeanClass UserTransaction utx; Conn

  • Executable jar in jbuilder

    Hi i have a question for you. I create a jar of my application in jbuilder 2007 and when i execute with java -jar test.jar it's work fine. After i try to create an executable jar but when i execute it i have a problem. In a class i have error (java.l

  • STWAE-Change a statistics currency in sales document

    Hi, I have 5 Sales Order and 4 Bills with a statistics currency and I need to change this statics currency by another. Someone known if is it possible this change? How? Thanks in advance! XeviG.

  • What does "Synchronize" mean when it appears in the history steps?

    I think this is new in V5  because I've never seen it before.  What does the word "synchronize" mean when it appears in a history step?  I do not recall the exact phrase because I cannot reproduce the conditions under which it appeared.  Having said