Know about EJB.

Hi,
I dont have any idea about EJB and also how the EJB is differ from java beans.
Thanks in advance.

Romain - I think the answer to your question is that the information
identifying the user is passed into the initial context parameters. Weblogic
uses this to propagate the security context from the servlet container to
the ejb container.
cheers,
Markus
"romain" <[email protected]> wrote in message
news:3b0e8b23$[email protected]..
>
Hi
perhaps it is a dummy question but I didn't find any explicit answer.
I'd like to know how the ejb can know if a user belongs to a role.
For example if I want to access my ejb with a servlet, and this servlet isprotected
(access allowed only for group customer)
and in my bean's deployment descriptor I have protected one method withthe security
role customer)
What I am wondering is when the user is authenticated in the servlet as acustomer
and then try to access the method how the ejb knows that this user is inthe group
customer??
Is this information included in the http session or in the initialcontextcreated
in the servlet or somewhere else??
thanks for your help
romain

Similar Messages

  • About EJB 3.0 ?

    i don't know anything about EJB (nither EJB 3.0 nor any previous version )
    i want to learn EJB 3.0, but the final version of 3.0 EJB 3.0 has not been release.
    i have heard that in EJB 3.0 all the old concepts have been changed.
    a) will it be a good idea to start learning the latest version (version prior to 3.0)
    and to get familiar with EJB and then later upgrade ?
    or
    b) wait for the EJB 3.0 and start learning EJB 3.0 only when its final version comes
    please give me a helpful suggestion

    This is a late feedback on your question but now JSR220: EJB 3.0 now is in its "Proposed Final Draft" stage.
    http://java.sun.com/products/ejb/docs.html
    I feel that starting afresh with EJB 3.0 is not a bad idea because there are some major changes in the way EJBs will be developed in future.
    Knowing EJB 2.x is always a plus and you would certainly appreciate the new incarnation for its simplicity.
    Hope this helps.
    Cheers,
    -_.

  • Question about EJB and thread safe coding - asking again!

    sorry everyone, no one seems to be interested in helping me on this, so i post it again.
    i have a question about the EJB and thread safe coding. when we build EJBs, do we need to worry about thread safe issue? i know that EJBs are single threaded, and the container manages the thread for us. maybe i am wrong about this. if i wasnot, how can we program the EJB so that two or more instance of EJB are not going to have deadlock problem when accessing data resources. do we need to put syncronization in ours beans, do we even need to worry about creating a thread safe EJB? thanks in advance. the question really bothers me a lot lately.

    sorry everyone, no one seems to be interested in
    helping me on this, so i post it again.Excellent plan. Why not search a little bit on your own instead of waiting for your personal forum slaves to answer your call. See below.
    i have a question about the EJB and thread safe
    coding. when we build EJBs, do we need to worry about
    thread safe issue? Read this: http://forum.java.sun.com/thread.jsp?forum=13&thread=562598&tstart=75&trange=15
    i know that EJBs are single
    threaded, and the container manages the thread for us.
    maybe i am wrong about this. if i wasnot, how can we
    program the EJB so that two or more instance of EJB
    are not going to have deadlock problem when accessing
    data resources. do we need to put syncronization in
    ours beans, do we even need to worry about creating a
    thread safe EJB? thanks in advance. the question
    really bothers me a lot lately.
    Java's Thread Tutorial
    JavaWorld: Introduction to Java threads
    IBM: Introduction to Java threads
    Google: java+threads+tutorial

  • A few days ago i bought the macbook pro in a Providence. In late Summer i will come back to my Country - Ukraine. I would like to know about a tax for my laptop. Can i return tax? Through the TAX FREE or return in airport? What should i do?

    A few days ago i bought the macbook pro in a Providence. In late Summer i will come back to my Country - Ukraine. I would like to know about a tax for my
    laptop. Can i return tax? Through the TAX FREE or return in airport? What should i do?

    You need to talk with the tax authorities in the countries to which you traveled and that of your home country. We are all end-users liek you and not Apple agents.

  • Did you know about Flash Cookies?

    I know about regular cookies, and delete them... but had no idea there was such a thing as a Flash Cookie
    Read about 1/2 way down here http://windowssecrets.com/comp/100805

    Rod,
    Since you're a confessed geek with some actual coding chops, I'm sure you'll understand the hair I'm about to split here. Hang on a moment while I grab my axe...
    Even with your page jumps, the cookie isn't doing anything. It's just a text file named after a snack. What's causing your page to jump, browsers to redirect, and the moon to shift its gravitational field three degrees to the north is the code in the web page that's being loaded. True, it may look in the text file to see what IP address to report to, but the connection, handshaking, transfer of data and powering up of lasers are all on your web page (or the server side code being executed on its behalf). The cookie is little more than a poorly dressed informant hanging out on the street corner waiting to pass along tidbits of information when the right person asks. Doesn't exactly make it a savory character (name notwithstanding), but it's a harmless one nonetheless. If it's evil you seek, you'll find it in the web site, not the cookie. And that's why I never understood the religious fervor against cookies.
    Now, if you want a truly dangerous leave behind, at least on Windows, ActiveX controls are your guys. They're really just glorified COM objects, and thus have complete access to the entire Windows API. Give me permission to install an ActiveX control on your machine and I can rewrite your file system, start and stop services, reboot your computer, or just turn the screen a hyperintelligent shade of the color blue because it amuses me. Anything that can be done in Windows programming is essentially available to the ActiveX control.
    Of course, browsers got hip to this years ago, and now the default security settings for ActiveX are to not install automatically, or at least to query the user first. Or, as it's configured on my machine, feel free to install if you can make it past this shotgun pointed at your head. Maybe that's why there's not as much of a flap about ActiveX as there is about cookies. Because they're truly dangerous, the browser community took it seriously.and now only someone with a death wish allows a web page to install an ActiveX component.
    And overall, this is kinda my point. The much maligned cookie gets a bad rap while in truth it's the web page staring you right in the face that's preparing to rob, rape and pillage. But then, misdirection has always been a classic tactic in warfare.

  • Did you know about "Arbitration and Mediation" FAQ?

    I have just made a discovery that many of you frustrated Verizon customers will be very interested in knowing about. Did you know that you can type in legal action in the search verizon.com box and you will find a category called "Arbitration & Mediation" FAQ? For those of you, like myself who have been dealing with months and months of issues with Verizon and you are getting nowhere, you might check this out. It is very interesting.This may have saved me hours and hours of time and some over the top emotion that our situation has caused.

    Proper names are known. But product names will not be - nor will acronyms.

  • I need to upgrade memory slots on my Mac mid 2010 up to 4 GB module which is currently 2GB with two different 1GB memory  slots.Is it compatible and would like to know about the cost?

    I need to upgrade memory slots on my Mac mid 2010 up to 4 GB module which is currently 2GB with two different 1GB memory  slots.Is it compatible and would like to know about the cost?

    this sub forum is about running windows on macs maybe you should try
    https://discussions.apple.com/community/notebooks/macbook

  • I am getting messages that I can't download and read .pdf files since I have the wrong Adobe reader. I know about their security disasters of course, but I downloaded the latest version of Adobe Reader from the Adobe web site and I have other ,pdf file re

    I am getting messages that I can't download and read .pdf files since I have the wrong Adobe reader. I know about their security disasters of course, but I downloaded the latest version of Adobe Reader from the Adobe web site and I have other ,pdf file readers as well, and for some reason they won't work either. I have 5 computers running top end processors and RAM. By this I mean I have one, this one which I am using that has an AMD Phenom Black 3.2 Quad-core with 8 GBs of Corsair top DDR2 RAM, my other two AMD have either an Athlon II triple core with 4 GBs of DDR2 Corsair RAM, one with the Phenom X4 965 3.4 GHz Quad-core with 8 GBs of their best DDR2 RAM, and two Intels with the i7 920 Processors using the triple channel 1366 socket processors and one with 8 GBs of low latency DDR3 RAM and the other with 4 GBs of the same RAM. I am getting the message on this one, which has a fresh install of XP Pro X64 operating system, as do the other 4 as well. I have run Avast Business Pro Anti-virus on this one, which I am getting the message on with a single result which I deleted, and also both Spybot Search and Destroy, which came back clean as well as Malwarebytes Antimalware, which got a lot of tracing cookies now removed, and SuperAntiSpware which also found a few cookies also now deleted. Can you tell me what I need to do to get these files to show as .pdf files rather than as a clean blank page. One other issue is that I wish to know how to turn off my downloads so they are saved and Mozilla will give me the option of returning them instead of me losing them all together as it does now. Thanks for your assistance. If there is another Adobe reader I should download and install, could you provide me with the link to it? I appreciate your assistance here
    == When I download and try to read a .pdf file and when I am asked to turn off all Firefox files and if I do, I lose them since I need to know how to save them without rebooting my computer.

    Brilliant! Problem solved! Thanks so much.

  • In app purchase is not working in testing environment in sandbox for the past 5 days. Please anyone know about this issue.

    in app purchase is not working in testing environment in sandbox for the past 5 days. Please anyone know about this issue.
    What i did
      1 . Added three products more to the existing in-app
      2 . Tested with sanbox
    i am getting the error "cannot connect to itunes store" with error code "0" when trying to purchase product in sandbox.
    Is sandbox is down?Please help guys..

    Apple's sandbox has been down practically all month. You can check the status here:
    http://sandbox.itunes.apple.com

  • Firefox 4 Beta crashes everytime I open it. Then I'm forced to close the program and it won't let me restart it since it says it's already running. Which isn't true. I'm done trying it. Do you guys know about this problem?

    Everytime I start Firefox 4 beta it crashes. I usually can visit one site on the web (doesn't matter what site) and then it locks up. The only thing that works on the browser then is the close button. After clicking the close button I'll try to restart the browser and I'll get an error message saying it can't open Firefox because it's already open. Which is a bunch of BS. The only I can get Firefox started again is to restart my computer. This is so frustrating that I've given up trying. Hopefully you guys know about this bug and can do something about it. I wasn't trying to post a question here I just wanted to make sure you guys heard about this problem.

    yeah it is the gayest thing that happens :S what i do is turn off the internet, then open it, then turn on internet, then use it. :S OR make your homepage a tab.

  • My iphone was stolen and we actually recovered it!  Is there a way I can tell what the thief might have looked at in the interim? I know about hitting the home button twice to see recently used apps, but what if they then swiped to close them?  TIA

    My iphone was stolen and we actually recovered it using the find my iphone app!  Is there a way I can tell what the thief might have looked at in the interim? I know about hitting the home button twice to see recently used apps, but what if they then swiped to close them?  i just want to know if this <bleep> was looking through my private info.  TIA

    Sorry marcia,
    There is no way to tell what activity went on on your device when it was out of your hands.
    Sorry,
    GB

  • How do we let Apple know about the Apple ID Issue?

    Hi, there seems to be an issue (Apple's end)  with signing in to the Itunes store and the Mac App store. How do we let them know about the issue? Their service status shows all green lights so it seems they are not aware of the problem.... I don't know about you but I'm getting really frustrated.. !! PS It seems that my warranty has expired so I don't have direct access to their support ?! HEEEEEEEEELP! THAAAAAANX!!!!!
    Milan, Italy, March 11

    Hi valelorandi,
    I understand that you are seeing an issue with your connection to the iTunes Store and Mac App Store. I have an article for you that will help you address this issue, and it can be found below:
    Can't connect to the iTunes Store - Apple Support
    https://support.apple.com/en-us/HT201400
    Thanks for using the Apple Support Communities. Have a good one!
    -Braden

  • Hi, Dear. I purcahse my iphone 4S on of the guy, my problem is when i update any app from App store and i click update there is an e-mail address is coming which i doesnt know about the password, how can i revome the e-mail address for update our apps.

    Hi, Dear. I purcahse my iphone 4S on of the guy, my problem is when i update any app from App store and i click update there is an e-mail address is coming which i doesnt know about the password, how can i revome the e-mail address for update our apps.

    Yes. Delete the Apps that were not Purchased using Your Apple ID.
    But a Restore as New is the way to go.

  • I just got my replacement phone from Warranty. The phone was on for just 2 hours and it crashed. I was told that motorola knows about this "possible" issue. I got a new sim, hard reset, If it can be done I did it. They are now sending me the same phone ag

    I just got my replacement phone from Warranty. The phone was on for just 2 hours and it crashed. I was told that motorola knows about this "possible" issue. I got a new sim, hard reset, If it can be done I did it. They are now sending me the same phone again. Number 3. I would hope this one doesn't crash but I rather have a different phone so I can enjoy using my account. The phone's most recent error was today. " Unfortunately, the process com.motorola.widget.circlewidget3d" has stopped. At least the error message works and it's polite. I told tech this and they could not answer my question or help me other then "let's do a hard reset" My warranty replacement is coming on Monday. Let's hope this one works. Anyone else havinbg the same problem. it says "such and such as stop working" on all sorts of stuff! Help! I want my iPhone Back!

    I just did a google search on this issue. OMG, I got a ton of videos on this or similar issues. Each one says in some way to clear the cache, reset the data, etc. Why in the world would this continue to happen and they not do a fix that resloves this without having to lose or stop what your doing. This is a very long and constant issue it seems with Android phones as there must have been pages and pages of what I now call "Unfortunately"  So I am going to pray that Verizon helps me  out and gets me away from this issue and helps me go back to iPhone or try the Samsung.

  • Everything you need to know about Foxtel Go

    Foxtel on T-Box customers can self register Foxtel Go on 2 devices per Foxtel on T-Box subscription. You are able to view content on 1 of the 2 registered devices. The T-Box device will automatically be registered on your behalf and cannot be deregistered. You can change the device they have registered once per calendar month.
    To change a registered device you must log into the Foxtel Go app. As a Foxtel from Telstra customer please use your Foxtel My account details. As a Foxtel on T-Box customer please log in with your primary (i.e. the first username created and linked to your account) BigPond username and password.
    Once in the app go to the settings icon and choose 'manage my devices'. Within this section of the app you will be able to select de-register for the device you wish to change. To register, download the Foxtel Go app and log in. You will be prompted to register the device.
    Remember you can only change one device once per calendar month. If you are still able to make a change, you will be advised of the number of device registrations left this month.
    If you recently registered your T-Box, you should have access to Foxtel Go within 1 hour. If you are experiencing errors please try closing the Foxtel Go App and logging in again. If you are still unable to access any content please contact us via Telstra 24x7 or Telstra Technical Support on 13 22 00
    If you swap your Foxtel on T-Box service to a new device, your Foxtel Go service is not affected as it is associated to your BigPond username and password, and not the T-Box device.
    When trying to make a second device change within a month the de-register' button will be greyed out, preventing the change.
    Current channel rights only allow Foxtel Go to be registered on 3 devices per Foxtel Account. For Foxtel on T-Box customers, the T-Box counts as your 3rd device.
    The parental control function is specific to Foxtel Go and managed in the app via the settings icon. To access parental control:
    Go to the settings' icon in the app (top right)
    Access parental controls'
    Choose which classifications you'd like to restrict
    All R-rated content is automatically blocked, but you can personalise your restrictions for other ratings. To do this go to Settings in the Foxtel Go app, turn on Parental Controls and restrict the classifications you would like to block. If this is the first time you do this you'll be prompted to set a 4 digit PIN specifically for Foxtel Go. You can use this PIN to change your parental controls in the future. This PIN is only applicable to the Foxtel Go app. For Foxtel from Telstra customers, the PIN is not the same as you use on your IQ or Set Top Box, and you will be required to setup a new PIN to restrict content on Foxtel Go. For Foxtel on T-Box customers, the PIN is not the same as you use on your T-Box, and you will be required to setup a new PIN to restrict content on Foxtel Go.
    Foxtel Go content is unmetered with Telstra BigPond Home Broadband services. With other internet service providers this will be offset against your data plan.
    If you use Foxtel Go on your device with any 3G/4G telecommunications service provider, including Telstra, usage isn't unmetered and you will incur data charges when using Foxtel Go. The below list provides an indicationof the data you will use per device on the various app settings, based on watching an hour of TV. To view your settings go to the 'settings' icon in the Foxtel Go App, turn on 'video settings' and choose your preferred quality:
    3G Phone/Tablet Best: 320 MB per hour / Low: 170 MB per hour
    Wi-Fi Phone Best: 420 MB per hour / Low: 320 MB per hour
    Wi-Fi Tablet Best: 720 MB per hour / Low: 320 MB per hour
    Wi-Fi PC/Mac Best: 1310 MB per hour / Low: 470 MB per hour
    The size of each episode or Movie on Catch up TV can be found on the Synopsis tab.
    You can use Foxtel Go at a Wi-Fi location or a personal hotspot when you are in Australia provided you have an internet connection. Some locations offer Wi-Fi hotspots where you can log onto the internet for free. e.g. McDonalds, Starbucks, etc. Any data charges incurred are charged to the business and not to you. When connected to Wi-Fi, you'll see a Wi-Fi symbol on your device.
    Foxtel from Telstra customers with a Foxtel iQ or iQHD set top box can Remote Record and send a channel change to their set top box. Unfortunately this functionality is not available to Foxtel on T-Box customers.
    You can pause and rewind the last 30 minutes of Live TV, even if you've just changed to that channel. Due to device restrictions users of Samsung Android devices are unable to use this feature.
    Foxtel Go is a streaming video service. Streaming means that images and sound are delivered live to your device to view when you press Play, rather than being downloaded to your device to view at a later time.
    Games you'd normally see on Foxtel from Telstra or Foxtel on T-Box on FOX SPORTS 3 are broadcast on Foxtel Go on the Footy Play Plus channel
    There are no Catch Up of AFL games or magazine shows on Foxtel Go due to content restrictions.
    The key symbol indicates that a channel isn't part of your package. You need to upgrade your Foxtel from Telstra or Foxtel on T-Box package to watch it. Your package can not be updated through the Foxtel Go app. For Foxtel on T-Box customers you can update your packages in the T-Box App, at www.telstra.com/tboxsetup, via 13 2200 or in store. For Foxtel from Telstra customers you can update your packages through the store or via 13 1999. The lock symbol indicates that, as part of your parental control setting, you've locked this classification of content, and can't watch it. If you want to change the settings then the primary (i.e. the first username created and linked to your account) account holder can change these by:
    Go to the settings' icon in the app (top right)
    Access parental controls'
    Choose which classifications you'd like to restrict
    No other username or password can change the parental control settings.
    We may be required to block out specific programming from time to time, e.g. if a channel doesn't have the legal right to broadcast the programme over the internet. However, all live channels are the same as channels you watch through Foxtel from Telstra or Foxtel on T-Box.
    The vast majority of the Foxtel on T-Box content is available via Foxtel Go. There are some minor exceptions. MTV Music and MTV Dance channels are not available. FOOTY PLAY and FOOTY PLAY+ (overflow) channels are not available on PC and Mac only.
    Access to Foxtel Go is included in your Foxtel on T-Box and Foxtel from Telstra subscription. However, you will incur data charges when accessing the service on a 3G/4G network.

    Re: Everything you need to know about Foxtel Go
    Iam book in to have foxtel install on 2nd of March was offered Thursday the 28 my appointment has been cancelled so can be home Thursday I put a complaint in as was told it was 1hour for change over from T Box but no one has got back to me

Maybe you are looking for

  • Setting up home network with WRT160N

    ok got the WRT160N for christmas and just trying to set up a home network. I am not real familiar with setting up networks, so please treat this thread as talking to complete first timer,lol, with a bit of knowledge. Scenario= Want to have main pc wi

  • Why isn't the Submit button submitting responses?

    I created an evaluation form using Forms Central and distributed it. 4/5 respondents filled it out with no problems. The last person filled it out twice and lost her responses once through an error on her end and the second time she doesn't know why

  • How to use 'alter session...' in apex

    Hello everyone, in my APEX program, I need to alter the parameter nls_date_language with 'alter session set nls_date_language = american'. I execute the statement in SQL Commands of APEX, but it doesn't seem it works. how can I change the parameter--

  • How can I troubleshoot itunes restart after I close it?

    Hi, I have searched using google and also searched these forums - I can see thousands apon thousands of hits in google on this same problem however the causes in some posts that I've read through are different and there is no information available on

  • Apple TV can't see my home shared network - both at fully updated

    Apple oh Apple - why have no support for me?