How to get server Proxy of weblogic10.3

oracle.security.jazn.ApplicationServerProxy getProxy() used to get server proxy of OC4J.
Any thing similar stuff in Weblogic 10.3 to get server proxy of Weblogic 10.3? ( I am using JDev11g in-built Weblogic10.3 server.)
Thanks in advance for your help.
Cheers!
Raveen

This would get you there faster!!!!
http://e-docs.bea.com/wls/docs61//////javadocs/weblogic/management/configura
tion/ServerMBean.html
"Gaurav Khanna" <[email protected]> wrote in message
news:3cacfd87$[email protected]..
Hi,
Please look at the ServerMBean documentation. There is a getName() defined
and that, I think, specifies the name of the server.
http://e-docs.bea.com/wls/docs61//////javadocs/index.html
Hope that helps
"tony pan" <[email protected]> wrote in message
news:[email protected]..
The server name. Host name we can get from java.net API. Maybe, I waspresuming.
JNDI tree seems to be a logic place to put it. Thanks in advance.
Rob Woollen <[email protected]> wrote:
tony pan wrote:
Does anyone know how to get the name of the application server
instance
at runtime?
Which name do you mean? The host name or the server name (ie the name
in the Server
MBean)?
Obviously, it is in the server's JNDI tree. But what is the JNDI namefor this?
Why is it obviously in the JNDI tree?
-- Rob
Our application needs to configure itself based on this server name.Thanks. We
use weblogic 6.1.

Similar Messages

  • How to get auto proxy configuration from plugin?

    I need to retrieve the name of the client's proxy server to pass it along to my signed applet (because it doesn't seem to be getting the information automatically despite the fact that the java plugin is set to the use the browser settings for proxies).
    The Java Plugin loads the proxy server information based on the browser preferences, but I haven't figured out how to retrieve that proxy information from the Plugin itself. Sometimes the javaplugin.proxy.auto.url system property is null, even if the browser (MSIE) is configured to use an auto-configuration script/url for the proxy server configuration. I can see in the Java Console that the plugin knows the auto-config url, so how can I access that property from within my applet?
    Even if javaplugin.proxy.auto.url is not null, I don't know how to call the javascript function at that URL from within the applet to get the proxy server host name and port.
    Does anyone know how to get the proxy information from the plugin?

    Thank you! Indeed, the answer was there, but I hadn't been able to find it earlier (I guess I was searching on the wrong forums). For those who might be interested, here's the thread that helped:
    http://forum.java.sun.com/thread.jsp?forum=30&thread=281981

  • How to test server proxy in ECC 6.0 ?

    Hi,
    Please tell me how to test server proxy created in SPROXY of ECC 6.0  .
    I am following this blog XI: Debug your inbound ABAP Proxy implementation .
    When i am executing the test service provider i am getting an error with " program terminated " message  creating a dump .
    How to test it through this method ? Is there any other way to test in ECC6.0
    Thanks,
    Laawanya D

    Hi,
    I have put a breakpoint in my proxy code and when i am trying to execute only, i am getting the error "Program terminated" .
    I am using ECC6.0 , so when i am clicking on Test Interface, i am not  getting  "Application Data Entry" parameters  as given in  Stefan's blog , but I am getting something like:
    Input:
    1.Generate template Data
    2.Enforce Stylesheet generation
    (I have checked both 1 & 2 .)
    Error Handling:
    1.Don't catch Application faults
    if i check this and execute , my program gets terminated , leaving a dump and if i dont set it also My program gets terminated .
    So what to do now ?

  • How to get server name and port of OSB server in a proxy service ?

    I need to get the server name and port of the OSB server inside a proxy service. How can I get this?

    You may use java callout for this purpose -
    How to get ServerName and ApplicationName in OSB (ALSB) ?
    Regards,
    Anuj

  • How to get server certificate before sending off confidential content?

    If my mail client knows for example the SHA1 value of TLS/SSL enabled receiving MTA's certificate, subversion of DNS and Root-CAs could be prevented if after establishing the connection, the com.sun.mail.smtp.SMTPTransport.serverSocket were accessible to retrieve that certificate:
    X509Certificate[] certs = null;
    if (serverSocket instanceof SSLSocket) {
    SSLSocket ssl = (SSLSocket) serverSocket;
    certs = ssl.getSession().getPeerCertificateChain();
    byte[] sha1 = MessageDigest.getInstance("SHA1").digest(
    certs[0].getEncoded());
    //TODO now validate with the sha1 you already know
    Unfortunately com.sun.mail.smtp.SMTPTransport (let alone javax.mail.Transport) have a public getServerSocket() or even better a getX509ServerCertificates() method.
    Any other ideas how to get at those certificates short of using gnu classpathx?
    See also http://forum.java.sun.com/thread.jspa?threadID=615422

    I found the solution for server side. We will use Handler. And base on technology to generate web service's stuff (my server using axis, but my client using jaxWS), we have different ways to implement and deploy Handler. My purpose is only write input/output xml message to log, so with my server, I only adjust server-config.wsdd as bellow:
    <deployment
    xmlns="http://xml.apache.org/axis/wsdd/"
    xmlns:java="http://xml.apache.org/axis/wsdd/providers/java">
    <handler name="log" type="java:org.apache.axis.handlers.LogHandler"/>
    <globalConfiguration>
    <requestFlow>
    <handler type="log"/>
    </requestFlow>
    <responseFlow>
    <handler type="log"/>
    </responseFlow>
    </globalConfiguration>
    <transport
    name="http" pivot="java:org.apache.axis.transport.http.HTTPSender"/>
    </deployment>
    But now I still can not control directory and log file name yet (now it's axis.log by default).
    Edited by: mydesktop on Nov 15, 2010 6:20 PM

  • How to get server time in Oracle Internet Directory (OID)?

    Hi,
    How to get current time on OID server? As in case AD, RootDSE contains currentTime attribute, Is there any attribute in OID through which I can get current time on server.
    Thanks in advance for any help.
    Regards,
    Umesh

    Hi,
    wrong forum, use Identity Manager
    Frank

  • How to get server data without reading from the socket stream?

    My socket client checks for server messages through
                while (isRunning) { //listen for server events
                    try {
                            Object o = readObject(socket); //wait for server message
                                tellListeners(socket, o);
                    } catch (Exception e) {
                        System.err.println("ERROR SocketClient: "+e);
                        e.printStackTrace();
                    try { sleep(1000); } catch (InterruptedException ie) { /* ignore */ }
                }//next client connectionwith readObject() being
        public Object readObject(Socket socket) throws ClassNotFoundException, IOException {
            Object result = null;
    System.out.println("readObject("+socket+") ...");
            if (socket != null && socket.isConnected()) {
    //            ObjectInputStream ois = new ObjectInputStream(socket.getInputStream());
                ObjectInputStream ois = new ObjectInputStream(new DataInputStream(socket.getInputStream()));
                try {
                    result = ois.readObject();
                } finally {
    //                socket.shutdownInput(); //closing of ois also closes socket!
        //            try { ois.close(); } catch (IOException ioe) { /* ignore */ }
            return result;
        }//readObject()Why does ois.readObject() block? I get problems with this as the main while loop (above) calls readObject() as it's the only way to get server messages. But if i want to implement a synchronous call in adition to this asynchronous architecture (call listeners), the readObject() call of the synchronous method comes to late as readObject() call of the main loop got called before and therefore also gets the result of the (later) synchronous call.
    I tried fideling around with some state variables, but that's ugly and probably not thread safe. I'm looking for another solution to check messages from the server without reading data from the stream. is this possible?

    A quick fix:
    - Add a response code at the beginning of each message returned from the server indicating if the message is a synchronous response or a callback (asynch);
    - Read all messages returned from the server in one thread and copy callback messages in a calback message queue and the synch responses in an synch responses queue;
    - Modify your synchronous invocation to retrieve the response from the responses queue instead from the socket. Read the callback messages from the corresponding queue instead from the socket.
    Also take a look at my website. I'm implementing an upgraded version of this idea.
    Catalin Merfu
    High Performance Java Networking
    http://www.accendia.com

  • How to get Server Name and port. Urgent.....

    Hi,
    Please let me know how can i get the server name and port without using request object.
    I am getting it :- request.getServerName();
    But, pl. let me know how can I get it without using this request object.
    Waiting for reply..

    I don't know of any way to trivially access that, but why do you need to do this? If you need access to that information in a method that can't see your HttpServletRequest, then perhaps your architecture has a flaw, and you'll be better off in the long run restructuring it.

  • How to get server system date?

    I do need the server system date to do calculation. How could I get it?

    I do need the server system date to do calculation.
    How could I get it?What about using a Date() object? And please be more specific. Are you using JSP? Java application? What else?

  • How to get server to show my website

    Hello,
    I have a domain registered and pointing to my server via my IP address. I have uploaded my site files to the location indicated in the server.app, the location that defaulted when I set up the web services and created a new website. When I type in my domain in a web browser I get the default server website and not my website that I want to host.
    How can I change this so that when I type in my domain I get the site I want to host instead of the default server site?
    I use name.com to register my domain and I'm using server on a mac mini. I am using the default name servers on name.com, I have added two DNS records, both "A" records, mydomain.com to my IP address (not the ip of my server) and *.mydomain.com and my IP (not the ip of my server).
    Like I said, this works in pointing my domain to my ip so when I type it in I get my server default website but I want my hosted site. I have set it up correctly in server.app. My settings are:
    domain name: domain.com
    ip address: any (I have two)
    port 80
    SSL: none
    Store files in: domain name folder (I erased the default files and copied my website files to this location)
    Who can access: anyone
    no additional domains configured
    no redirects
    no aliases
    the 4 index files configured...
    I have Googled and came up with everything but what I am looking for. I am new at this dns and ip stuff but know my way around a computer so a walkthrough I can follow.
    Anyone else have this situation or can help?
    Thanks in advance...

    Have you tried clearing the cache of the web browser? It is possible that if you accessed the site with the defualt page that your browser is displaying a cached version.
    Just to be sure, there are no files from the default site still in your sites folder? Also, what are the four index files that are configured? Is the website you want to display using one of those files (like index.html or index.php)? Also, have you verified the file permissions are correct for the files in your sites folder?
    If you can give a few more details, we might be able to figure out the issue.

  • How to get server to reply when emailing photos from iPhoto

    We recently changed over to a new web mail server. Once this happened, we have not been able to email photos through Apple Mail even though we changed the email addresses in the General Preferences. Can you give us any direction of how to complete the the set up? Right now, I get a message stating the internet connection is not working properly.
    Thanks for the help,
    Carol

    iPhoto Menu -> Preferences -> Accounts ->
    Delete and recreate your email settings.
    Alternatively, use Apple's Mail for the job. It has Templates too - and more of them.

  • How to get server hostname and port from web form

    Hi All,
    I need to find out server hostname and port number
    from 9i form.
    That is if the form was called via:
    http://myserver.com:1234/f90servlet?form=test,
    i would like to call some
    GET_XXX_PROPERTY(SERVER_HOSTNAME) that would return
    myserver.com
    and
    GET_XXX_PROPERTY(SERVER_PORT) that would return
    1234
    or alternatively
    GET_XXX_PROPERTY(SERVER_URL) that would return
    complete URL, so that i can parse it myself.
    Does anything like this exist? If not,would be
    possible to get that information from any Java
    function via java importer?
    BR,
    Robert
    BR,
    Robert

    Robert,
    I'd add the code as a Java Bean in Forms and get this information from the Forms request URL.
    Add the following bean to a Canvas and make it a size of 1x1 pixel so taht it appears hidden
    import java.applet.Applet;
    import java.net.URL;
    import oracle.forms.handler.IHandler;
    import oracle.forms.properties.ID;
    import oracle.forms.ui.VBean;
    public class FrmRequestInfo extends VBean
    public static final ID pGetPort = ID.registerProperty("GET_PORT");
    public static final ID pGetHost = ID.registerProperty("GET_HOST");
    public static final ID pGetProtocol = ID.registerProperty("GET_PROTOCOL");
    private String _host;
    private String _port;
    private String _protocol;
    private URL FormsURL;
    Applet m_applet;
    /*Forms settings*/
    IHandler m_handler;
    public FrmRequestInfo()
    public final void init (IHandler handler)
    super.init(handler);
    m_handler = handler;
    // get the forms applet handler
    m_applet = m_handler.getApplet();
    // initialize cookie domain to the same domain that runs Forms
    // Services
    FormsURL = m_applet.getDocumentBase();
    _host = FormsURL.getHost();
    _port = new Integer(FormsURL.getPort()).toString();
    _protocol = FormsURL.getProtocol();
    public Object getProperty(ID p0)
    if (p0 == pGetHost)
    return _host;
    else if (p0 == pGetPort)
    return _port;
    else if (p0 == pGetProtocol)
    return _protocol;
    else
    return super.getProperty(p0);
    To get the port number you call
    VarcharVariable_Port := get_custom_property('beanblock.beanname',1,'GET_PORT');
    for the hostname
    VarcharVariable_Host:= get_custom_property('beanblock.beanname',1,'GET_HOST');
    Frank
    Ps.: just wrote the bean on the fly, without testing - but I am positive that it works as similar functionality works for me in other beans.

  • How to get polipo proxy to transparently handle web traffic?

    hello there,
    I've got a router PC at home. It runs privoxy so that any PC on my local network can browse the Internet in a reasonably secure way, with no ads and such.
    Because we often visit the same websites, I thought that's be a good thing to set up a caching proxy. I tried Squid, but found it difficult to configure, slow to start, etc. so I finally chose polipo, which is much lighter and simpler.
    On the web, many sources advise to have to following setup:
    1) local -- privoxy -- polipo -- internet
    I got such a setup, but I'd like to try the following instead:
    2) local -- polipo -- privoxy -- internet
    In my opinion it's more relevant because:
    - my router is quite old, and I think it would be lighter on resources to serve already privoxied cached pages, rather than having privoxy process every cached page
    - in terms of privacy, it's generally advised not to have a parent proxy on top of privoxy
    Privoxy acts as an intercepting proxy, so setup 1) was quite easy to configure. Web traffic is redirected to privoxy, then privoxy forwards it to polipo.
    Polipo does not act as an intercepting proxy, because its developer considers that "interception proxying is a fundamentally broken design [...], and will not be supported by Polipo". So far, the only possible workaround I found are :
    - configure browsers to use polipo: not suitable, I want any local network computer to be able to transparently connect to the internet
    - use yet another proxy to intercept traffic...
    - or, from polipo docs :
    If you want to use interception proxying in order to avoid manually configuring your clients, please use Netscape's proxy.pac auto-configuration (you don't need a separate web server, as a proxy.pac file can be served by Polipo's internal server).
    It gives link pointing to http://wp.netscape.com/eng/mozilla/2.0/ … -live.html which is dead.
    So, in short: is there a way to transparently route my web traffic through polipo?
    Thanks for any guidance.

    Not sure if your still looking for a solution, but I could think of a couple possible ways to redirect the traffic. One would be rinetd (Here). The other solution I thought would be iptables (FW_REDIRECT ??), but I have not tried that.
    I might try experimenting with a few ways, but let me know if you have it working..

  • How to get server date and time using java code

    Hi,
    I'm new to java. I have one doubt about getting date and time of the server. can anyone give some sample code to get that.
    thanks in regards
    Gopi.

    you need 2 things
    1. something on the application server which exposes the servers time/date
    2. something on the client which makes use of your time service
    for instance, you could write a ServerTimeServlet that clients can call to get the time according to the server. or, if you've got a database in the server, often database software will provide a Time procedure or similar that does this, so you can use a simple SQL query to get the latest time

  • How to get server status

    Hi all,
         I want to know the server status,wether it is
    started or restarted,through an application in java.
    How is it possible.Send me some related code for this or some links for this.

    Hi Guru,
    You can try to use JStartup library from your NWDS installation (root\eclipse\plugins\com.sap.bc.proj.jstartup\lib\). Something like this :
    import com.sap.bc.proj.jstartup.api.JStartupClusterController;
    import com.sap.bc.proj.jstartup.api.JStartupClusterControllerFactory;
    import com.sap.bc.proj.jstartup.api.JStartupClusterInstance;
    import com.sap.bc.proj.jstartup.api.JStartupInitialFactory;
    try {
         JStartupClusterControllerFactory clusCtrlFac = JStartupInitialFactory.getInitialFactory().getClusterControllerFactory();
         JStartupClusterController clusterController = clusCtrlFac.getClusterController("SERVER_NAME", SERVER_PORT);
         JStartupClusterInstance[] instances = clusterController.getInstances();
         for (int i = 0; i < instances.length; i++) {
              JStartupClusterInstance instance = instances<i>;
              System.out.println(instance.getHost());
              System.out.println(instance.getMessageType());
              System.out.println(instance.getName());
              System.out.println(instance.getState());
              System.out.println();
    } catch (Exception e) {
         e.printStackTrace();
    It gives all information like "J2EE Engine" view in NWDS does.
    Best regards, Maksim Rashchynski.

Maybe you are looking for

  • Question about "Edit Edit Original", and a question about efficiency.

    I have a background image that I have imported (placed) inside my Indesign document. Problem is that I can't tell how the image will look against the other Indesign layers until I actually import "place" the image. I find myself having to keep going

  • SAP HR 0002 infotype problem

    Hello all, We are using SAP HR activesync as the authorative source. Some time ago something happened and we began getting an error. This is actually a really serious error. The error is java.lang.ArrayIndexOutOfBoundsException: 973. Apparently for s

  • 0 to 1 occurence (optional approach)

    Hi Experts, Scenario : Webservice -> XI -> JDBC/RFC or any other application. Issue: I have added a optional input field ( it means that I no need to pass the value for the particular input field ) for the webservice request. But, If I won't pass the

  • Is percentile calculation supported by QD or WAD?

    Hi! Customer does not have access to Business Objects, Crystal Reports or similar but requires percentiles to be calculated at runtime. Customer wants 10th, 25th, 50th, 75th and 90th percentile of the employees' individual wages to be presented for w

  • OVM Manager 3.1.1 - can i load system.img only?

    Just wondering if any of you have tried creating a VM, and then selecting to load system.img only as a startup disk, not including the tools.img. Will it give you the OS VM only or will it fail to boot? There is no reason why I want to do this, I'm j