Java, Software Development

Run Java Applications from Apache Ant and a build file

Back in the day, Apache Ant was king. Nowadays, it is Apache Maven. This post shows how to run a Java application from Ant because using the java compiler alone

Read More...

Java, Software Development

Java – Convert JavaBean Using XMLEncoder and XMLDecoder

This post shows how to use the Java classes XMLEncoder and XMLDecoder to convert JavaBean objects to XML and back. Note that they support the specifications for JavaBeans to make

Read More...

Java, Software Development

Remove XML Element based on parameter in Java using XSLT

This post shows how to remove an XML element based on some parameters in Java using XSLT. We mean parameters for the Transformer object and let XSLT work its magic

Read More...

Software Development

How to configure Log4j to log to console

Okay, you wrote a lot of Log4j debug statements all over your codebase but do not want them to appear in QA and/or Production environment. How to do that? You need to configure Log4j by modifying log4j.xml. You could also use log4j.properties in place of log4j.xml but some advanced settings can only be set using the latter. Might as well use something that offers greater benefits.

Read More...

Software Development

How to Log to Separate Files in Log4j2

You have a batch application that reads, parses interface files (i.e., data files from other sources usually legacy systems), and inserts data into your batch application’s database. All logs are

Read More...

Java, Software Development

Generate Java classes from WSDL files using cxf-codegen-plugin

This post demonstrates how to generate Java classes from WSDL files using cfx-codegen-plugin. This means we require Maven for this purpose.

Read More...

Java, Software Development

Write Out XML Tags in Java using Lambda

Missed writing out an XML element end tag in your Java codes? You’re not alone. It is acceptable for small XML documents because spotting the erring codes is relatively easy.

Read More...

Rust, Software Development

Rust – Generate EPCIS 1.2 XML With Sample Codes

Processing a considerable number of large XML files may require a lot of memory and processing power. With Rust, we can create applications that process huge XML files with a

Read More...

Java

How To Validate XML String against XSD Without Writing To A File

This post shows how to validate XML string data against XSD files in Java. Most of the time, we work directly with XML files instead of string format. We point

Read More...

Java, Software Development

Web Service Using Apache XML-RPC: Server And Client-Side

This articles demonstrates how to use Apache XML-RPC in Java command-line applications. We will create programs both for XML-RPC server and client.

Read More...