Get server name

I need get the server name to put it in a mapping, someone know how i can get it?  i think with a java user-funtion,  someone have it? thank you very much.

Hi,
you can get it with user defined function like shown in this thread:
/message/686478#686478 [original link is broken]
you can get many other java properties in the same way
Regards,
michal
<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Similar Messages

  • 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 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.

  • MDM Alias to get Server name

    Hi,
    Can any one tell me how to get the server name using MDM Alias, i am able to get the uesrs but not able to get the server name,
    Thanks
    Dumpala Rajnikanth

    This should work -
      private String getHostAndPortString(String systemAlias)
            throws ExceptionInImplementationException
            ArrayList wrappers = UMFactory.getSystemLandscapeWrappers();
            // NW 7.0 allows a single implementation of the ISystemLandscapeWrapper
            ISystemLandscapeWrapper landscape = (ISystemLandscapeWrapper) wrappers.get(0);
            ISystemLandscapeObject system = landscape.getSystemByAlias( systemAlias );
            String hostAndPort = (String) system.getAttribute("wap.WAS.hostname");
            return hostAndPort;
    Edited by: Dhanz on Jun 7, 2011 10:38 PM

  • Getting Server name or IP

    Hi guys and gals,
    I run a large Intranet and want to standardise the way alot
    of the flash files work. They all need some standard bits of data,
    but at the moment they are located in txt files in the same
    reletive path as the movies, so when using LoadVars, it looks at
    params.txt. Rather than have 100+ param.txt files that all hold the
    same stuff, I want to have one-placed on the root of the server -
    that all the flash movies reference. However, I don't want to
    hardcode the servername into the AS, as if we upgrade/change
    servers then it'll mean updating all the movies. So, can Flash
    detect the IP address of the server it's running on without any
    external help (eg passing a variable as a URL param into Flash)
    Thanks all
    P

    If your swfs reside on the same server then you can get the
    first part of the url.
    t= this; (if this is the main timeline);
    var serverPath=
    t._url.substr(0,t._url.indexOf("/",t._url.indexOf("//")+2));
    for
    http://subdomain.domain.com/site/flash/myswf.swf
    it should give you
    http://subdomain.domain.com
    if that's what you want...if its an ip address then that's
    what you'll get. You can't do an ip lookup of a domain name without
    using a server script as far as I know.

  • How to get server name and/or IP address from client (10g)?

    Thanks.

    SELECT SYS_CONTEXT( 'USERENV', 'IP_ADDRESS' ) FROM dual;
    SELECT SYS_CONTEXT( 'USERENV', 'HOST' ) FROM dual;assuming you have a two-tier system (i.e. the client is actually making the connection to the database). If you have a three-tiered system, the middle tier would have to pass in this information.
    Justin
    Distributed Database Consulting, Inc.
    http://www.ddbcinc.com/askDDBC

  • Get error when passing a server name to Crystal Report

    I am developing a desktop application using VS 2012 with CRforVS_13_0_9 and CRRuntime_64bit_13_0_10 installed.  The database is SQL Server 2012 Express.  I use SQL OLEDB in Crystal Report to connect the SQL database.  Here is part of the codes.
    Dim crTableLogoninfo As New TableLogOnInfo
    Dim crConnectionInfo As New ConnectionInfo
    Dim crTables As Tables
    Dim crTable As Table
    With crConnectionInfo
    .ServerName = Login.sServer
    .DatabaseName = Login.sDatabase
    .UserID = Login.sDBUserID
    .Password = Login.sDBPassword
    End With
    Try
    crTables = CReport.Database.Tables
    For Each crTable In crTables
    crTableLogoninfo = crTable.LogOnInfo
    crTableLogoninfo.ConnectionInfo = crConnectionInfo
    crTable.ApplyLogOnInfo(crTableLogoninfo)
    Next
    CrystalReportViewer1.ReportSource = Nothing
    CrystalReportViewer1.ReportSource = CReport
    I get an error "Failed to open connection -- Database vendor code 17" when I run a Crystal Reports through my application.  The problem is Crystal Reports does not like the server name which is passed.  The purpose for passing a server name is to connect to different server if needed.  I am not 100% sure the error occurs after VS 2012 or SQL Server 2012 express was updated.
    Any ideas how I can fix this problem?
    Thanks,
    John

    Hi John
    First, you want to check the error code in your database documentation. The error is being passed from the db client through the report engine totally unmodified. Googling the error will also be a good idea.
    And, seeing as you are using SQL Server 2012, make absolutely sure that the SQL Native 11 client is installed.
    - Ludek
    Senior Support Engineer AGS Product Support, Global Support Center Canada
    Follow us on Twitter

  • How to get the Server Name in Crystal

    Hi All,
    We created a Crystal Report that pulls images from a File Location at the run time and this File Location is different for each environment (D-Q-P). We are trying to automate the file location by the server name. Is there any function in Crystal Reports that we can get the server name so we know if it is D-Q or P system?
    Thank you,

    Hi,
    There is no function in CR that can fetch the Server Name. That is something you need to provide to the formula.
    If you're loading images from a location on the Server, you can always use a Relative Path. For eg: if the images would be stored in a folder called Images, then you can write a formula on the 'Graphic Location' for the OLE object as:
    "/Images/Crystal.jpg"
    This will load the image from the folder when it is run on D, Q or P.
    Hope this helps!
    -Abhilash

  • Whats the best way to get the server name in a servlet deployed to a cluster?

              Hi,
              I have a servlet in a web application that is deployed to a cluster, just
              wondering what is the best way to get the name of the node that the server is
              running on at run time??
              Thanks
              

              Please try to modify the following code and test for your purpose: (check Weblogic
              class document for detail)
              import javax.naming.*;
              import weblogic.jndi.*;
              import weblogic.management.*;
              import weblogic.management.configuration.*;
              import weblogic.management.runtime.*;
              MBeanHome home = null;
                   try{
                        //The Environment class represents the properties used to create
                             //an initial Context. DEfault constructor constructs an Environment
                             //with default properties, that is, with a WebLogic initial context.
                             //If unset, the properties for principal and credentials default to
                             //guest/guest, and the provider URL defaults to "t3://localhost:7001".
                             Environment env = new Environment();
                             //Sets the Context.PROVIDER_URL property value to the value of
                             //the argument url.
                             if(admin_url!=null){
                                  env.setProviderUrl(admin_url);
                                  //Sets the Context.SECURITY_PRINCIPAL property to the value of
                                  //the argument principal.
                                  env.setSecurityPrincipal(username);
                                  //Sets the value of the Context.SECURITY_CREDENTIAL property to
                                  //the value of the argument cedentials
                                  env.setSecurityCredentials(password);
                                  //Returns an initial context based on the properties in an Environment.
                                  ctx = env.getInitialContext();
                             }else ctx = new InitialContext();
                             home = (MBeanHome) ctx.lookup(MBeanHome.ADMIN_JNDI_NAME);
                             ctx.close(); //free resource
                             // or if looking up a specific MBeanHome
                             //home = (MBeanHome) ctx.lookup(MBeanHome.JNDI_NAME + "." + serverName);
                             DomainMBean dmb = home.getActiveDomain(); //Get Active Domain
                             ServerMBean[] sbeans = dmb.getServers(); //Get all servers
                             if(sbeans!=null){
                                  for(int s1=0; s1<sbeans.length; s1++){
                                       String privip = sbeans[s1].getListenAddress();
                                  sbeans[s1].getName();
                             sbeans[s1].getListenPort();
                                                 WebServerMBean wmb = sbeans[s1].getWebServer();
                   }catch(Exception ex){
              "Gao Jun" <[email protected]> wrote:
              >Is there any sample code? Thanks
              >
              >Best Regards,
              >Jun Gao
              >
              >"Xiang Rao" <[email protected]> wrote in message
              >news:[email protected]...
              >>
              >> Sure. You can use the Weblogic management APIs to query ServerBean.
              >>
              >>
              >> "Me" <[email protected]> wrote:
              >> >
              >> >Thanks for your reply, i was hoping to find a better way for example
              >> >a class in
              >> >weblogic API.
              >> >
              >> >Thanks
              >> >
              >> >"Xiang Rao" <[email protected]> wrote:
              >> >>
              >> >>Physical: InetAddress.getLocalHost().getHostName()
              >> >>Weblogic: System.getProperty("weblogic.Name");
              >> >>
              >> >>
              >> >>"Me" <[email protected]> wrote:
              >> >>>
              >> >>>Hi,
              >> >>> I have a servlet in a web application that is deployed to a
              >cluster,
              >> >>>just
              >> >>>wondering what is the best way to get the name of the node that
              >the
              >> >>server
              >> >>>is
              >> >>>running on at run time??
              >> >>>
              >> >>>Thanks
              >> >>
              >> >
              >>
              >
              >
              

  • I have windows 7 and Itunes 10.  I the the error of Unable to connect to the CDDB server when I try to get tune names

    I have windows 7 and Itunes 10.  I the the error of Unable to connect to the CDDB server when I try to get tune names.  I can still connect to iTunes store and I can still summit track names to the CDDB server.  I just cant recive the names from the CD's.  I read this problem on the community and I've checked that the  proxy server from Lan is unchecked.  I use a verizon wireless card for my internet if that matters.

    Perhaps try the iTunes Store loads partially or returns "Error 306" or "Error 10054" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
    iTunes: Advanced iTunes Store troubleshooting

  • How do I get the name of the app server in an application

    I am trying to run two app servers of one database. My problem is that I am trying to insert a link in a report that would link to another report by passing parameters through the URL which works fine if you stay on one server.
    If I request the link from http://portal1/servlet..... when the app is being served from http://portal2/servlet... server. How do tell the app that I am on portal2 and the the URL for the next page should be http://<the name of the server used>/servlet....
    The ideal is if the app servers LSNR_TOKEN or SITE_ID could be returned on request from a package.
    Thanks,

    Use the following function to get the corresponding server name
    wwctx_api.get_host
    and you can concatenate this with other values to form your required URL.
    (eg: l_url := 'http://'||wwctx_api.get_host||'/pls/portal30/...')
    Hope this helps!
    -Krishnamurthy

  • How to get the Server name only?

    Hello,
    I would like to get this part of server's URL: "http://<host_name>"
    I am familiar with the Object WDURLGenerator but I don't see a method to do that, all the methods require manipulating the received String. Is there a method to get only the part I've mentioned?
    Roy

    Hi,
    String sysname = System.getProperty("SAPSYSTEMNAME");
    String hostname = System.getProperty("j2ee.dbhost");
    will give the server name..then u can say http://<hostname>...

  • Getting error when i am giving the server name in JDBC

    Hi All,
    When i am trying to connect to JDBC then i am getting the error in Servername
    {color:#3366ff}********************INPUT OF Testing.java************************
    package com.fidelity.ereview.utils;{color}
    {color:#3366ff}import java.io.*;
    import java.sql.*;{color}
    {color:#3366ff}public class Testing {
    public static void main(String[] args) throws SQLException {{color}
    {color:#3366ff} Connection con;
    SQLServerDataSource ds = new SQLServerDataSource();
    ds.setServerName("01HW059726\SQL2K5"); {color:#ff0000}//here getting error{color}
    ds.setPortNumber(1433);
    ds.setUser("eReview");
    ds.setPassword("Password123");
    ds.setDatabaseName("migration");
    con = ds.getConnection();
    if (con != null) {
    System.out.println("Successfully connected");
    else
    System.out.println("Not Successfully connected");
    Kindly anybody tell me that how shell i give the server name (My server name is :01HW059726\SQL2K5) in the
    ds.setServerName???{color}

    Replace \ in server name with \\ like
    01HW059726*{color:#ff0000}\\{color}*SQL2K5

  • Getting the name of the host that the forms server is running on?

    Hi
    I have a very simple question, but can't find a simple answer at the moment.
    Is there something like GET_APPLICATION_PROPERTY within forms 10g that I can use to return the hostname of the machine that the form is running on (i.e. the name of the application server).
    I know that I could use one of the calls to query an appropriate environment variable (COMPUTERNAME on Windows or HOSTNAME on UNIX), but would rather have something that is platform independent if possible.
    Does such a call exist?
    Thanks
    Steve

    If you looked up the "weblogic.management.adminhome",
    home.getMBeanServer() returns the Admin server's mbean server, and
    remoteMBeanServer.getServerName() returns the admin server name... :-)
    thanks,
    -satya
    Francine Grimmer wrote:
    I don't follow your reply...
    In the weblogic example for creating connection pools, I first must get the mBean
    Home interface and then call getAdminServer. But must pass the name of the admin
    server, which I don't have. So when you say ServerMBean, are you talking about
    the Managed Server MBean? It can have a different name than the Admin Server.
    Satya Ghattu <[email protected]> wrote:
    If you have the ServerMBean on the admin server, mbean.getName() gives
    you the Name of the server.
    Francine Grimmer wrote:
    Is there a way the get the name of the Weblogic Admin Server? I amtrying to use
    the MBean interface to create a connection pool in my application deployedon
    Weblogic 8.1 SP2. But I don't want to hard code the name of the AdminServer in
    my code. Is there a weblogic API to call to get it?

  • Getting the name of the Administration Server

    Is there a way the get the name of the Weblogic Admin Server? I am trying to use
    the MBean interface to create a connection pool in my application deployed on
    Weblogic 8.1 SP2. But I don't want to hard code the name of the Admin Server in
    my code. Is there a weblogic API to call to get it?

    If you looked up the "weblogic.management.adminhome",
    home.getMBeanServer() returns the Admin server's mbean server, and
    remoteMBeanServer.getServerName() returns the admin server name... :-)
    thanks,
    -satya
    Francine Grimmer wrote:
    I don't follow your reply...
    In the weblogic example for creating connection pools, I first must get the mBean
    Home interface and then call getAdminServer. But must pass the name of the admin
    server, which I don't have. So when you say ServerMBean, are you talking about
    the Managed Server MBean? It can have a different name than the Admin Server.
    Satya Ghattu <[email protected]> wrote:
    If you have the ServerMBean on the admin server, mbean.getName() gives
    you the Name of the server.
    Francine Grimmer wrote:
    Is there a way the get the name of the Weblogic Admin Server? I amtrying to use
    the MBean interface to create a connection pool in my application deployedon
    Weblogic 8.1 SP2. But I don't want to hard code the name of the AdminServer in
    my code. Is there a weblogic API to call to get it?

Maybe you are looking for

  • How can I speak to a customer care representative ...

    In summary; I have 2 phone lines and 2 broadband providers and decided to cancel one of the phone lines and one of the broadband providers..............I am now regretting the decision to remain with BT as my broadband provider, as despite being told

  • Alternate Calculation Type?

    Hi In SAP SD-Pricing, suppose I have Alternate Calculation Types for my condition records in a procedure. I want to know the exact flow, like I know first the requirement will be triggered and then if it is satisfied then only we can go ahead . BUt i

  • Loading & running Premiere Elements 9 in Windows 8

    Can I load and run Premiere Elements 9 in Windows 8???

  • Wallpaper keeps changing after every reboot!

    After a reboot my wallpaper changes automatically to Andromeda Galaxy. I want to use another desktop like Aurora, but i can't make it stay there!!?? My system is macbook pro early 2011 / Mac OS x 10.7.2. Help plz........

  • Rounded Rectangle Tool: Only creates outlines

    Desired solution:  a rounded rectangle filled with color #00628b, 40px high, 200px long. Situation:  The rounded rectangle tool produces an outline in the my foreground color.  I have been unable to make this tool create a rounded rectangle that is t