Profile cover photo
Profile photo
Noushin Bashir
64 followers
64 followers
About
Posts

Post has attachment
On Kafka
This blog captures steps to install and setup Kafka. For instructions on how to install Kafka, visit: Installation Steps After downloading: untar bundle to /opt/apache-kafka
ln -s kafka_2.11-0.9.0.1 current
cd /opt/apache-kafka/current At this point you can...
Add a comment...

Post has attachment
JAXB & Xml Binding Using XJC
Recently I was given an XML file and multiple Schemas that define the structure of the XML file. Given my comfort level with Java technologies, I decided to use JAXB to marshall/unmarshall XML files. This blog describes the steps I took to work with XML fil...
Add a comment...

Post has attachment
Add a comment...

Post has attachment
Writing RESTful web services using Apache CXF & Spring
In an earlier blog, I showed you how to develop APIs using REST and Spring RS. Since Spring does not fully implement JAX-RS, in this blog, I will show you how to use Apache CXF with Spring to write RESTful web services.

pom.xml: <project xmlns="http://mave...
Add a comment...

Post has attachment
Using SSH to transfer files in Java
In this example, I'll be using JSch library to copy a file from my local server to a remote host.

If using Maven, add the following dependency to your pom.xml file: <!-- for ssh -->
<dependency>
<groupId>com.jcraft</groupId>
...
Add a comment...

Post has attachment
Sending and receiving files via RESTful web services in Java
In this blog, I'll show you how to pass the content of a file to a RESTful web service and have it stored on the server it was received.

First write your CXF service and annotate it as follows: @POST
@Path("saveFile")
@Produces({MediaType.APPLICATION_JSON}...
Add a comment...

Post has attachment
JAXB & Xml Binding
Create an entity bean and annotate it for JAXB Xml binding: package com.noushin.soaws.model;

import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlType;

@XmlRootElement(name="book...
Add a comment...

Add a comment...

Post has attachment
JSON/Java Binding
In this blog, I'll show you how to bind JSON data to Java objects. Let's start with a simple books example. The following JSON file contains a list of books: books.json: [
{"ibsn":"978-0486400778", "author":"Mark Twain", "title":"The Adventures of Tom Sawye...
Add a comment...

Post has attachment
Jython - Calling Python from Java
Let's say you do most of your development in Java, however, there is some existing Python code you need to reuse. In this post, I'll show you how to use Jython to call Python from Java. Write a Java wrapper class: public class JythonDemo {

public int t...
Add a comment...
Wait while more posts are being loaded