printing sop  in Jdeveloper console while remote debugging

Posted on 2004-11-25
Last Modified: 2012-06-27

i am doing remote debugging oc4j and jdeveloper

system.out.printlns will be logged  in oc4j container;

but when i debug i want to display these o/p in Jdeveloper console .should i change the batch file?

set path=c:\j2sdk1.4.2_06\bin;
java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=7777,server=y,suspend=n -Xmx512m -Djdbc.connection.debug=true -Dp6.home=C:\OC4J_EXTENDED\j2ee\home\lib -Dp6trace=true  -jar C:\OC4J_EXTENDED\j2ee\home\oc4j.jar  -userThreads -verbosity 10 -out log\std_out.log -err log\std_err.log

Question by:chaitu chaitu
    LVL 13

    Expert Comment

    as far as i know u can't do this but can monitor the outputs at the files *.log u specified in ur command
    LVL 20

    Author Comment

    by:chaitu chaitu

    once i compile the servlets
     Is it must to shutdown the container;

    in tomcat there is no need to shutdown the server if u made changes in server.xml change the  option loadable="true" ;

    is there any option in oc4j for hotdeployment?
    LVL 13

    Accepted Solution

    yes it has hotdeployment, in ur server.xml if u have ur application ear defined like this:

        <application name="tawla" path="c:\myfolder\myAppEar.ear" auto-start="true" />

    if u rebuild ur ear again, OC4J will update automatically no restart is needed
    LVL 20

    Author Comment

    by:chaitu chaitu
    i already build my ear using ant and deployed in the container and is running;

    i will make the change in server.xml as u said.

    now i will come to the Jdeveloper workspace

    i changed one servlet file in web.jpr workspace

    once i compile the servlet in the jdeveloper

    jdeveloper o/p path is C:\OC4J_EXTENDED\j2ee\home\applications\ETEAGL3170020041102\etrans\WEB-INF\classes

    i am putting class file directly to container.

    now should i shutdown my container.
    LVL 13

    Expert Comment

    yes suppose too, OC4J monitor the changes based only on 2 changes:

    1- changes in directory C:\OC4J_EXTENDED\j2ee\home\applications
    2- changes in defined ears in server.xml

    important! if u r going to use server.xml ear definition, then u must remove ur deployment from C:\OC4J_EXTENDED\j2ee\home\applications
    for the same application only one deployment is allowed

    LVL 20

    Author Comment

    by:chaitu chaitu
    so in ur opinion it should work what i am doing;i wil check it out

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How to run any project with ease

    Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
    - Combine task lists, docs, spreadsheets, and chat in one
    - View and edit from mobile/offline
    - Cut down on emails

    Suggested Solutions

    An old method to applying the Singleton pattern in your Java code is to check if a static instance, defined in the same class that needs to be instantiated once and only once, is null and then create a new instance; otherwise, the pre-existing insta…
    Introduction This article is the second of three articles that explain why and how the Experts Exchange QA Team does test automation for our web site. This article covers the basic installation and configuration of the test automation tools used by…
    Viewers learn about the scanner class in this video and are introduced to receiving user input for their programs. Additionally, objects, conditional statements, and loops are used to help reinforce the concepts. Introduce Scanner class: Importing…
    This tutorial covers a step-by-step guide to install VisualVM launcher in eclipse.

    761 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    6 Experts available now in Live!

    Get 1:1 Help Now