Posts

Web Service, Implementing a

Image
The blog is migrated to https://thiloshon.wordpress.com     Web Services are the most important elements of service oriented communication over the Internet. Knowing the underlying concepts of web services and how it has evolved over the time is very much expected from programmers. We might know pure Java or any other languages top to bottom but if we don’t know how its implemented in an industry or enterprise scenario there is not much use in what we learned. In the previous blog I covered many concepts and theories behind web services. In this blog let’s build a simple calculator web service in Java using GlassFish as application server and SOAP as the protocol. Let’s dive in. Building a web service I am using Netbeans in this blog since its very convenient to configure GlassFish server. IntelliJ IDEA can be used too but integrating server is a bit tedious. In the Netbeans create a new project. Select ‘Java Web’ as Category and ‘Web Application’ as Proje...

Web Services, The Theories and Concepts of

The blog is migrated to  https://thiloshon.wordpress.com          Web Services are the most important elements of service oriented communication over the Internet.  Knowing the underlying concepts of web services and how it has evolved over the time is very much expected from programmers. We might know pure Java or any other languages top to bottom but if we don’t know how it's implemented in an industry or enterprise scenario there is not much use in what we learned. In this blog I cover many concepts and theories behind web services. In the subsequent blog  I'll cover how to build one in Java using GlassFish as application server and SOAP as the protocol. Let’s dive in. What is a web service? Let’s start with a simple scenario. You go to HSBC in Kollupitiya and deposit 50 000 to your account. And then you go to HSBC in Wellawatta and try to get that 50 000 back. Can you get your money back? Of course you can. But you deposited...

Dijkstra’s Algorithm For Path Finding Problems

Image
The blog is migrated to  https://thiloshon.wordpress.com       The path finding is one of the most common problems found in computer science, especially in game development and AI. The problem has been analyzed, scrutinized and dissected by various people and several possible solutions and algorithms have been implemented. The important part is not to implement one by ourselves but to understand what each does and how its effective from one another. In the CW, this is exactly what’s expected. You don’t necessarily have to implement the best solution. You just have to implement one and understand how efficient it is. I.e. derive the growth rate.  It can be a slow algorithm. If its slow say its slow and justify why its slow. Derive the growth rate and support your rationale. I’m using the Dijkstra’s Algorithm in this blog to find the shortest distance path. Don’t be intimidated by the name of the Algorithm, its fairly simple one. It uses Greedy Algorithm wi...