Home » Archives for Abhishek Gupta » Page 5

Author Archives: Abhishek Gupta

New in JAX-RS 2.0 – @BeanParam annotation

java-interview-questions-answers

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 »

Jersey SSE capability in Glass Fish 4.0.1

java-interview-questions-answers

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

java-interview-questions-answers

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

java-interview-questions-answers

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 »

JAX-RS 2.0 : Custom Content Handling

java-interview-questions-answers

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 »