This post is to demonstrate, how to upload the file in FTP location by using java language. This is very simple, and I demonstrate using the apache commons-net library. if you are using, maven then you have to add one dependency which I have mentioned below. Or you can download a jar file of apache-commons-net and put in the project.
Continue reading FTP upload of file using java
This post is about the requirement of JAX-WS endpoint and this is very important to understand minimum requirment to implement. Every one (implementor/developer/architect/lead etc..) should know JAX-WS requirement. By knowing this, you can say, what you should do and what you should not do.
Continue reading Requirements of JAX-WS Endpoint
ClassNotFoundException are two similar exception sound on high level in Java but intent of both type of exception are different. Although every developer must have encountered during development days, some are confused, someone understand , some one try to solve either by googling or another source but one thing is common they encounter this Exception type.
Continue reading ClassNotFoundException in Java
When you work in any application on day-to-day basis you have to convert from string date to java Date and vice-versa. and converting is littile bit easy, and it should be seperate in one class so that you can re-use those method in different places and different layers of application.
Continue reading Java Date utilities Functions
In this post, I tried to demonstrate how to write your query on any xml. XPath is basically used for Querying on a particular XML similar like SQL query on any particular database.
Continue reading XPath Query Example in Java
You have a XML file which you have to validate whether format or data of incoming xml is valid or not. what will you do to achieve this, whether you read and then check one by one or at one go validate all node/elements.
Continue reading DOM Parser: Schema Validator in Java
You know ,
java.util.Date is the complex object, and parsing from string to
Date is little bit complex. but don’t worry, it can be simple once you know the basic things.
JAXB supports to customize marshaling and de-marshaling of
java.util.Date object, meaning that , you can customize your own format of data in xml and and java object. You have to defined
XmlAdapter which control the customization of your data format.
Continue reading JAXB: Date Format Example in Java
Google Protocol Buffer:
Why GPB(google protocol buffer):
We can consider and example and application perform some read/write operation in network. Each user write and read some standard information. So, now the problem occurs in serializable. Serialization and de-serialization is cpu intensive operation which consumes considerable amount of CPU. How we can serialized our application and get data from it.
Continue reading Java with Google protocol buffer
In this post, I tried to demonstrate how to write XML document in file or console using DOM parser. Writing a XML document using DOM (Document Object Model) parser in java is very easy.
Continue reading DOM Parser: How to write XML file in java