Although J.P. Morgan had criticized a lot on the past, I think they changed their minds, indeed.
In fact they created their own digital token: JPM Coin – and it seems it has some real life utilization. Some of the digital coins projects I see lack exactly that, the real life utilization, although have good intentions.
An important fact the common user of crypto cannot use their currency, but only large investors.
Similar to ASP, which uses C#, JSP is the one with uses Java behind. To deploy those applications we need a servlet container, like Apache Tomcat or JBoss EAP – Undertow. JSP dynamic web content, as XML. Together.
Deploy
We need a servlet container so in this case, we can use Jetty for the demonstration. Eclipse Jetty is a Java HTTP (Web) server and Java Servlet container, I will talk more about it on another post.
JSP Custom TAG
One of the most interesting features in my opinion about JSP, which is a nice feature btw, is the possibility to create custom tags HTML based on the HTML rules – ofc. Just follow the template below with the attributes you need.
Non-SQL is very useful and I’m a huge fan of MongoDB but relational database is not that bad!
While searching here and there, I came up with this very interesting thing called Timber, it merges tree structure properties with relational databases.
Summary: Timber is a native it is based on the TAX tree algebra supports updates.
XML Database?
Timber is this XML management database, where the data is storage directly and as such, the tree structure is preserved.
loggers: Responsible for capturing logging information.
appenders: Responsible for publishing logging information to various preferred destinations.
layouts: Responsible for formatting logging information in different styles.
Example
//logs an error message with parameter
logger.error("This is error : "+ parameter);//logs an exception thrown from somewhere
logger.error("This is error", exception);
If you need to write several emails a day/messages irc’s, Autokey is certainly a nice tool to have. I got addicted to using it even on fb messages now!
One just needs to add a new phrase, add the content, and add the abbreviation and it is done.
In my case, I also need to reset the autokey for each new entry.
After that, I just write the abbreviation + space, that the value is replaced by the content. As described in the video below:
During API development it’s very interesting/required to test the application in terms of response time for different loads. I’m using gatling for some tests here and it’s quite neat.
Apache JMeter
JMeter I’ll do a post about it later – which is not a browser, btw. I don’t know why they highlight this on the web site.
Loadrunner
Loadrunner, which Thread-based architecture, is actually from a company called Micro Focus – not opensource in fact!.
Gatling
It’s a tool to test loads since it’s based on messages, tests based on Scala – yup, not java or javascript. It overwrites the JVM limitations, therefore, so we can make much more accesses.
It uses to test http basically and the records the GUI.
Executing a performance test straight from the console.
It does not monitor back-end monitoring, as resources monitoring, like htop on the server.
Class HttpSimulation1 extends Simulation {
/* Place for arbitrary Scala code that is to be executed before the simulation begins. */
before {
println(“***** My simulation is about to begin! *****”)
}
/* Place for arbitrary Scala code that is to be executed after the simulation has ended. */
after {
println(“***** My simulation has ended! ******”)
}
/*
* A HTTP protocol builder is used to specify common properties of request(s) to be sent,
* for instance the base URL, HTTP headers that are to be enclosed with all requests etc.
It’s quite nice to work and develop some tools, but the basis should be learned first, and here there is a small but good/required list of courses to do.
Ok, quick stuff, just reading about Undertow, I didn’t know it was so flexible actually.
Undertow two way to do it:
Way 1
There is basically two way to use undertow, and in fact, I already made a post about the first way here, the idea is simple: use the Builder API after we create the handler we want as in here. The listener on the example is created for the port 8080, i.e. bind to localhost.
The builder will default values for performance-related stuff, as a number of threads and buffers.