Is there a way to do that? To use dynamic EJB connections?
Hello Developers,
I have developed a security web application using EJB,
Jaas with customer provider
I used DBSystemLogin module
I want to fined a way that the EJB connection change each time when the user login.
I used the HR as the main schema.
I created three schemas that I want to use them as users:
-Lina
-Salem
-Ahmad
I granted Roles to users on hr tables.
additional, created my own roles in data base and granted to my users:
ADMINISTRATOR Lina - can see all records
EMPLOYEE Ahmad -can see the records added by this employee
CUSTOMER Salem - can see the records belongs to this customer
In developer 10.1.3.3
I created Order Entity been using HR database connection, created session been,
Modified web.xml:
-security roles["ADMINISTRATOR","EMPLOYEE","CUSTOMER"])
-Loginconfig (Form-based authentication: login page, error page)
-Security constraints: ord on /faces/Orders.jsp to ADMINISTRATOR,EMPLOYEE,CUSTOMER.
I created Orders.jsp page contains order table.
Now, I want that when the user login as Lina to switch the EJB database connection to Lina, so the displayed order table achieves ADMINISTRATOR roles that created in database,means opening database session for user Lina and use it.
and so on for user salem and ahmad.
Is there a way to do that? To use dynamic EJB connections? To achieve authentication based connection? to implement the user database roles on the client side? To specify the database connection at run time?
That is possible using forms but I don’t want to use forms.
I want to reed the roles from database according to the user.
I hope to get answers soon,
thanks.
Does JNDI do this job?
Similar Messages
-
I've been told that when I apply the latest update issued by APPLE, it will add all my Facebook Friends into my Contacts on my iPhone. Is there a way to prevent that from happening?
Unfortunately when upgrading to iOS 6 the setting to add Facebook Contacts to your Contacts app is on by default. But once the upgrade is complete you can go to:
Settings > Facebook > and turn off Contacts.
That will get rid of the Facebook stuff showing up in your Contacts app.
BTW, I also turned off Calendar on my iPhone and iPad so that Facebook events and Friend's birthdays etc. will not show in my Calendar app. -
I have huge lag with Safari's Reading List using a rMBP. I have probably 80 articles saved, which is likely the cause of the lag. Is there any way to export that list of articles so as to be able to delete them from Reading List but still have a record of the articles I intend to read?
I'm currently dealing with this issue myself, except that my rMBP has NO articles in the reading list. It's a brand new rMBP too, purchased just this week, with the 2.6 Ghz Processor & 16GB of RAM.
Let's see what we can find. I may just take it back to the Apple Store. -
In contacts there is the possibility to add a new event, as the birthdays, but they do not appear in iCal. Is there any way to make that possible? It is normal to have a person with his birthday, anniversary and others key dates you want to link to such person, but the only one shows up is the birthday. How to be able to show all those dates linked to people in the agenda in the iCal?
ThanksHi,
I sugggest you try my application, Dates to iCal. It is shareware with a 2 week trial period.
Dates to iCal 2 is a replacement for Apple's birthday calendar for iCal. It has a range of features to allow the user to choose what, and what not, to sync to iCal from Address Book.
As well as automatically syncing birthday dates from Address Book, Dates to iCal 2 can sync anniversary and custom dates. It can set up to five alarms for each date in iCal and can also set different alarms for birthdays and anniversaries. It allows the option of only syncing from one Address Book group. This application also allows for the titles of the events sent to iCal to be modified to the user's preference.
Best wishes
John M
As I sell software on my site and ask for donations, the Apple Support Communities Use Agreement requires that I state that I may receive some form of compensation, financial or otherwise, from my recommendation or link. -
I recently purchased a TV season on Apple TV with my own personal Apple ID. Is there a way to transfer that TV season to my husbands computer so that he can watch it when he's out of town for work?
You can't transfer to another Apple ID. You would have to sign in under your account on the computer and then download the content.
-
Is there a way to create albums on iPad 2 without connecting to a computer? I heard the iPad 1 did that? It's rather stupid that they don't have that function built in.
If you are referring to photo albums no you can't create them on the iPad with the current iOS software. You could not do it on the iPad original either as stated above.
You can purchase third party apps that allow you to do so. One app that I know of is called Photo-Sort. I am sure there are others available in the app store if you care to search.
You can provide feedback to Apple here and let them know how you feel.
http://www.apple.com/feedback/ipad.html -
i just got my macbook air, less then a week ago, and at least once a day it has frozen and ive had to restart it is there a way to fix that?
If the MBA is within 14 days of the purchase date from an Apple sore, you may return it for a refund or an exchange.
Regarding the specific problem you are facing, can you provide more details, such as the application that you were using and exactly what the response was.
Ciao. -
I downloaded Lion from the App Store on to my iMac and did not save it to a thumb before installing. Do I have to buy it again to install it on my Macbook Pro and iPad, or is there another way to do that?
All my electronics are about a year old. iPad is Model MB293LL (4.2.1) only wi-fi - no phone.
MacBook Pro is OSX 10.6.8 Build 10K549. Also have an AT&T iPhone that I basically use as a Palm, since I changed carriers.
Thank you for your help.
ps: I got an error message and it looks like this did not get posted the first time. 2nd try.Open the Mac App Store on your MacBook Pro
Hold the Option key and click on “Purchases”
Hold the Option key and click on “OS X Lion” from the purchased app list
“Installed’ should now say “Install” which allows you to download OS X Lion.
This assumes you are using the same Apple ID on both computers.
Lion does not get installed on an iPad. It runs iOS. -
I no longer have the PC that had my CD library and purchased music on iTunes. I am now on another PC and managed to download my purchased iTunes music etc. Is there a way on iTunes that I can get back my old CD music library without ripping again ? Earlier back up is corrupted. Thank you in advance. No longer have my old iPod but getting new one.
If you had the hard drive from the original machine, a backup of the same, an iPod with the media, or a subscription to iTunes Match then there would have been hope, but alas no.
For the future see Backup your iTunes for Windows library with SyncToy.
tt2 -
I had music that i copied from disks into itunes on another computer, I no longer have that computer. Is there a way to get that music back from itunes?
ThanksIf you failed to maintain a backup copy, then you would have to import the disks again.
-
When I send or receive e-mail (Thunderbird).....the mail gets changed significantly from its original form.....typestyle, font size, symbols, page layout, color.....everything changes.....is there a way to fix that so my the original form of the mail is not changed?.....
Just to recap, this is a collection of ports I have collected over time for people who needed this information when setting up the HP ePrint app so that they could view their email from within the app. I am certain other applications also need this information. Although lengthy, I could not find a more comprehensive place to retrieve this information. Feel free to post additional information, faulty information, or other related topics below as this is simply a collection of data and it would be practically impossible to test all of them. Thank you!
Don't forgot to say thanks by giving "Kudos" if I helped solve your problem.
When a solution is found please mark the post that solves your issue.
Every problem has a solution! -
I transferred video from iPhone (4S) to iPhoto and then dropped that footage into iMovie9. The footage is there in iMovie but it is stretched. I have tried to adjust using aspect ratio options but that doesn't work. Is there a way to fix that in iMovie (or at any other point in the process)?
It shouldn't be this way. Did you shoot the video in portrait or landscape mode? Many people shoot in portrait mode because they typically hold the phone upright. This is really shouldn't happen if the videos are shot in landscape mode.
-
i just bought a 25 dollar gift card in another state on itunes, spent 6 dollars and when i came back home and updated my ipod it said that i had no credit. is there any way to get that back?
iTunes Store Support
http://www.apple.com/emea/support/itunes/contact.html -
I'd copied some pictures from a PC to a folder in Finder in my new iMac. The 'Date Created' in iMac is not the same as the 'Date Created' in the PC. Why? Is there a way to fix that?
View Menu -> Sort Photos is a good way to start.
Some organising possibilities in iPhoto:
I use Events simply as big buckets of Photos: Spring 08, July - Nov 06 are typical Events in my Library. I use keywords and Smart Albums extensively. I title the pics broadly.
I keyword on a
Who
What
Where basis (The When is in the photos's Exif metadata). I also rate the pics on a 1 - 5 star basis.
Using this system I can find pretty much find any pic in my 50k library in a couple of seconds.
So, for example, I have a batch of pics titled 'Seattle 08' and a typical keywording might include: John, Anne, Landscape, mountain, trees, snow. With a rating included it's so very easy to find the best pics we took at Mount Rainier.
File -> New Smart Album
set it to 'All"
title contains Seattle
keyword is mountain
keyword is snow
rating is 5 stars
Or, want a chronological album of John from birth to today?
New Smart Album
Keyword is John
Set the View options to Sort By Date Ascending
Want only the best pics?
add Rating is greater than 4 stars
The best thing about this system is that it's dynamic. If I add 50 more pics of John to the Library tomorrow, as I keyword and rate them they are added to the Smart Album.
In the end, organisation is about finding the pics. The point is to make locating that pic or batch of pics findable fast. This system works for me. -
I don't want to show the e-mail address in the "from" line when I send out e-mails. Is there a way to hide that?
Thank you!No.
Maybe you are looking for
-
How feasible would it be to DIY BDB JE encyrption
Hello All, I'm aware that BDB JE won't be supporting encryption. However, if I wanted to be bold/foolish enough to implement encryption myself for my project, what would the options be? I have encryption code (http://www.jasypt.org/). I have a small
-
IPod restarts after every Kings of Leon song
both confusing & irritating.... only happens with the latest album (bought on iTunes, not ripped) anyone have an idea?
-
I get a message that there are no scan options. How do I correct this?
-
Problem while installing Usage Tracking in OBIEE 10g
Hi all, I am installing usage tracking in OBIEE for that created a database called usertracking using the sample tables provided in OBIEE 10g. everything is fine, but while configuring the NQSConfig.INI (like, PHYSICAL_TABLE_NAME = "usertracking"."
-
Getting iPhoto comments to iWeb (iLife 08)
I have a tediously-commented set of photos I made in whatever version of iPhoto was current in 2003. I want to publish them with iWeb to a photo page, but none of the comments carry over, instead I get photo captions like "IMG_0124" when what I reall