Aller au contenu
  • Nos offres
  • Blog
  • Contact
  • Carrières
Menu
  • Nos offres
  • Blog
  • Contact
  • Carrières
Inscrivez-vous à la newsletter

Inscrivez-vous à la newsletter

Abonnez-vous maintenant et nous vous tiendrons au courant.
Nous respectons votre vie privée. Vous pouvez vous désabonner à tout moment.

Blog

  • Accueil
  • Actualités
  • Cloud
  • Infrastructure
  • Données / Sécurité
  • Intégration
  • Dev / DevOps
  • SAM / FinOps
Menu
  • Accueil
  • Actualités
  • Cloud
  • Infrastructure
  • Données / Sécurité
  • Intégration
  • Dev / DevOps
  • SAM / FinOps
  • le 14/02/2014
  • Romain Testu
  • Home page @en

Debug your Webcenter Content services

Partager sur linkedin
Partager sur twitter
Partager sur facebook

I have recently worked on a big Webcenter Content project and have discovered some new tools that could help you in your projects …
Webcenter Content services are executed by the Webcenter Content service engine and you can’t test them until they are deployed … You know that deploying a new release of your Java service can be costly … Deploying the JAR, restarting the server, etc. Stop losing 10 minutes each time you want to test something while trying to solve an issue, use the remote debugger !
This article will help you to configure your developmnent environment to use remote debugging.

Weblogic side

To be able to communicate, JDeveloper and Weblogic have to be configured. First step, configure the Weblogic server start to enable remote debugging on the port : PORT_NUMBER.
Go to the Weblogic console, find the « Server Start » properties and add the following line :

-Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=PORT_LIBRE,server=y,suspend=n -Djava.compiler=NONE

Restart Webcenter Content …

JDeveloper side

You have to configure your java project to enable remote debugging …
Nothing could be easier … Just right-click on the project, select « Project Properties » and follow the below instructions :
 
Edit the default profile :

  1. Check « Remote Debugging » option
  2. In the « Remote » section, fill the address of the target server and the port you specified earlier in the JVM start properties

Tests side …

Once you’ve deployed the java service (or filter), just start the remote debugger with a right-click on the project :
 
JDeveloper is now listening to the Webcenter Content engine and as soon as your service is executed, the execution will be stopped on the first breakpoint.
Then you’ll be able to follow the execution step by step and check the memory state like the content of the binder, etc.
 
A few words about the above screenshot :

  • The blue line indicates the current breakpoint
  • The « Data » tab on the right helps you checking the memory : viewing variable values, etc.
  • The « Watch » tab is a shortcut. It identifies the main variables you want to check quickly (just drag and drop the variable in the area

Hope this article will help you !
Romain.

Romain Testu
Romain Testu
Voir tous ses articles

Laisser un commentaire Annuler la réponse

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Articles récents
  • Azure Database pour PostgreSQL [PaaS]
  • Azure Logic Apps : l’outil d’intégration Cloud de Microsoft
  • Purge automatique des archivelogs en PL/SQL
  • ASM et l’importance du usable_file_mb
  • Préparer un Windows Server 2003 pour une migration sur Azure

Mentions légales & Politique de confidentialité

En poursuivant votre navigation, vous acceptez l'utilisation de cookies tiers destinés à réaliser des statistiques de visites et de suivi. Accepter Refuser Personnaliser En savoir plus
Politique de confidentialité et cookies

Politique de confidentialité

Les informations collectées au travers de nos cookies sont exploitées à des fins statistiques (Google Analytics).
Google Analytics
Enregistrer & appliquer

8 JUIN 2022 A PARIS | 8H30 - 18H30

TECH FOR CLIMATE ?

Opportunités et limites de la technologie pour faire face au défi climatique

Programme & Inscriptions

Un évènement imaginé avec 🖤 par Constellation