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

  • SEARCH
  • Home
  • 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 7732219
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T06:40:39+00:00 2026-06-01T06:40:39+00:00

I have an embedded glassfish server and a small web app. I want to

  • 0

I have an embedded glassfish server and a small web app. I want to add login-authentification thingy to it. Problem: all tutorials i’ve found so far tell to go glassfish admin console on 4848 port and config jdbc realm there. Is it’s possible to do this using xml files like web.xml, glassfish-resources.xml and provide them with my war. It would be nice to make my app completely portable. Thanks in advance!

  • 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-06-01T06:40:40+00:00Added an answer on June 1, 2026 at 6:40 am

    According to the Java EE 6 specifications (and to the Java EE 6 tutorial, chapter Overview of Java EE Security):

    Security for components is provided by their containers

    So, using the standard Security concepts, it’s not wise to make your web application aware of realms and other features that should be managed by the container.

    In theory there is a way for reaching your goal, but it’s very complex and at the end of the day it’s not even fully container-agnostic. This way consists in developing your own JAAS (Java Authentication and Authorization Service), and deploying it into the container before deploying your application.

    You can find further reference in this JAAS Tutorial, from which I extract the following lines that explain the concept I have summarized above:

    System level security is defined in terms of User Groups, called
    Roles, and in terms of security privileges mapping definitions, called
    Realms. Application level security is constituted from User Groups and
    Realms.

    At the application level, security permissions also list the
    various application components that are accessible by each User Group
    in each Realm. Thus, when an application is deployed, its application
    level realms and roles are mapped to the system level realms and roles
    defined on the server.

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

Sidebar

Related Questions

I have embedded an IronPython engine in a C# application. I want to expose
I have several embedded linux systems that I want to write a 'Who's Online?'
I have a Java app that has an embedded Derby database (no hibernate though).
I develop a Webservice using Netbeans 6.9 and I use an embedded glassfish server
I have embedded some crystal reports in my C# application. The problem is, compiling
All smartcards have embedded crypto capabilities and computation power. Is is possible to take
I have embedded a big svg in a template view. All svg elements have
I have set up a login area on my PHP server. The members.php file
I have embedded a flash video on my website. I am having the problem
I have embedded a Python interpreter in a C program. Suppose the C program

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.