JAX-RS is awesome to say the least and one of my favorites! Why? Feature rich Intuitive (hence the learning curve is not as steep) Easy-to-use and develop with Has great RIs – Jersey, RestEasy etc There are enough JAX-RS fans out there who can add to this! JAX-RS 2.0 is the latest version of the JSR 311 specification and it ...
Read More »Home » Archives for Abhishek Gupta »
Jersey SSE capability in Glass Fish 4.0.1
Glass Fish bundles different Reference Implementations for various Java EE specifications e.g. Weld for CDI, Mojarra for JSF, Tyrus for WebSocket, Jersey for JAX-RS. Glass Fish 4.0.1 is in the pipeline and slated to cover updates for many of the components/modules which both include new features and bug fixes of course. Server Sent Events feature in Jersey will be supported with Glass ...
Read More »Gearing up for JavaOne 2014 !
Hold that thought! Yeah…I wish I was presenting at Java One 2014 – but I am only worthy of doing that in my dreams right now! But nothing is stopping me from following Java One and tracking sessions/talks about my favorite topics. I am hoping Oracle would make the 2014 talks available online for mortals like us just like it did for ...
Read More »A closer look at the Java Identity API
Before I jump into the nitty-gritty, let’s take a look at some of the quick facts about Java Identity API JSR 351. This is still a work in progress . . . When was the JSR initiated? This JSR passed the Approval Ballot in October 2011 which was followed by Expert Group formation in November 2011. Who is leading this ...
Read More »Stateless EJBs: Pooling and Lifecycle
A summarized view (notes) of the Stateless EJB pooling and life-cycle. Useful for newbies . . . . . EJB Pooling: Quick Overview EJB instances are stored in a location known as the EJB Pool – this is nothing but an in-memory cache. Stateless EJBs are generally instantiated on-demand i.e. as and when the client invokes a method on the ...
Read More »Java EE CDI Qualifiers: Quick Peek
Qualifiers are the mainstay of type safety and loose coupling in Contexts and Dependency Injection (CDI). Why? Without CDI, we would be injecting Java EE components in a manner similar to below Note:This will actually not compile and is just a hypothetical code snippet Example 1 Example 2 What’s wrong with the above implementations? ...
Read More »Hi there . . ! How would you rate your Java/Java EE skills?
To know, is to know that you know nothing. That is the meaning of true knowledge. Socrates This post is to provide the reader with a quick overview of the Java ecosystem and it’s technology stack. To be honest, there have been many revolutionary changes and additions to the Java Platform – from Java EE 7, Java SE 8 to ...
Read More »Wildfly 8.0 provides seamless JSON support via its JAXRS 2.0 implementation
Its great to see Wildfly 8.0 making it so much easier to work with BOTH XML and JSON representations from a common set of JAXB classes without any extra plumbing or configuration of different JAXB run time implementation. All you need to do is Just return the JAXB objects from your business methods within the JAXRS resource classes Set the HTTP ...
Read More »JAX-RS 2.0 : Custom Content Handling
I tried to think of a better title, but failed to come up with one ! Please bear with me……. The JAX-RS 2.0 specification allows us to seamlessly marshal/unmarshal JAXB objects to/from HTTP request/response bodies. Simply put, we can just work with the domain objects without being worried about the low level XML serialization within JAX-RS based solutions. Before we begin, ...
Read More »