Server name from adaptive tags

Is there a adaptive tag that gets the name or url of portal server.
Thanks in advance.
Edited by: zaf_viq on Jan 12, 2009 4:24 PM

If your image and portal server URL are same, then you can make use of the image server url to get the portal url.
You can make use of "pt://images/" to get the image server url. from this you can strip of the "/imageserver/" to get the prefix portion of the url.
Example:
<img src="pt://images/">
for more info
http://edocs.bea.com/alui/devdoc/docs60/Portlets/Adaptive_Portlets/Using_Adaptive_Tags/PlumtreeDevDoc_Integration_Portlets_Adaptive_Links.htm
Thanks,
Bharat

Similar Messages

  • SSIS Expression to Server Name from a Connection String

    Hi,
    I have an SSIS variable which contains a connection string as follows; -
    User::strD​YNconnecti​on {Data Source=myServer;Init​ial Catalog=myDatabase;Provider​=SQLNCLI10​.1;Integra​ted Security=XXXX} String
    I need to get the server name from the above variable using an SSIS expression so I can pass the server name to another function.
    Thanks in advance,
    Kieran.
    Kieran Patrick Wood http://www.innovativebusinessintelligence.com http://uk.linkedin.com/in/kieranpatrickwood http://kieranwood.wordpress.com/

    Hi Kieran,
    This works fine when the Data source comes first in the connection string (which it usualy does). but when it doesn't,
    e.g.
    Init​ial Catalog=myDatabase;Data Source=myServer;Provider​=SQLNCLI10​.1;Integra​ted Security=XXXX}
    you will get 'myDatabase' as an answer
    I would add 'Data source =' in the find string (and adjust for length of this search string to add sufficient offset)
    e.g.
    SUBSTRING(RIGHT(@[User::strDYNconnection],LEN(@[User::strDYNconnection]) - 11 - FINDSTRING(@[User::strDYNconnection],"Data Source=",1)),1,FINDSTRING((RIGHT(@[User::strDYNconnection],LEN(@[User::strDYNconnection]) - 11 - FINDSTRING(@[User::strDYNconnection],"Data
    Source=",1))),";",1) - 1)
    Even this is not foolproof, when the Data source is the last element in the string and there is no ending ;
    e.g.
    Init​ial Catalog=myDatabase;Provider​=SQLNCLI10​.1;Integra​ted Security=XXXX;Data Source=myServer}
    the formula needs to be extended further with a ( ? : ) operator around the last operator to see if the last ";" was found or not.
    Jan D'Hondt - SQL server BI development

  • How to get the SQL Primary and Mirrored Database Server Name from Witness Server

    Hello,
                    Can Someone help me with the way to get SQL Primary and Mirrored server name from Witness server?
    Any Powershell script/SQL Query..etc or share the alternative?
    Regards,
    Julie

    select principal_server_name,mirror_server_name,* from sys.database_mirroring_witnesses
    -Prashanth

  • Resolving a Server Name from a TNS Service Name

    A computer client has an Oracle ODBC connection that is attached to a TNS Service Name "X". The TNS Service Name is running in Server "Y".
    Does anybody know a quick way to resolve the Server Name "Y" from the TNS Service Name "X" ???
    Our current solution is based on opening the file tnsnames.ora, which is normally located in $ORAHOME\network\ADMIN\TNSNAMES.ORA, and by parsing the file resolve the server name. However, we were wondering if there would be a more reliable way to do this. Is there an Oracle API that we can execute? Something like "GetHostName(TNSServiceName)"?
    Many Thanks

    tring TNSPING <service>
    the outputline contents the HOSTname

  • Resolving the Server Name from a TNS Service name

    A computer client has an Oracle ODBC connection that is attached to a TNS Service Name "X". The TNS Service Name is running in Server "Y".
    Does anybody know a quick way to resolve the Server Name "Y" from the TNS Service Name "X" ???
    Our current solution is based on opening the file tnsnames.ora, which is normally located in $ORAHOME\network\ADMIN\TNSNAMES.ORA, and by parsing the file resolve the server name. However, we were wondering if there would be a more reliable way to do this. Is there an Oracle API that we can execute? Something like "GetHostName(TNSServiceName)"?
    Many Thanks

    Not that I'm aware of.
    If you were using an Oracle Names server to resolve tnsnames, rather than a tnsnames.ora file, this would be a lot easier. You'd just update the Oracle Names server and all the clients would start pointing at the right machine.
    Justin

  • How to change server name from RAS?

    Wshes to All,
    I have designed a report with local server and uploaded into RAS .
    Now i have to change the server name in the RAS itself without touching the report.
    How to achieve this.
    Kindly solve my problem.
    Thanks in advance.
    Saravanakumar

    Hi ,
    Since i cannot figure out what to give in the third parameter in replaceConnection() ,
    I am using SetTableLocation(oldTable,NewTable);
    For that i am setting the following Properties,
            propertyBag.put("Trusted_Connection","False");
            propertyBag.put("Server Type", "JDBC (JNDI)");
            propertyBag.put("Use JDBC","true");
            propertyBag.put("Database DLL","crdb_jdbc.dll");
            //propertyBag.put("JNDIOptionalName",JNDIName);
            propertyBag.put("Connection URL","jdbc:oracle:thin:@xxxxxxxx:xxx");
            propertyBag.put("Database Class Name","oracle.jdbc.driver.OracleDriver");
    But still i cannot establish the connection.
    Is Connection String also required.
    If so how to give the Value for that.
    Thanks,
    Saravanakumar.

  • Drop server name from Jabber ID

    The default has the jabber IDs set up as <user>@<servername>.example.com. I'd like to drop the server name so it just lists as <user>@example.com. Is there a way to do this in Lion?

    Anyone?

  • How to remove old vmm2012 server name from VMM Server navigation pane?

    After rename SCVMM2012(3.0.6040.0) old name leave in fabric VMM Server navigation pane "not responding" status. How to clean that from database safely?
    VMM and sql are in the same server. First i was rename VMM server, then sql instance, and Uninstall VMM with the Retain Data option. Library move new name correctly. Everything is work well after that, but only old vmm object leave in fabric. New name is
    responding status.
    Any ideas?

    I never tried that but Virtual Machine Recovery Tool for System Center 2012 maybe help you
    http://social.technet.microsoft.com/wiki/contents/articles/8953.using-the-virtual-machine-recovery-tool-for-system-center-2012-virtual-machine-manager-vmm.aspx
    Note: This program is not a supported part of the VMM product. This program is offered “as-is” and is documented only in this wiki. Please share any
    insights you gain by using the Virtual Machine Recovery Tool by updating this wiki page.
    Mohamed Fawzi | http://fawzi.wordpress.com

  • Special Server Name from Bluetooth Member

    hello to all,
    my Server is waiting with the name MYSERVER
    Code:     
    connectNotifier = (StreamConnectionNotifier) Connector.open("btspp://localhost:" uuid.toString() ";" +"name=MYSERVER");
    How can i can extract these out the service Vector? (Client Side)
    Code:     
    for (int i = 0; i < services.size(); i++) {
    ServiceRecord sr = (ServiceRecord) services.elementAt(i);
    thanx for help..

    Exactly, that should have been my main question - thanks!
    Almost can't believe, I just used the wrong variable! Everything makes so much more sense now... I must have been getting those clumsy / harmless "attacks" for years without noticing - until I messed up that 404 log script during domain transfer.
    [...]information in your post which makes it difficult to understand what you're trying to explain[...]
    I know. My problem was, that I couldn't really understand what exactly my problem was, so I "postet random stuff" and it worked out
    Last edited by whoops (2011-03-10 00:30:46)

  • Ping to local domain works but ping to server name dont work from local network PC

    Hi
    I have done a fresh install of the Windows Server 2012 R2 and installed Essentials Experience role to it.
    My problem is that I cannot ping server name from PC in the local network. I can ping local domain name (domain.local).
    When I try to ping local domain in the server, it resolutes ok and gives server IPv4 IP but when I ping server name in the server, it gives me IPv6 IP ::1: which I understand to be IPv6 loopback IP. I dont know if this has anything to do with the pinging
    problem from the PC.
    I had earlier the same server configuration and this earlier server gives IPv4 IP when server name is pinged from the server itself.
    How to get PC to ping server name so that I could use http://servername/connect??
    Thanks in advance!

    Hi,
    Have you set firewall to allow incoming ICMP Echo messages ?
    By default, Windows Firewall does not allow incoming ICMP Echo messages, and therefore the computer cannot send an ICMP Echo Reply in response.
    You may like to refer to the article below to check if it worked:
    Nobody Can Ping My Computer
    http://technet.microsoft.com/en-us/library/cc749323(WS.10).aspx
    In addition, please also provide us the output of ipconfig /all on each side of these machines for further research.
    Hope it helps.
    Best Regards,
    Andy Qi
    Andy Qi
    TechNet Community Support

  • How to change ASE server name in windows

    how to change the server name in Adaptive server enterprise running on windows

    Windows is going to require a few more steps if ASE is running as a service.
    Update all registry entries containing <servername> with <newservername>:
    HKLM\SOFTWARE\SYBASE\Server
    HKLM\SYSTEM\CurrentControlSet\Services\SYBSQL_<servername>[ _BS | _XP ]
    NOTE: Doing a registry search on <servername> will bring up a ton of other locations, eg, legacy entries, ControlSet00X, etc ... not sure if all of these have to be changed, too ...
    NOTE: Haven't installed any of the latest ASE packages in windows so don't know if SAP's gone an changed the HKLM\SOFTWARE sub-branch name from SYBASE to SAP
    =========================
    In addition to Ryan's notes:
    - any other sysservers entries that refer to the old servername (eg, loopback)
    - any remote servers would need to update their external/remote logins, remote servers and/or proxy definitions ... as appropriate
    - if the ASE is involved in replication then you're looking at whole 'nother can of worms ... off the top of my head ... rs_databases, rs_idnames, rs_repdbs ... and of course any repdefs/subs that include the ASE name ?
    - obviously (?) any monitoring/maintenance/operational jobs ... documentation ...

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

  • How to get managed server name  in Weblogic10.2 ?

    Hi
    I want to get managed server name from a cluster in a servlet or util project class whom that one is called by ?
    Do I have to implement any interface or I have to extends a class ? Please help me to resolved.
    Thanks

    Here is a snippet of code that I use in WL10 MP1 that works fine:
    import javax.management.MBeanServer;
    import javax.management.ObjectName;
    import javax.naming.InitialContext;
    String managedServerName = null;
    InitialContext ctx = null;
    try {
    //fetch managed server name by accessing the
    //RuntimeServerMBean using the
    //MBeanServer interface
    ctx = new InitialContext();
    MBeanServer server = (MBeanServer) ctx.lookup("java:comp/env/jmx/runtime");
    ObjectName service = new ObjectName("com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean");
    managedServerName = (String) server.getAttribute(service, "ServerName");
    } catch (Exception ex) {
    //error occurred
    } finally {
    if (ctx != null) {
    try {
    ctx.close();
    } catch (Exception dontCare) {

  • Email server name defination

    please see metalink Note:427962.1
    Testing email option for demo page "runrepIAS.html"
    I need to change the email server used to report. Where is this email server name defined?
    This process does not get the email server name from the config files in $ORACLE_HOME/reports/conf
    Thanks

    I just ran the demo (following the metalink note) and I am using the:
    <pluginParam name="mailServer">%MAILSERVER_NAME%</pluginParam>in the rep_myserver.conf file in $ORACLE_HOME/reports/conf
    and the value MAILSERVER_NAME is defined as:
    MAILSERVER_NAME=myemailserver.comin the rwsevlet.properties file.
    I also changed it to a different smtp server and that worked also, just to make sure it was using the value defined in my config files. Why do you think it is not using that value?

  • REPORT SERVER NAME

    Hi all,
    Can you explain to me how to get the REPORT SERVER NAME from the
    UNIX machine and use it in the REPORT OBJECT in order to check
    on the status of the report.
    Rgds

    Hi all,
    Can you explain to me how to get the REPORT SERVER NAME from the
    UNIX machine and use it in the REPORT OBJECT in order to check
    on the status of the report.
    Rgds

Maybe you are looking for