Google ads Horizontal

Wednesday, April 19, 2017

How to connect DB2 Server using putty

* Login server using server username and password (this user have to have required permission to access DB2)
db2 "connect to db user un using pwd"

change below values as you required:
DB Name: db 
Logged in Username: un 
Logged in password: pwd

Thursday, April 6, 2017

Let me share the simple way to enable the remote debugging mode in tomcat with eclipse (Windows)

Step 1: open bin/startup.bat file
Step 2: add the below lines for debugging with JDPA option (it should starting line of the file )

  • set JPDA_ADDRESS=9090
  • set JPDA_TRANSPORT=dt_socket

Step 3: in the same file .. go to end of the file modify this line -

    call "%EXECUTABLE%" jpda start %CMD_LINE_ARGS%
    instead of line
    call "%EXECUTABLE%" start %CMD_LINE_ARGS%

step 4: then just run bin>startup.bat (so now your tomcat server run in remote mode with port 9090).

step 5: after that lets connect your source project by eclipse IDE with remote client.

step6: In the Eclipse IDE go to "debug Configuration"

step7:click "remote java application" and on that click "New"

step8. in the "connect" tab set the parameter value

   project= your source project
   connection Type: standard (socket attached)
   host: localhost

step9: click apply and debug.

so finally your eclipse remote client is connected with the running tomcat server (debug mode).

Hope this approach might be help you.

Ref: Link