Posts

Showing posts with the label java

How to stream data over HTTP using Java Servlet and Fetch API

AI Agent in Java with LangGraph4j

Typescript on JVM passing by Nashorn

Image
The last trend, from Java to Javascript I’ve developed a lot with Java (until java 8) but lately i’m progressively, for several reasons, moving to other programming languages with a prevalence of JavaScript. Yes, this means that I’m becoming a full stack developer using, mainly, ionic/angular for front-end development and nodejs for back-end development. Use Typescript as an enhanced Javascript Really, more than works with JavaScript, I use Typescript that I consider a must-to-use for developing on javascript-aware environment/runtime. A deep dive in Typescript is not the objective of this article, for now consider typescript an enhanced JavaScript that transpile itself in pure javascript so when we’ll use the Typescript word will imply that being the scene there is javascript The Enterprise dilemma - Javascript on back-end However in my opinion Javascript / angular / nodejs is a great technology stack but, working as consultant in Enterprise projects, there is a re...

RESTFul JMX: Open Java Management

Image
Goal One of my goals in last job was: Allow third party systems and user access, in easy way, to JMX MBeans [1] provided by our Enterprise application The common solution was to use "JMX Remoting" ( JSR160 )  and than, i had to choose: A "JMX remoting" protocol A "JMX viewer" compliant with such protocol Choosing a JXM Remoting protocol I found several supported protocols such as  rmi , iiop , jmxmp , soap   provided by the  MX4 J  project which last release has been in 2006.  Lately, JBoss community, has released a remoting-jmx , a project to provide the integration required to expose JMX over Remoting 3 connections. Chooosing a JMX Viewer Concerning JMX Viewer the most popular are JConsole  and VisualVM   both are monitoring tool provided by JDK, while if we need web-based solution, we have to catch from open source marketplace (see http://java-source.net/open-source/jmx )  After investigation After this i...

JAVASCRIPT REBORN: Node.js, Nashorn, JavaScriptCore

JavaScript: A language for HTML into Browser (?) JavaScript language has been considered for long time, strictly joined both with HTML and Internet Browsers. First with DHTML then with AJAX and finally with HTML5  javascript has rapidly became wide used into web programming land. But, as said, JavaScript was less famous as programming language for business or concerning whatever stuff outside the browser.  Concerning my experience, i remember that i used JavaScript, out of Browser, for develop web app in Microsoft Active Server Page (long time ago) using JScript  (Microsoft's implementation of ECMAScript ) and other small projects using   Mozilla Rhino  2012, JavaScript reborn Now seems that JavaScript is reborn as a "common purpose" programming language, breaking definitely the browser's borders.  Throughout 2012, JavaScript seems to be solving problems across the industry, causing some justifiable hype across a number of libraries and f...

NetBeans support for JavaFX for iOS is out!

I while ago i heard about the possibility to build native IOS application using Java Trying to go in deep of this topic i found out the amazing project:   ROBOVM I started to test it  developing a Proof of concept   robovm-jsfiddle-javafx-app   available on Github The amazing thing was the possibility to bring "native javaFx app" to "native IOS app" keeping the L&F All looked very promising ... but unofficial and not suggested for production mode. But now i find out an article from Oracle Blog - Netbeans support for JavaFX for IOS is out!   and  ... my thought is : Are we ready to develop a new generation of IOS app javaFX-aware?  I'll stay on track ....

Contribution to JNA project

Finally has been accepted my contribution to very useful JNA project. This project provides a easy way to access at Native API of the hosting system, from Java I've added support of a new API  concerning the WinOS 32 /64 UINT_PTR  SHAppBarMessage ( DWORD dwMessage, APPBARDATA pData ); This API allows to resize window's desktop and is very useful to put on desktop, custom toolbar,  that  never will be hidden by other windows and in the same time never will hide other windows.