Posts

Installing IBM WebSphere MQ 8.0 in Ubuntu

Image
IBM WebSphere MQ is messaging for applications. It sends messages across networks of diverse components. Your application connects to IBM WebSphere MQ to send or receive a message. IBM WebSphere MQ handles the different processors, operating systems, subsystems, and communication protocols it encounters in transferring the message. If a connection or a processor is temporarily unavailable, IBM WebSphere MQ queues the message and forwards it when the connection is back online.   What can IBM WebSphere MQ do for users?   IBM WebSphere MQ sends and receives data between your applications, and over networks. Message delivery is assured and decoupled from the application. Assured, because IBM WebSphere MQ exchanges messages transactionally, and decoupled, because applications do not have to check that messages they sent are delivered safely. You can secure message delivery between queue managers with SSL/TLS. With Advanced Message Security (AMS), you can e...

Google Summer of Code - Newbie thoughts

Image
Google Summer of Code is a global program focused on bringing more student developers into open source software development. Students work with an open source organization on a 3 month programming project during their break from school. In this post I thought of giving you some information on my experience about getting selected in Google Summer of Code. Brand yourself To get accepted in summer of code , a good proposal is not enough.You have to interact with the community and convince the people in the society that you are capable of doing things.One thing you can do is blogging.Through your blog you can share the knowledge that you have gained through your researches on the selected product of the company.(Apache,WSo2 etc..) .In the blog you can also include the personal ideas about the product and the errors occurred during your research.You may think that they are not very useful.But actually they are the most important information to an open source company so ...

SFTP file Transfer using JSch

Image
JSch(Java Secure Channel) is a Java implementation of SSH2, which allows you to connect to a sshd server and perform various operations like File Transfer, Port forwarding, etc. JSch is distributed under BSD License and you could get the jar from their official website or SourceForge. JSch is also available in the Central Maven Repository. Here’s how you could use JSch for file transfers on SSH2. Below are the four steps that you need to transfer files: Authentication Connection Set Path Transfer First we need to create a session with an authentication either by password or SSH keys. JSch jsch = new JSch(); Session session = jsch.getSession(CredentialsManager.getUser(),                 CredentialsManager.getHost(), CredentialsManager.getPort()); session.setPassword(CredentialsManager.getPassword()); java.util.Properties config = new java.util.Properties();        config.put("StrictHostKeyChecking"...

Into the wild 2 - Setting up Apache Bloodhound in a windows environment

Image
Apache Bloodhound is an open source web-based project management and bug tracking system. The program is built on top of Trac. It is developed and maintained by volunteers at the Apache Software Foundation. The project was initially submitted to the Apache Incubator by WAN-disco after integration with an issue tracker was the most requested feature for uber-SVN. Bloodhound graduated from the incubator on 2013-03-20 and became an Apache Top Level Project. Bloodhound is written in the Python programming language and released under the Apache Software License.There are number of tutorials on how to setup Apache Bloodhound on an Ubuntu environment but there are less tutorials for Windows environments. First you need to have following installed in your computer. Python setuptools pip virtualenv First install python (version sho2.7.9 >= version < 3.0 )  on your computer and set the environment variables.Assume you have installed python 2.7 versions on C drive.So yo...

Java 8 - Default Methods and Enhanced Stream API

Image
In this post we'll talk about Java 8 default methods and new stream API.First let's go back and talk about how previous Java versions handled interfaces and what are the rules applied.For that we'll implement simple intrface which gives us time details. public interface TimeClient {     void setDateAndTime(int day, int month, int year, int hour, int minute, int second);     LocalDateTime getLocalDateTime(); } As you can see all the methods are abstract and do not have a method body.Let's implement this interface in a class and add method bodies to the methods. public class SimpleTimeClient implements TimeClient {     private LocalDateTime dateAndTime;     public SimpleTimeClient() {         dateAndTime = LocalDateTime.now();    }    public void setDateAndTime(int day, int month, int year, int hour, int minute, int second) {         LocalDate dat...

In to the wild..!! (Cross-platform mobile application development)

Image
Let's discuss about something interesting (not related to Java) today." Cross-platform mobile application development" . I got an opportunity to look into cross platform application development and I thought of sharing the knowledge I gathered with you as there are no sufficient amount of tutorials online on how to start cross platform application development. Cross-platform mobile development is the creation of  apps  that are compatible with multiple  mobile operating systems . Originally, the complexity of developing mobile apps was compounded by the difficulty of building out a back end that worked across multiple platforms. Although it was time consuming and expensive, it was often easier to build  native applications  for each  mobile operating system  (OS), even though very little code that was written for each operating system could be re-purposed . There are several tools in the market that we can use to develop cross platform mobile ap...

Java 8 - Method references

Image
We'll add another field to our simple student management application. LocalDate birthday; Now the constructor of the class would look like this. Person(){} Person(String name, String emailAddress, int age, Sex gender,LocalDate birthday) {         this.name = name;         this.emailAddress = emailAddress;         this.age = age;         this.gender = gender;         this.birthday = birthday;  } We'll modify our student database with the new field. List<Person> peeps=new ArrayList<>(); LocalDate today=LocalDate.now(); peeps.add(new Person("Hasitha","hasitha@gmail.com",23,Sex.MALE,today)); peeps.add(new Person("Nadishan","nadishan@gmail.com",25,Sex.MALE,today.plus(1, ChronoUnit.DAYS))); peeps.add(new Person("Jayasundara","jayasundara@gmail.com",18,Sex.MALE,today.minusDays(2))); Somebody may tell you "Hey can you sort the students according to their b...