Microservice Vs. Monolith architectures Systems.


Very nice comparison written by Bozhidar Bozhanov about types of systems architectures, microsystems or monolithic, advantages and disadvantages. May be you must to have pretty good reasons for choose microsystems complexity. Enjoy here.

An other point of view here about microsystems, monolithic and Right-sized systems. How important is to have services what  shouldn’t  have more than 300 lines of code.


Basic Spring configuration without maven or gradle in eclipse Luna and Mar.

If you wanna build a Java Eclipse Project with Spring configured, here is how you can do that.
It was done with Eclipse Mar and Luna using Spring 4.1.6. After JDK configuration done you must to download all Spring artifacts dependencies manually here, then choose which version you will use, in this case is 4.1.6. download it.
Create a new Java Project in eclipse (right click in Project Explorer -> new -> Project) choose Java -> Java Project, input the Project name and click in finish.

Now we will configure a build Path, it mean, we will make the Spring libraries visibles and usables to the project.
right click in created project -> Build Path – > Configure Build Path. Now you will see this:


Click in Next.


Click in User Libraries and then in New


Enter the User Library Name: SpringLib Spring4.1.6 for example, click in Ok and then select the new User library Spring4.1.6 and click in Add external JAR. Select the directory where you downloaded the Spring artifacts  (for example c:\apis\spring-framework-3.2.0.RELEASE\libs) done in the first step for this tutorial.


Click in Open (‘Abrir’ in the print). Now you will have this. The SpringFramework works together this the dependences api Commons logging like a Spring4.1.6. You need to do the same steps building the User library Commons-logging. download the jar in commons-logging (commons-logging-1.2-bin.zip).


Finally we can see a example in the eclipse with two classes Person and SpringTest1, with the beans.xml blue print for Spring. Build your project like this print and run main method for SpringTest1 class.


Complementing this tutorial is very helpful if you install through Eclipse Marketplace the plugin Eclipse WTP/XML Search after install and restart Eclipse you will be able to, for example, to use autocomplete in xml blueprint Spring configuration xml.

Go to Help -> Eclipse Marketplace. in Find input write ‘wtp xml’, find them. click in install and then reboot Eclipse. done!


Here is the example core.

Good luck!

Oracle’s Larry Ellison: IBM and SAP were our biggest competitors but ‘we no longer pay any attention’ to them.

I found the opinion of Oracle CEO Larry Ellison about position of Oracle, IBM and SAP and the cloud computing platforms IaaS, SaaS and PaaS.
He Talk about too about Salesforce e WorkDay companies. He also applauded his historic competitor Microsoft, for having game in the cloud.

Very interesting review:  oracle-doesnt-notice-ibm-sap

How to change styles colors in eclipse

After use for many times the Eclipse IDE, maybe you can feel so tired with the same layout and the same colors. Can can change de global layout or Eclipse, also you can change the color of specific type of class element (name class, methods name, attribute, annotations).

Here is an easy step by step how to change the Eclipse style.

1.- If you you to the Window -> Preferences -> and then type Appearance you’ll see a window like this.


In the Window you will see the list of all Themes available with your Eclipse distribution. Choice one and cli in apply and check if you like one of them

Now your Eclipse is looking like this:


2.- Now your Eclipse is in the dark side. You can change only the code style into the class installing the follow plugin like this.

Here choice in Help -> Install New Software
Here choice in Help -> Install New Software

Then you will see the windows for install a new plugin in your Eclipse like this:

Here you link put into the work with input the link as bellow: http://eclipse-color-theme.github.io/update/ Click in Add and ok. Then will appear an option Eclipse Color Theme, click in checkbox and install. Then finish. Reboot your Eclipse and you will see this options.

After Eclipse reboot go to Windows -> Preferences, In the window bellow go to the General -> Appearance -> Color theme. In this point you can see all color themes available for you. Choice one, apply, click in ok and done.

After you choose one color theme you need to wait a few seconds to refresh the preview.




Configure and use pure java logger

If by any chance you need to user pure java logger, this is the easiest way to set up and use the java logger in your application.

Remembering that we have a considerable number of providers like log4jslf4jcommons-loggingjboss-logging, etc.

1.- Setup


2.- Use

static Logger logger = Logger.getLogger(AdWordsGetData.class.getName());

logger.log(Level.INFO, “Hello Log Init”);

How to implement Google Adwords Soap Call using pure java

In this example you will see step-by-step instructions of how to create a java program without frameworks, using pure Java to extract data from your campaign. I assume that you have a campaign configured in your Google Adwords account. I recommend, before you read this paper, to take a look at the following link:


It’s about how the Adwords Api flow and how it was implemented.

To program Adwords call follow the step-by-step below.

1.- Proxy Config:

Java Proxy Config
First, if you need, I configure the proxy in pure java. You need to use System.setProperty to set the follow properties: https.proxyHost, https.proxyPort, http.proxyUser, http.proxyPassword, jsse.enableSNIExtension.

2.- Authorization:

In this step, I get authorization using the following entities: client_id, client_secret, refresh_token, grant_type (building post parameters).

3.- Build Adwords Query:

Then I set up the query that I will submit from Google Adwords.

4.- Executing query:

In this step we set information as below in the Http Header. One of the most important information is the authorization token refresh in step 2. Beyond the http header data, we need to configure the SOAP envelope, Body and Header. In the Header (RequestHeader) I set the clientCustomerId, developerToken and userAgent. The Body part must be configured depending on which query you want to run, in this case I user the CampaignServiceSoapBinding address location https://adwords.google.com/api/adwords/cm/v201506/CampaignService, operation get.


Below the complete Code:


I hope I have helped you.