How to use Jersey client to make restfull api’s calls

    This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters Show hidden characters Search HOME RESUME PYTHON SAAS GIT OTHER POEMS LOG IN JERSEY CLIENT … Lire la suite How to use Jersey client to make restfull api’s calls

Évaluez ceci :

GET PROPERTIES FILE KEY/VALUES in java

The properties file needs to reside anywhere on the classpath (use src/main/java) 1) create this class and pass the name of your properties file   This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden … Lire la suite GET PROPERTIES FILE KEY/VALUES in java

Évaluez ceci :

HQL vs criteria API vs pure criteria API

You have three options: 1) If you are not pinned to Critera api, I recommend to use HQL instead of Criteria API Date d = new SimpleDateFormat(« yyyy-MM-dd »).parse(« 2014-10-12 »); Query query = session.createQuery(« select count(*) from Visit v where trunc(v.date)=:date and v.visitor.id=:visitorId »); query.setParameter(« date », d); query.setParameter(« visitorId », 1L); Long count = (Long) query.uniqueResult(); 2) If you want to use Criteria … Lire la suite HQL vs criteria API vs pure criteria API

Évaluez ceci :

How to drop all connexion to your database PostgreSQL

How to see Amazon RDS (postgres) connection limit? select * from pg_settings where name=’max_connections’; for t2.micro for example we have 87 max connexion for large.micro 522 i think xD you have always try t close hibernate session if yu use it to make connexion to databases in order to do some (insertions , reading …)   … Lire la suite How to drop all connexion to your database PostgreSQL

Évaluez ceci :

How to give API gateway permission to invoke lambda function through api or cli?

Source Quora forum How to give API gateway permission to invoke lambda function through api or cli? from aws You must grant API Gateway access permission to the IAM user who will perform the tasks. The IAM user must have full access to work with Lambda. For this, you can use or customize the managed … Lire la suite How to give API gateway permission to invoke lambda function through api or cli?

Évaluez ceci :

What is PuTTY?

PuTTY is a client program for the SSH, Telnet and Rlogin network protocols. These protocols are all used to run a remote session on a computer, over a network. PuTTY implements the client end of that session: the end at which the session is displayed, rather than the end at which it runs. In really … Lire la suite What is PuTTY?

Évaluez ceci :

The doom of callbacks || deadly diamond of death

Cette expression  a été inventé pour qualifier un problème assez récurrent dans le monde du Javascript touchant traitant l'(a) synchronicité   suite à l’imbrication successives des appels  en  JavaScript.Utiliser des callbacksL lorsque l’on traite des problèmes asynchrones est assez courant afin de différer l’exécution d’instructions du coup on aura de fortes chance poru avoir des problèmes … Lire la suite The doom of callbacks || deadly diamond of death

Évaluez ceci :