How to get the Application Server computer name?

I'm redirecting to a jsp fails to logon page using oracle's 10 g.

Can you please tell me how to get application server name of the computer on which I run my ACE? I don't want to hardcode the link to the jsp example page

http://MyMachine:7778 / MyPage.jsp

I want to get dynamically AS the machine name (I can't access the data due to the error log). Please help in this regard.

Thank you

Hello

You can use in your forms integrated GetVar tool_env.:

TOOL_ENV. GetVar('REPSERVERNAME',l_report_server);
TOOL_ENV. GetVar('URLSERVER',l_urlserver);
TOOL_ENV. GetVar('APPLICATION',l_envid);

where the first parameter is a parameter defined in the file your application server .env.

-Mohamed Dadi

Tags: Oracle Development

Similar Questions

  • How to get the LOGO and company name in the theme of the 4 apex

    Hello

    I use the theme 4 for apex 4.0.2.
    I must have the logo as well as the name of the company the two, but when I select den Image it shows only the image in the dashboard and when I select den text it shows the name of the company.
    How to get the two logo and the name of the company?

    Thanks for your help.

    Kind regards
    Sébastien Pallav.

    Pushpesh Pallav says:
    Hello

    I use the theme 4 for apex 4.0.2.
    I must have the logo as well as the name of the company the two, but when I select den Image it shows only the image in the dashboard and when I select den text it shows the name of the company.

    The word is spelled 'then', not 'den '.

    How to get the two logo and the name of the company?

    Select the text, and include HTML, making reference to the image in the text:

    
    

    The image src URI used depends on the location of the image, which you have failed to specify.

  • How to clear the Application Server Control logs?

    On the application server in 10g, 10g of database, Windows 2003 Operating System.

    Referring to http://download.oracle.com/docs/cd/B10464_05/core.904/b10376/log.htm, Figure 4-1. I can see 12000 +++ lines dating back to before that I was hired. I'm trying to remove some of the papers, if possible. When I did Figure 4-6, location of repository Log - diagnosis/repository, I thought that the log files will be in FRHome1\diagnostics\respository; but there is no file in there. In fact nothing in this record.

    So my questions are:
    (1) where the logs for Application Server?
    (2) how to remove some of the newspapers?

    Thank you.

    Hello;

    I think that 2 August was my last post in this forum. By chance, I noticed this.

    Yes, they can be removed (say weekly or monthly cleaning)

    /U01/app/Oracle/product/midtier/WEBCACHE/logs/access_log.20100126_1542

    I run Linux and mine is here:

    /U01/app/Oracle/product/midtier/J2EE/OC4J_BI_Forms/log/OC4J_BI_Forms_default_island_1/default-Web-access.log

    To test I have renamed it to this:

    /U01/app/Oracle/product/midtier/J2EE/OC4J_BI_Forms/log/OC4J_BI_Forms_default_island_1/default-Web-access.logold

    IAS then stopped and restarted and it created: (from 0 bytes)

    /U01/app/Oracle/product/midtier/J2EE/OC4J_BI_Forms/log/OC4J_BI_Forms_default_island_1/default-Web-access.log

    So I think that you can delete them, but you should let iAS re-create. (In this way the permissions will be correct)

    Best regards

    mseberg

  • How to separate the application server and web server on the level of physical servers?

    I want to separate the application server and web server: locate on different hosts. Generally, we use Weblogic ACE. In the future maybe use Apache Tomcat as web server.
    Example,
    192.168.1.10 - as - Weblogic application server / module EJB
    192.168.1.11 - as a Web server - Weblogic / WEB module (can be - Apache Tomcat)

    Impossible to find examples and resources about it on google.
    Thank you.

    So, if we're looking for a subject such as:

    try {
        someEJB = context.lookup("ejb/Videotheek#model.logic.Videotheek");
    } catch (NamingException e) {
        e.printStackTrace();
    }
    

    If the EJB application is clustered in an object of type ' ClusterableRemoteRef (-4005477377232786958S: 172.31.0.107: [7003,7003,-1,-1,-1,-1,-1]: [8351443287261246917S:172.31.0.107:[7002,7002,-1,-1,-1,-1,-1]:ScriptDomain:VideotheekServer1/292])/289 172.31.0.107:ScriptDomain:VideotheekServer2 - 4005477377232786958S:172.31.0.107:[7003,7003,-1,-1,-1,-1,-1]:172.31.0.107:ScriptDomain:VideotheekServer2/289,-' is returned, which is part of the wlfullclient.jar.)

    You can try using the EJB or the annotation of the resource (do not know with certainty if Tomcat is favorable). For annotations work, you must use version servlet 2.5 or later. JNDI research work in a general such as for example Tomcat servlet container.

  • How to get the Application Build Date and time?

    Hi guys,.

    I am developing application in Cascade.

    What is the API I can use to get the construction Date of the application and Tiime?

    These macros are expanded to C-strings at compile time. This is how/where to use it. Following an example would work I think:

    fprintf (stderr, "construction date is %s, construction time is %s\n", __DATE__, __TIME__);

  • How to get the logged in user name of BPM worklist.

    Hello

    In my SOA application I have attached the external form of ADF to human task. In the list of tasks, when the action is run on human task, I want this username to be stored somewhere in the payload or any other variable. Because I want to use this username more far in workflow.so that all configurations are necessary. Please suggest.


    Thank you.

    Hello, please try this feature as below:

    public String getUserLogin() get WorkflowException,
    BPMIdentityException,
    {BPMUnsupportedAttributeException}
    String userId = "";
    IWorkflowServiceClient wfSvcClient;
    ITaskQueryService queryService.
    IWorkflowContext wfContext;

    Get the username of the user login
    String contextStr = ADFWorklistBeanUtil.getWorklistContextId ();
    wfSvcClient = WorkflowService.getWorkflowServiceClient ();
    queryService = wfSvcClient.getTaskQueryService ();
    wfContext = queryService.getWorkflowContext (contextStr);
    userId = wfContext.getUser ();

    Returns the user name;
    }

    Kind regards.

  • How to get the current windows user name

    I was wondering if there is a way to get current pc windows user name in labview?
    If there is a way bwsides navigate manually to the folder user thr and stripping the way please let me know.

    It's one of this method

  • How to get the application firewall settings?

    Hello everyone,

    Can I get the firewall settings in my application? (active firewall / disabled or blocked or unblocked SMS)

    also can I change the settings of the firewall of my application?

    If Yes, then what are the corresponding API for this operation?

    Thanks in advance

    This message by Mark Sohm confirms that there is no API:

    Re: Request for permissions

    http://supportforums.BlackBerry.com/Rim/Board/message?board.ID=java_dev&message.ID=5884&query.ID=166...

  • How to get the Application Module - ADFC-10001

    Hello world

    I use jdev 11.1.1.7 version. In my project, I have a form that is rendered in the portal by clicking on a link. When I click on the link, it opens the form for the first time, if I close the form and try to open it again, it works but if I close and try to open it for the third time, it does not work and it gives an error associated with rendering after debugging the data control. , I realized that somehow, it cannot find the data for the third time control.

    If I use the code to get the below request form

    BindingContainer DCBindingContainer = (DCBindingContainer) BindingContext.getCurrent () .getCurrentBindingsEntry ();

    DCDataControl cDataControl = bindingContainer.findDataControl("ComplianceModuleDataControl");

    or if I use iterator

    BindingContainer links = getBindings();

    DCIteratorBinding dciter = (DCIteratorBinding) bindings.get("CriminalHistoryVO1Iterator");

    RowSetIterator rsi = dciter.getRowSetIterator ();

    It gives an error like this

    javax.faces.FacesException: javax.faces.FacesException: oracle.adf.controller.ControllerException: ADFC-10001: failed to instantiate the class "com.metro.PreQualComplianceBean".

    at com.sun.faces.context.ExternalContextImpl.dispatch(ExternalContextImpl.java:415)

    at org.apache.myfaces.trinidad.context.ExternalContextDecorator.dispatch(ExternalContextDecorator.java:44)

    Caused by: javax.faces.FacesException: javax.faces.FacesException: oracle.adf.controller.ControllerException: ADFC-10001: failed to instantiate the class "com.metro.PreQualComplianceBean".

    at com.sun.faces.application.ApplicationImpl.createComponent(ApplicationImpl.java:261)

    at javax.faces.webapp.UIComponentELTag.createComponent(UIComponentELTag.java:222)

    at javax.faces.webapp.UIComponentClassicTagBase.createChild(UIComponentClassicTagBase.java:513)

    at javax.faces.webapp.UIComponentClassicTagBase.findComponent(UIComponentClassicTagBase.java:782)

    at javax.faces.webapp.UIComponentClassicTagBase.doStartTag(UIComponentClassicTagBase.java:1354)

    Somehow the iterator returns null for third click.

    In summary, in my third click, I can't make the data control, which may cause this problem. This is a really urgent situation. I'll appreciate any help.

    Thank you

    Melis,

    Hi user

    the first thing you should not write these methods to the constructor, instead create method to expose layer model through client and use in taskFlow as default activity

    It is not recommended to use the code in the constructor of beans as if there is that no bean exception will not be instantiated

    Why are you applicationModule at the bean? no need for this just write your code in the AMImpl class and use through the link layer

    It's the best coding practice, you have to try

    Thank you

  • How to determine the Application Server Edition (no version)

    Hi all

    We have Oracle Application Server 10 g 10.1.2.3.0 installed but I'm not sure if the enterprise or Standard Edition is installed. Is there a way to determine which edition is installed?

    I posted the contents of the file $ORACLE_MID_HOME/config/ias.properties below if it helps:

    [ComponentConfig]
    Apache.LaunchSuccess = true
    J2EE. LaunchSuccess = true
    WebCache.LaunchSuccess = false
    JServ.LaunchSuccess = false
    Portal .LaunchSuccess = false
    Wireless.LaunchSuccess = false
    Discoverer.LaunchSuccess = true
    Personalization.LaunchSuccess = false
    Forms.LaunchSuccess = true
    Reports.LaunchSuccess = true
    UnifiedMessaging.LaunchSuccess = false
    SPOM LaunchSuccess = false
    OID. LaunchSuccess = false
    DAS. LaunchSuccess = false
    DIP. LaunchSuccess = false
    OCA. LaunchSuccess = false
    ProcessConnect.LaunchSuccess = false
    IntegrationB2B.LaunchSuccess = false
    WORKFLOW. LaunchSuccess = false
    MODOSSO. LaunchSuccess = true
    JAZN. LaunchSuccess = true
    IntegrationBAM.LaunchSuccess = false
    [InstallData]
    Version = 10.1.2.3.0
    InstallType = company
    Components = Apache, J2EE, WebCache, JServ, portal, wireless, discoverer, customization, reports, forms
    IASname = as_mid.app01.domain.com
    InstanceNamesList = as_mid.app01.domain.com
    IASpassword = 058de5526c44ff19229742d633e2d995e7359684684460ecc8
    IASSvcpassword =
    Username =
    InfrastructureUse = true
    DatabaseManagedClusterSupport = true
    OIDhost = app01
    OIDport = 3060
    OIDsslport = 3131
    SSLOnly = false
    VirtualHostName = app01.domain.com
    InfrastructureInstallOnRAC = false
    JRERuntime =
    JRELocation =
    [InfraStructureDatabase]
    InfrastructureDBCommonName = asp.domain.com
    [EMConfigData]
    IMAdminSupported = True
    IMServerLocConfigurable = True
    IMReposAdminSupported = False
    CentralAdminSupported = True
    MRAdminSupported = True
    FarmAdminSupported = False

    Kind regards
    Leigh.

    Hello

    As far as I can see there no edition information in the YES program.

    But since you have installed forms, in my view, it must be an Enterprise edition.

    >
    Components = Apache, J2EE, WebCache, JServ, portal, wireless, discoverer, customization, reports, forms
    >

    Forms is only available with Enterprise Edition:
    http://download.Oracle.com/docs/CD/B14099_19/core.1012/b14128/editions.htm

    What about Peter

  • APEX4.0 - How to get the Application Builder

    Hello
    I'm new to Apex and I installed Apex4.0 on XE Windows successfully. I could successfully connect you as an 'admin', with 'internal' workspace and see the four menus admin as 'Manage applications', 'Manage the Instance', 'Manage Workspaces', and 'manage activity '.


    Are there any special settings I do see "Application Builder", "SQLWorkshop" etc?

    Basically how to 'Application builder' all things developer.

    Any help is really appreciated.

    I tried "apex.oracle.com", for application builder, but I wish I had in my local machine.

    / regarding
    Murali

    Hello murali.

    You must first create a space of 'real' work and the connection to this workspace.
    To create a workspace, you connect to the internal workspace (i.e., administration of APEX) and follow the instructions as documented here [url http://download.oracle.com/docs/cd/B28359_01/appdev.111/b32258/adm_wrkspc.htm#CHDJFJFA].

    -Udo

  • How can I get the 8.3 file name short AND way?

    We use some old DOS programs and need to use the old format back (filename.xxx). When the files are in the long trees, it is very difficult to find the names of files under Windows.

    There was a response published in Google (http://answers.google.com/answers/threadview/id/522710.html) which works very well under XP, but when I use it in Windows 7, I get the long file name.

    Does anyone know how to do this?  The program can be changed?  Here is the program of this flajason-ga posted, but it must be updated for Windows 7 (I only know how to program in Foxpro).  Thank you, Alan

    Topic: Re: how to get the 8.3 file name short AND path?
    From: flajason-ga on May 27, 2005 10:45 PDT
     

    After my last comment, I read your details a little closer.
    The last script I posted was to list out a whole directory in 8.3 format.
    If you are looking for a friendly way of Clipboard to recover the 8.3
    for individual files, that will be more to your liking.

    Same thing as before. Copy the below into Notepad and save it with a .vbs extension.
    Except that this time, you can simply drag and drop a folder or file icon
    on the .vbs file and it displays the short path in an input box.
    where you can copy the value and use anything you want to.

    If you're industrious, you can also save the .vbs file in your
    Folder "send to" (C:\Documents and Settings\ [yourname] \SendTo) to have
    It is available in your context menu with a right click.

    Set fso = CreateObject ("Scripting.FileSystemObject")

    ' Is a file or a folder?
    If fso. FolderExists (WScript.Arguments (0)) then
    "It's a folder
    Set objFolder = fso. GetFolder (WScript.Arguments (0))
    Refund = InputBox ("this is your short path:", "SHORT PATH", objFolder.ShortPath)
    End If

    If fso. FileExists (WScript.Arguments (0)) then
    "It's a file
    Set objFile = fso. GetFile (WScript.Arguments (0))
    Refund = InputBox ("this is your short path:", "SHORT PATH", objFile.ShortPath)
    End If

    Hello

    Read the following article.

    How Windows generates 8.3 names to long file names
    http://support.Microsoft.com/kb/142982

  • How to get the image tag

    IAM create small Animation in 10 pictures. 1 frame lable called 'Start', frame label name is 'end '. Button click on how to get the current frame label name.

    var frameObj:Object = {};

    frameObj [1] = "start";

    frameObj [this ._totalframes] = "end";

    etc.

  • How to get the computer name - forms 10g

    Hello

    How to get the name of the server or some other identification forms 10g Application?
    We have several servers and host load balancing redirects user to the X Server and the forms application, I have to get information from the server to which the user was redirected? Is there a way how to do?

    It can be the name of the server, Ip or other identifying information...

    Thank you.

    As the client that connects to the database is the application server

    CHE_TEST@tcp_asterix_impl> select sys_context('userenv', 'host') from dual;
    
    SYS_CONTEXT('USERENV','HOST')
    ----------------------------------------------------------------------------
    LINZ\CHE-WS
    

    Should return you the host name of your application server.

    See http://download.oracle.com/docs/cd/B19306_01/server.102/b14200/functions165.htm#SQLRF06117 for more information you can get with sys_context

    see you soon

  • How to get the name of the server instance

    Hi all!!

    First of all, sorry if this is not the place to leave this question, but I didn't know where to post.

    I have a weblogic 9.2 MP3 installed in a x 64 Redhat Linux. It is clustered in 2 cases.
    An application is deployed in both cases, each request between two instances of balancing.

    Of course, a request is responsed by only one instance, and I would like to know how to get the name of the instance that processes a request of some.

    I read that I can send using recorded weblogic mbeans in this way:
    InitialContext ctx = new InitialContext();
    MBeanServer mbean = (MBeanServer)ctx.lookup("java:comp/env/jmx/runtime");
    Then
    ObjectName rs = new ObjectName("com.bea:Name=RuntimeService,Type=weblogic.management.mbeanservers.runtime.RuntimeServiceMBean");
    Set beans = mbean.queryNames(rs, null);
    And finally I iterate over the beans, but I'm not able to retrieve the name of the instance. I suppose that the object name is not appropriate.

    However, I am able to get the name of the server and the two names of instances per a JMX connection to service:jmx:t3://localhost:7001/jndi/weblogic.management.mbeanservers.domainruntime, but this isn't what I want because I need to know what is the instance that is a certain demand.

    Anyone know how I can do?

    Thank you very much and sorry for the English xD

    Published by: mamntc02 on 01/05/2010 05:10

    That should do it...

    private String getServerName() throws Exception {}
    try {}
    Context ctx = new world;
    MBeanServer mbeanServer = (MBeanServer)ctx.lookup("java:comp/env/jmx/runtime");

    String runtimeServiceName = "com.bea:Name = RuntimeService, Type = weblogic.management.mbeanservers.runtime.RuntimeServiceMBean;

    Create ObjectName for the runtime
    RuntimeService ObjectName = new ObjectName (runtimeServiceName);

    Get the object for the ObjectName ServerRuntimeMBean name
    ObjectName serverRuntime = mbeanServer.getAttribute (runtimeService, "ServerRuntime") (ObjectName);

    Get the name of the server
    String serverName = (String) mbeanServer.getAttribute (serverRuntime, "Name");
    If (serverName == null) return "";
    otherwise return serverName;
    }
    catch (Exception e) {}
    throw e;
    }
    }

Maybe you are looking for