Archive

Archive for the ‘Glassfish’ Category

How to call a secured remote EJB on Glassfish 2

18/02/2016 Leave a comment

I’ve recently needed to call an EJB deployed on a Glassfish 2.1 server from a standalone Java application.

The EJB was secured, under a custom security realm. I had trouble finding answers on-line regarding how the secured EJBs are supposed to be called, and, after a lot of work I finally found the solution with the programmatic login. I suppose it’s a basic thing to know, but given how long I’ve spent googling for an answer, I figured an extra information source can’t be that bad.

Read more…

Advertisements