• Post Reply Bookmark Topic Watch Topic
  • New Topic

EJB 3.1 How to block external connection.

 
Andrea Catania
Greenhorn
Posts: 11
1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a Stateless bean where I want to allow access only to the client that I authorize.

The bean:



I know that anyone can access to this bean over the network..

How can I block all connections not trusted?

I using Wildfly.

Thanks in advance Andrea.
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Posts: 2680
155
Android Chrome Eclipse IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
package the EJB inside a WAR and use standard JEE-security (Authentication and Authorization). If you want further refinement you can even use method-permissions on the EJB-methods.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!