View/access log4j application logfile from oj4jadmin

hi,
the application logging is configured by log4j.xml as follows:
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE log4j:configuration SYSTEM "log4j.dtd">
<log4j:configuration xmlns:log4j="http://jakarta.apache.org/log4j/">
<appender name="FILE_APPPENDER"
class="org.apache.log4j.DailyRollingFileAppender">
*<param name="File" value="${oracle.j2ee.home}/log/MyApp.log"/>*
<param name="DatePattern" value="'.'yyyy-MM-dd"/>
<layout class="org.apache.log4j.PatternLayout">
<param name="ConversionPattern" value="%d [%t] %-5p (%c:%L) %x - %m %n"/>
</layout>
</appender>
<logger name="xxx">
<level value="all"/>
</logger>
<root>
<priority value="error"/>
<!--<priority value="debug"/>-->
<appender-ref ref="FILE_APPPENDER"/>
</root>
</log4j:configuration>
The logfile is written to the log directory of oc4j server. Everything is fine.
How can i access/view the logfile from oj4jadmin (path: /em/console/ias/logging/logfiles)?
(OC4J Version 10.1.3.5.0)
Edited by: jens d. on Oct 29, 2010 4:54 AM

Check out the code samples here:
http://www.oracle.com/technology/products/jdev/tips/muench/techniques/index.html
and this how-to:
http://www.oracle.com/technology/products/jdev/tips/muench/mostcommon/index.html

Similar Messages

  • Accessing CAF application service from outside

    Hi,
    Can CAF application service be called from outside the CAF? Example from a pure JSP page?
    Mayukh

    You can also call a CAF service via the EJB protocol from JSP.  Each CAF Service gets deployed as a Stateless Session bean.  You can view these in the IDE if you switch to the J2EE perspective in your CAF project.

  • I get a (-50) error when wanting to access the application store from my PC. There is no parental block on my Kaspersky security. Please assist

    I get an error (-50) when trying to access the app store on my desktop PC. I have no kaspersky parental blocks active. Please assist!!

    Try Here  >  http://support.apple.com/kb/TS1583
    And See this Discussion...
    https://discussions.apple.com/thread/4204776?start=0&tstart=0

  • Accessing Application Scope from an EJB

    I'm not sure of the best way of doing this:
    The set up:
    We have a rather large J2EE application that is composed of only servlets and JSPs at the moment (When the application began development EJB was in its infancy and not feasible for the development of the app). Some of the new deployments of the app involve distributed webserver over 4 JVMs and 2 machines. When a user connects the servers load balancing decides which particular JVM they should be connected to. We perform large data caching into the servlet application scope to avoid having to access the database every time a change is made by a user to certain tables in our database. The data caches are stored in hashtables in the servlet application scope.We seem to have no way to determine what other JVMs are running or which JVM a user is currently connected to.
    The problem:
    Apparently the application scope is for a particular JVM. This means that when a user makes a change to a data cache the change doesn't effect users in the other 3 JVMs of the application, only the users who, due to load balancing, happened to be connected to the same JVM as the one where the change was made.
    Our possible solution:
    We were thinking that we could set up a queue (such as MQSeries from IBM) and any time a change is made to one of these data caches put a message on the stack saying that the particular table had been updated. Then a MDB would be listening asynchronously and digest the message from the Queue and recache the tables from the database.
    So here are my questions:
    1. Would this work? Would putting a MDB in the EJB Container give each JVM the MDB in the first place, or would this mean it would pick one of the JVMs to deploy the MDB on and still not fix our problem.
    2. If this does work, how do I access the hashtables stored in the Servlet Application scope from the MDB. I can't seem to find any method available to the MDB (or any EJBs for that matter) that can access the servlets Application scope.
    3. Is this the best way to do this? Or is there a better way to share data between seperate JVMs that I don't have a URL to (It's all ambiguous and handled by the server as to which JVM actually gets the connection.)
    Just in case this is needed:
    We are running IBM WebSphere 5 Application Server and the database could be anything from DB2 to Oracle.
    Thanks in advance for any possible help.

    You wont get any api for directly accessing Servlet application objects from any ejb. I dont think MDB either solves your problem directly. Indirectly you can place a request to some servlet (should be there for each JVM and web application ) and update your application scope variable. I would suggest you to cache the data in database if the size of cache is large. otherwise any open caching tools may help you.

  • ACCESSING APPLICATION SCOPE FROM FILTERS

    HI
    Is there any way to access the application scope from inside security filters? i have a class that implements the Filter interface and i'm trying to access the application scope in the doFilter method.
    The FacesContext Object is null, and i'm only able to access the session scope using request.getSession()
    I want to check for global application properties that are saved in the application scope.
    Thanks

    thank you BalusC it's working

  • How to access application state from stateless web service?

    I have a beginner J2EE question. After reading through J2EE tutorial, I still don't know how to create an application that would run on J2EE server, and which would have a web service interface to other world, and which would have several threads running, which would connect to other enterprise applications via TCP? Because if I understand it correctly, web service requires a stateless session bean, which means that it can't access any stateleful session bean (except always create one and remove it instantly). So there seems to be no way to store application state and have running threads.
    I'm asking this because .NET seems to have a very simple Application dictionary, which can save all application objects, including threads, and it is very easy to access this Application state from a stateless web service. Isn't there any similar functionality in J2EE? And if not, how it should be done in Java world then?
    I guess that the Connector architecture could be the solution, but it is not documented in the tutorial.

    There's nothing in the J2EE spec that says that you have to use Web Services. Web Services by definition are stateless.
    If your requirements are that you have to use a session bean along with a Web Service, then the architecture needs to be rethought, because it doesn't seem to me that Web Services are what you want.
    That said, you can use a hybrid. You can expose some of the functionality of your application as Web Services while the remaining is implemented in a classic J2EE type framework that is stateful.
    I would also think that you could store your application state via entity beans. You could save and load them when the web service is accessed. An entity bean doesn't require a database... just some form of persistence (could be an XML file for instance).
    You need to decide which components of J2EE make sense when and where.

  • Accessing HTMLDB application outside of firewall....

    If I develop an HTMLDB application on my database server that is inside my corporate firewall, how do I have people outside the firewall access it. Do I need to open one or more ports on the firewall? Using the same situation, is it possible to access this application externally from a Portal page?
    Thanks,
    Brett

    As already mentioned this issue is not really an Apex issue, but an issue between your webserver ports and your InfoSec firewall folks. You also want to consider whether the data is sensitive enough to warrant HTTPS with SSL encrypted traffic rather than straight HTTP. At our institution we generally require HTTPS for corporate data but since the encryption requires a lot of processing it affects your application server performance. We have gone to a BigIP switch for all our HTTPS public ports, then from BIgIP to the app server we are behind the firewall and run http. So the Public Portal URL is https to the BigIP which then negotiates with the App servers. Our Network BigIP engineer works out the fiewall rules with our InfoSec folks. This approach offloads all the encryption processing to a dedicated hardware switch rather than to the app server. BigIp also allows for additional rules that can be set up to force certain URLs to require a VPN, for example.
    Pat

  • Cannot Access Application Module from View Project (Swing)

    I recently started a new application workspace as a Swing project with Business Components. Jdev created 2 projects by default, a Model and a View. The model works fine, all the business components are funtctioning and the DB connection is good. When i try to create a reference to the application module in my View project i constantly get 'Class Not Found' exceptions no matter what i do. I am using the jbo.client.Configuration.getRootApplicationModule('amName', 'amConfig') method.
    What am i missing? How do i instantiate my application module from my View project?
    Thanks a lot.

    Just had to add the Model to the classpath...

  • ADF view access from DataForwardAction - help

    Hi,
    i want to access an view object which is unrelated to any page bindings in the findForward method of a DataForwardAction class. How do i register the Application module and view objects with the UIModel for the UIX Datapage?
    At the moment, it cannot find the view object:
    ViewObject vo = ctx.getBindingContainer().getApplicationModule().findViewObject("UserRoleFunctionsView1");
    this results in an internal server error:
    oracle.jbo.NoObjException: JBO-25003: Object UserRoleFunctionsView1 of type View Object not found
    i have tried adding a data model binding on the UIModel assigned to the page, but this does not fix the problem.
    can someone please advise what the correct setup procedure is?

    The getApplicationModule() method of binding container is for upward compatibility of JClient applications coming from pre-9.0.5 JDeveloper.
    The correct way to get your application module from your DataAction, as noted in the ADF Data Binding Primer white paper and as illustrated in the ADF Toy Store Demo, is to:
    ApplicationModule am = (ApplicationModule)ctx.getBindingContext().findDataControl("YourAMNameDataControl").getDataProvider();If you have exposed custom AM methods on your client interface, you can use this instead to cast the ApplicationModule to the YourAMName interface:
    YourAMName am = (YourAMName)ctx.getBindingContext().findDataControl("YourAMNameDataControl").getDataProvider();

  • Accessing view object class (impl) method from bean (or vice versa)

    Halo everyone, I am using JDeveloper 11.1.2.1.0
    I have a UsersViewImpl class with a method which refresh the user table like below.
    public void resetEmployeeSearch() {
    removeApplyViewCriteriaName("viewCriteria");
    executeQuery();
    and I have a UserBean class with a method which reset the search fields values like below.
    public void resetInput(ActionEvent actionEvent) {
    ........RichInputText = input ...
    input.setValue("");
    AdfFacesContext.getCurrentInstance().addPartialTarget(searchForm);
    I would like to implement it in such a way that, once I press a button, both methods will be called.
    I have tried to call from bean method using UsersViewImpl vs = new UsersViewImpl ..... which is wrong and wont work.
    I have read about doing something like ViewObject vo = am.findViewObject("DeptView1") but I duno how to use it because I cant have a proper example.
    Any suggestion on accessing view object class (impl) method from bean (or vice versa)?
    Or is there any way to combine both method in the same class ?
    Thank you :(

    User, if you get class not found exceptions you need to tell us which classes you can't find. The JSFUtils and ADFUtils classes needing some other libraries which should already be part of your Fusion Web Application template (which your adf application should be based on). If you did not use this application template, you may have to add some libraries yourself.
    What is the diff of using the ADFUtils and OperationBinding way?
    The ADFUtils can get you access to the application module which you then use to call exposed methods on. The disadvantage of doing this is that you have to implement your own exception framework which then handles exceptions thrown by the application module. An other thing is that if you e.g. alter a VO which you use on the page this changes are not seen on the page until you refresh the page. The binding layer does not know about these changes so the iterators (which are used on the page to show the data) are not refreshed and so you don't see the changes.
    In general you should avoid using the application modul in a managed bean method and always use the binding layer (OperationBinding) to call methods. This ensures that exceptions are all handled the same way and that changes to the data model are reflected in the GUI.
    Timo

  • How to access internal table data from webdynpro to Flex application.

    Hi Connoisseur
    The data transfer from Abap WebDeypro to flex island works well. I followed , there is an example from Thomas Jung (by the way as always Great Work) and  Karthikeyan Venkatesan (Infosys) but this example covers simple type only.
    There is no example with complex types like arrayCollection which handle the transfer of data from flex to WebDynpro.
    i tried to do pass internal table value  to flex-datagrid.but its not work.
    i would like to know
    1.how to access internal table data from webdynpro to Flex application.
    2.how to pass the internal table to flex-datagrid.
    2.how to pass dynamically in ADOBE flex.
    3. how to do Flex is receiving the wd context data?
    4. how can we update WD context with FLEX data.
    Ple give me sample example and step by step procedure.
    Regards
    laxmikanth

    Hi Laxmikanth,
    Please refer this...
    Flash island: update complex type from flex
    Cheers..
    kris.

  • Accessing AM Client Interface from Web Application

    Hi,
    I am trying to access some client interface methods that I developed on my application module from a backing bean on my web application and have trouble doing so.
    Some background on the problem,
    Basically when logging into our application from the front-end, we have to authenticate the user against some custom security code. Part of this code is to validate the user against the Oracle database (i.e. valid oracle db user, and password is valid password to log onto Oracle database). To do this, I developed Client Interface methods on an Application Module. When using the BC Tester in jdev 11g (the latest release), these methods work 100% and validation occurs. On our logon page, I bound these methods to the page definition file. When I then try in the backing bean to call this method, using the code from the ADF 11g Dev guide as below, the DataControl on the action is null at point 3. It does seem to find the action find. I have also tried to actually use the "setParams" method on the action, and then tried the execute(), invoke() + getResult(), and doIt() + getResult() methods, of which none seems to work. All these go past the execute/invoke/do part, but the return value on the execute, as well as the return value from the getResult calls are null.
    public String commandButton_action() {
    // Example using an action binding to get the data control
    public String commandButton_action() {
    // 1. Access the binding container
    DCBindingContainer bc = (DCBindingContainer)getBindings();
    // 2. Find a named action binding
    JUCtrlActionBinding action = (JUCtrlActionBinding)bc.findCtrlBinding("SomeActionBinding");
    // 3. Get the data control from the iterator binding (or method binding)
    DCDataControl dc = action.getDataControl();
    // 4. Access the data control's application module data provider
    ApplicationModule am = (ApplicationModule)dc.getDataProvider();
    // 5. Cast the AM to call methods on the custom client interface
    StoreServiceAM service = (StoreServiceAM)am;
    // 6. Call a method on the client interface
    service.doSomethingInteresting();
    return "SomeNavigationRule";
    Can somebody perhaps tell me what I am doing wrong, or of a better approach to resolve this problem. If any more info is needed, please let me know.
    I did think about binding the action directly to the logon button on the jsf page, but unfortunately there is additional logic/code that is currently in the backing bean that I do not want to move down into the business components, and some code like the lines below that can not be moved.
    HttpSession session = (HttpSession)externalContext.getSession(true);
    session.setAttribute(SecurityFilter.SESSION_ATTR_USER, securityDto.getUsername());
    session.setAttribute(SecurityFilter.SESSION_ATTR_SECRET, securityDto.getPassword());
    session.setAttribute(SecurityFilter.SESSION_ATTR_ROLES, securityDto.getRoles());
    return "logonSuccess";
    Will really appreciate any help.
    Tx
    Drikus

    Hi,
    I managed to find some sort of work around.
    I actually dragged and dropped the Client Interface for the custom method from the datacontrol onto my jsf page and created an additional button. I then ran the application and everything worked. Afterwards I went back to my jsf page and removed the newly added button again and removed the newly added methods from my page definition file as well. When I run the application now, the exact same code that I used previously, now seems to work. I changed it to use the findDataControl method as Frank suggested, and that also works now.
    What i can not figure out though, is what exactly the the dropping of that dataControl method and removing it again changed on my application to make it work now. Can somebody please try this and see if they can find the answer. I have done a small little sample application where I can replicate the problem exactly which I can provide the steps to if needed.
    Drikus.

  • How to view the PCUI application  from CRM system

    Hi
    I am new to CRM  can anyone tell me how to open the PCUI application in CRM system  .what is the transaction code to view the PCUI application for the lead and opportunity transactions. cany anyone tell me step by step process to view.
    regards
    Rohit

    HI
    The People centic user interface is the user interface layer where the end user process the crm transactions etc.
    go to SE 80 transaction and select the application as BSP application becouse pcui is bsp based views. type crm_bsp_frame under the application field and you will get folders select the select.htm folder and right click on the mouse and click on test then you will get the popup window enter the crm system user id and password you will get the pcui floor plan for entire crm applications in the browser select the lead and opportunity transaction floor plan click on the new floor plan option. then the new popup window will open and finally you will see the lead transaction or opportunity transaction pcui view to work on . these pcui views url will inturn you can assign to the enterprise portal to log on to single sign on to EP and access the pcui application for crm marketing sales and service module areas as well along with the contact and account mangement for business partners creation screen.
    please do reward points if helpful
    Dinaker vikas

  • Why can't access my application from different IP region.

    I use the default configuration in the installation process.
    software package is as_windows_x86_101300_disk1.zip
    All the servers have IP address like 10.37.71.***
    after i deploy my application server, local machine can access my application and other servers can access it.
    But the users with ip 10.37.88.*** can't access my application and internet users can't access it too. They only can access the default home page of ias, and can't access em too.
    I don't know what the problem is.
    Another problem is that, if i change the defaultWebApp from "default" to "myApp", the service can't be started. I want to know how to set myapp as the default application.

    I installed the oracle application server 10g using default configuration. and didn't modify any configuration file.
    The installation package is downloaded from oracle web-site without license. has it any difference from the package delivered by oracle.

  • Accessing SAP Transaction screen from other application

    Hi Friends
    We have a requirement where we want to access a transaction screen from some other application.
    Is there any standard BAPI for doing this (R3 or CRM) ?
    Kindly help ....
    Best Regards

    Hello Pankaj,
    In CRM you can use Function Module TRANSACTION_CALL_VIA_RFC to open a transcation screen in another system. This FM takes RFC Target System and TCode as inputs and opens the transaction in the specified system (provided Logical System Name & RFC Connection has been properly made)
    If it is IC Web Client, you can use transaction Launcher to do the same, follow the blog created by Raja G for the same.
    The link to which I am providing underneath:
    /people/raja.g/blog/2007/01/24/displaying-r3-transaction-in-icwc-application
    Regards,
    Khushboo
    <b>Reward with points !</b>

Maybe you are looking for

  • Tried to open new POP account - disaster

    Hi there, I wanted to change over my mail address from one yahoo account to another. When I tried to do this ie: added another account, I typed in exactly the same incoming mail server as the original yahoo address. It tried to check connection to PO

  • Standard Workflow for ESS changes.

    Hi Experts, We have a requirement where we need to change the Employee personal data and it has to be approved by the manager and then update the database. We can do it by custom workflow, but is there any standard workflow template for this process

  • Transferring slide shows in full resolution

    I'm trying to transfer my old slide shows from an older version of iPhoto to my new computer with iPhoto '08. When I try to export the slide shows they are reduced to a low resolution, not suitable to show on the television. How can I transfer them i

  • Howto enable spdif output through the combo ja

    I have an Audigy model #sb0090 I am running Vista Home Premium I am connecting this computer to my Dolby 5. receiver. Creative Vista drivers are installed and reporting no errors. On the back of the Audigy card there is a digital output jack labeled:

  • Information Broadcat error

    HI all, We have a report in Portal published through Information Broadcast. I am new to this Broadcast,(as the report is earlilerly designed and published to portal). Now users are saying that the report is not getting updted,i.e. it is giving the sa