DZone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
Refcards Trend Reports
Events Video Library
Refcards
Trend Reports

Events

View Events Video Library

Zones

Culture and Methodologies Agile Career Development Methodologies Team Management
Data Engineering AI/ML Big Data Data Databases IoT
Software Design and Architecture Cloud Architecture Containers Integration Microservices Performance Security
Coding Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks
Culture and Methodologies
Agile Career Development Methodologies Team Management
Data Engineering
AI/ML Big Data Data Databases IoT
Software Design and Architecture
Cloud Architecture Containers Integration Microservices Performance Security
Coding
Frameworks Java JavaScript Languages Tools
Testing, Deployment, and Maintenance
Deployment DevOps and CI/CD Maintenance Monitoring and Observability Testing, Tools, and Frameworks

Curious about the future of data-driven systems? Join our Data Engineering roundtable and learn how to build scalable data platforms.

Data Engineering: The industry has come a long way from organizing unstructured data to adopting today's modern data pipelines. See how.

Threat Detection: Learn core practices for managing security risks and vulnerabilities in your organization — don't regret those threats!

Managing API integrations: Assess your use case and needs — plus learn patterns for the design, build, and maintenance of your integrations.

Avatar

Hari Subramanian

Software Architect at Sabre

Bangalore, IN

Joined Jan 2014

Stats

Reputation: 271
Pageviews: 489.5K
Articles: 7
Comments: 5
  • Articles
  • Comments

Articles

article thumbnail
Penetration Test Types for (REST) API Security Tests
Penetration testing for REST API security provides a comprehensive testing method and is supported by a number of open source and proprietary tools.
February 5, 2020
· 19,587 Views · 4 Likes
article thumbnail
RESTful API Design Principle: Deciding Levels of Granularity
This article discusses a few points on how API designers would need to choose their RESTful service granularity levels.
Updated May 29, 2019
· 20,420 Views · 6 Likes
article thumbnail
Importance of Ubiquitous Language in Domain-Driven Design
Once developers and domain experts speak the same language, production pipelines can move forward more smoothly.
May 21, 2019
· 22,734 Views · 5 Likes
article thumbnail
REST API Security Vulnerabilities
With its increasing popularity, REST APIs pose major security challenges.
February 27, 2019
· 39,653 Views · 15 Likes
article thumbnail
A Quick Look at Big Data Layers, Landscape, and Principles
Get an introductory understanding of different data layers, big data unified architecture, and a few big data design principles.
May 8, 2018
· 8,008 Views · 1 Like
article thumbnail
Convert Java Objects to XML and XML to Java Objects with XStream
Learn how to convert XML objects to Java, and vice versa.
February 4, 2014
· 123,883 Views
article thumbnail
Sonar Installation and Eclipse Plugin
This Document tries to help you install Sonar, analyze your project with your Sonar installation, integrate with Eclipse, clean up violations dynamically, and practice better coding. Table of Contents Sonar Installation Download Sonar Unzip and Install Run Sonar Sonar Console Access your Sonar installation Generate Sonar Report Update your POM with SONAR configurations Example Access your project in Sonar Integrate SONAR with Eclipse Eclipse Sonar Plug-In Installation Eclipse Integration (To install this plugin in the Eclipse IDE) - With Eclipse Market Place Eclipse Integration (To install this plugin in the Eclipse IDE) - With Eclipse Software Update Configure Sonar in your Eclipse Link your project for the first time Analyze and clean up the code violations Run Sonar Analysis in Local Sonar Installation Download Sonar Download the sonar here http://dist.sonar.codehaus.org/sonar-3.5.1.zip and unzip the download to your favorite folder Unzip and Install After Unzip you will see folder structure would look something like as follows.. Figure 1 – Sonar Dir Structure Run Sonar Depends on your OS, you need to run the executable , for an instance if you are running linux-x86 and 64 bit, then you need to run start.sh Figure 2 – Run Sonar Sonar Console After you start the sonar you will see some info as follows after you run the sonar Figure 3 - Sonar Console Access your Sonar installation Now you can browse your sonar installation http:localhost:9000 Generate Sonar Report Update your POM with SONAR configurations After we have the sonar installed, we can generate the reports for any maven project, by adding the following lines in your project pom.xml (sonar hosts in your properties section) Figure 4 - POM XML for Sonar Generation Example Let’s take an example of project-common; do the following steps · Checkout the latest code from repository to your work space · Do mvn clean install · Modify your pom.xml (pom.xml) to have the following under properties section · http://localhost:9000/ · Save the file · Do mvn sonar:sonar in your command / terminal · You will see some messages as following. Figure 5 - Sonar report Generation - I Note: And after few minutes (depends on the size of the modules the sonar report would even take longer) Figure 6 - Sonar Report Generation - II Finally you would see the following that indicates the sonar reporting is completed.. Figure 7 - Sonar Report Generation Successful Access your project in Sonar Now go to you http://localhost:9000 you would see the project report that you ran for Figure 8 - Sonar Project Report at your Local Integrate SONAR with Eclipse Eclipse Sonar Plug-In Installation Eclipse Integration (To install this plugin in the Eclipse IDE) - With Eclipse Market Place Figure 9 - Sonar Eclipse Plug-in Install (Market Place) Figure 10 - Sonar Eclipse Plug-in Install (Market Place) II Eclipse Integration (To install this plugin in the Eclipse IDE) - With Eclipse Software Update Go to Help > Install New Software... This should display the Install dialog box. Paste the Update Site URL (http://dist.sonar-ide.codehaus.org/eclipse/) into the field Work with and press Enter. This should display the list of available plugins and components: Figure 11- Sonar Eclipse Plug-in Install (With Install New Software Menu) Choose Sonar Java, follow the steps and install the plugin Note: Please make sure the project that you want to associate with sonar has already analyzed in your sonar installation Configure Sonar in your Eclipse Configure your local/remote sonar in your Eclipse Go to Window > Preferences > Sonar > Servers. Sonar Eclipse is pre-configured to access a local Sonar server listening on http://localhost:9000/. You can edit this server, delete it or add a new one. Figure 12 - Configure Sonar Server in Eclipse Link your project for the first time Once the Sonar server is defined, the next step is to link your Eclipse projects with projects defined and analyzed on this Sonar server. To do so, right-click on the project in the Project Explorer, and then Configure > Associate with Sonar...: Figure 13 - Configure / Associate your Eclipse Project with Sonar In the Sonar project text field, start typing the name of the project and select it in the list box: Figure 14 - Associate your Eclipse Project with Sonar II Click Finish. Your project is now associated to one analyzed on your Sonar server. Analyze and clean up the code violations Do local analysis and clean the violations Figure 15 - Configure Modules Figure 16 - configure sonar modules from Eclipse Note Please make sure you have started your local sonar server (as described in Run sonar section) otherwise you would not able to see the right sonar project that you intend to configure Run Sonar Analysis in Local Figure 17.a – Set Sonar Analysis on Local Mode Figure 17:b - Run Sonar Analysis on Local Figure 18 - sonar violation analysis console Figure 19 - Sonar violation analysis console II Figure 20 - Sonar violations Markers
January 7, 2014
· 225,737 Views · 3 Likes

Comments

Sonar Installation and Eclipse Plugin

Nov 30, 2014 · Hari Subramanian

please try maven 3, and in case you see issues please post the pom xml and logs.


thanks

Sonar Installation and Eclipse Plugin

Nov 30, 2014 · Hari Subramanian

please try maven 3, and in case you see issues please post the pom xml and logs.


thanks

Convert Java Objects to XML and XML to Java Objects with XStream

Feb 04, 2014 · Hari Subramanian

Nope I didn't try with this heavy 20 mb object. as far as the comparison the first thing come to my mind is ease of use and light weight library. However both does have its own advantages and limitations, and if we start comparing that will leads to good debate :)

BTW you may want to have a look at the FAQ section of XStream, and when I searched I got good amount of benchmarks for both XStream and JAXB

Ref: http://ranajitjana.blogspot.in/2013/05/comparing-xstream-and-jaxb-performance.html (XStream scores here)

http://blog.bdoughan.com/2010/10/how-does-jaxb-compare-to-xstream.html (JAXB scores here)

Hope this helps.

Thanks


Convert Java Objects to XML and XML to Java Objects with XStream

Feb 04, 2014 · Hari Subramanian

Nope I didn't try with this heavy 20 mb object. as far as the comparison the first thing come to my mind is ease of use and light weight library. However both does have its own advantages and limitations, and if we start comparing that will leads to good debate :)

BTW you may want to have a look at the FAQ section of XStream, and when I searched I got good amount of benchmarks for both XStream and JAXB

Ref: http://ranajitjana.blogspot.in/2013/05/comparing-xstream-and-jaxb-performance.html (XStream scores here)

http://blog.bdoughan.com/2010/10/how-does-jaxb-compare-to-xstream.html (JAXB scores here)

Hope this helps.

Thanks


Sonar Installation and Eclipse Plugin

Feb 02, 2014 · Hari Subramanian

you don't need to run maven, but you need to run the local analysis again so that the violations get updated.. to reflect the violations permanently outside the eclipse (in your sonar server) then yes you need to run mvn sonar:sonar.


User has been successfully modified

Failed to modify user

ABOUT US

  • About DZone
  • Support and feedback
  • Community research
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • Become a Contributor
  • Core Program
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 3343 Perimeter Hill Drive
  • Suite 100
  • Nashville, TN 37211
  • support@dzone.com

Let's be friends: