Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6781141
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T16:35:21+00:00 2026-05-26T16:35:21+00:00

I am trying to implement security for the following architecture: Web tier: Tomcat 7

  • 0

I am trying to implement security for the following architecture:

  • Web tier: Tomcat 7 app server using GWT.
  • Back end: JBoss 7.1 app server using EJBs and JPA to persist data. EJBs are consumed remotely by the web tier.

I am thinking of using JBoss security, which involves:

  • Creating a security domain in JBoss via login-config.xml
  • The security domain uses a DatabaseServerLoginModule to retrieve data from a MySQL db in terms of username/password and roles.
  • Authorization: EJB based security by annotating my EJB methods with @RolesAllowed.

I made this working before in a single JBoss and configuring web.xml in JBoss’ Tomcat. Then jboss-web.xml to bind my web application to the security domain that I have created in JBoss.

My concern is now how all this works using two separate servers: a Tomcat web container that makes remote calls to a back-end JBoss. My questions:

  • How can I make my Tomcat aware of the security domain defined in the remote JBoss (if possible at all) so that it delegates to JBoss the task of looking up for the credentials in the DB?
  • If my GWT components call the remote EJBs, how can I propagate the security credentials from Tomcat to the remote JBoss (principal, password) in a way that I don’t have to specify those in each call?
  • Is this feasible at all? Are there other alternatives out there that can make my life easier in this scenario?
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T16:35:22+00:00Added an answer on May 26, 2026 at 4:35 pm
    1. There’s no standard way to access a LoginModule remotely. So if you want to use your backend’s loginmodule as a JAAS loginmodule in your front-end, you’d have to expose the logic from your backend e.g. as a REST or WS service, and create a custom loginmodule in Tomcat to call it remotely.

    2. In theory, the JAAS security context should be propagated if you lookup your backend EJBs via JNDI and execute secured method calls on it. In practice, every AS handles this differently, and I never saw it working between different AS.

    3. There is an alternative, which is to use Spring Security. See the package org.springframework.security.remoting.httpinvoker and org.springframework.security.remoting.rmi. But this requires that you use Spring Remoting and Spring Security all the way.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

In trying to implement role based security for a web app, I have a
I am using form-login for security and I am trying to implement an authentication
im trying to implement simple secured client server communiction using WCF. when im launching
I'm trying to make a simple username/password authentication in a Spring Security web app.
I'm trying to implement a front end for a reporting solution which is security
I'm trying to implement spring-security to handle authentication and authorization of my web application.
trying to implement a dialog-box style behaviour using a separate div section with all
Trying to implement a UITableView of names similar to the built-in Contacts iPhone app
I'm trying to implement row-based security checks for Django models. The idea is that
I'm trying to implement my custom security attribute. It's very simple for now [Serializable]

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.