Why EJB for 10.1.3 JSF ?

Hi,
I'm a newbie in 10.1.3 and JSF.
I found that the SR demo is different from 10.1.2 by using JSF and EJB.
Does JSF prefer to use EJB ? How about ADF model used in 10.1.2 w/o EJB ?
I remember 10.1.2 mentioned to use Struts as JSF controller, but now in 10.1.3 changes to Faces controller. What's the difference ?
Regards

I don't think we ever recommended to use Struts as the controller for JSF.
If you choose to use JSF, and at Oracle we think JSF is a good choice, then go with JSF all the way both in the contoller and the view layer.
JSF has many advantages including the component based nature of it, and the way it automates handling states ad actions. In general we find it easier to use JSF for Web development than a JSP/Struts combination.
As far as the backend you can still use any combination you want, the first SRDemo that we released uses TopLink fronted by an EJB and binded using the ADF Model.
There is already a beta version of the SRDemo using ADF BC out on OTN, and this along with a developer guide book using ADF BC will be out later this year.

Similar Messages

  • When we use jsf can we also use hibernate or ejb for database visting.

    when we use jsf can we also use hibernate or ejb for database visting.

    http://blog.exadel.com/?p=8
    http://java.sys-con.com/read/46977.htm
    http://www.javaworld.com/javaworld/jw-07-2004/jw-0719-jsf.html
    http://www.jroller.com/page/ksevindik/?anchor=lookup_tables_with_hibernate_and
    Sergey : http://jsfTutorials.net

  • HT204053 When I initially try to sign in to iCloud, I get the "Account not verified" screen and I am told to check my email for instructions to verify.  No email is ever sent. My ID and password work on all other Apple app's.  Why not for iCloud?

    When I initially try to sign in to iCloud, I get the "Account not verified" screen and I am told to check my email for instructions to verify.  No email is ever sent. My ID and password work on all other Apple app's.  Why not for iCloud?

    I've tried both. First, I tried on my pc, where iTunes had installed iCloud when it last updated. I have iTunes installed on this computer (and on my iPad and iPhone), but that wasn't the issue.
    So I went online, thinking I needed a separate iCloud Apple ID, but it prompted me for my current Apple ID and gave me the message about my ID being "valid" but not an iCloud account," which, lol, was what it had asked me to do in order to create one. I checked, and at least one other user is having the same issue. I'll attempt to copy/paste the Support request url: https://discussions.apple.com/thread/4430653?tstart=0
    Thank you for any help you can give.
    Trish

  • EAM ID based or Role based? Why settle for just one?

    G'Day All,
    I've raised a question in the following blog, however I would like to open it up to other people as well so they might get something out of it and in the process might share their own thoughts on the matter at hand.
    ID-Based Firefighting vs. Role-Based Firefighting
    So this is where I am at this point:
    From what I can gather so far, my understanding of EAM ID/ROLE based is as follows:
    - Id Based: Logs in using own U.ID and through GRAC_SPM accesess FFID from the GRC Server and logs into the system assigned to them (ECC, SRM, CRM etc)
    Only one user at a time can use a FFID.
    Firefighter need not exist in every system assigned to them due to central logon however they need to exist in the GRC system
    Knows exactly when FFID is being used as he/she has to login so has a psychological effect (good thing)
    Better tracking of FF tasks - Specific log reports with Reason Codes. Bonus point from Auditors!
    Two Log ins so potential to commit fraud. (1 action using own UserID and 1 action using FFID)
    Could be hard to track and find out when a fraud has been committed so can be a problem with auditors.
          ID Based -> GRAC_SPM : TCode for Centralised FFighting -> You will see FFIDs assigned to you
          ID Based -> /n/GRCPI/GRIA_EAM : TCode for DCentralised FFighting -> You can see  the FFIDs assigned to you
    - Role Based: Logs into the remote system only using U.ID, so everything gets logged against that one ID. 
    Multiple users can use the FFROLE at once.
    Firefighter has to exist in every system assigned to them - so multiple logons.
    Hard to differentiate between FF tasks and normal tasks as no login required  So easy to slip up
    Time consuming to track FF tasks - No Specific log reports. No Reason Codes
         R.Based -> GRAC_SPM : TCode for Centralised FFighting -> You will see FFROLEs
         R.Based -> /n/GRCPI/GRIA_EAM : TCode for DCentralised FFighting -> Not applicable so wont work
    So based on this there are pros and cons in both however according to SAP only one can be used. To me personally,  it makes more sense to get the best of both the worlds right? So here is my question why can’t we just use both?
        . Really critical tasks -> FFID
        . Normal EAM tasks -> FFRole
    Alessandaro from the original post pointed this out:
    "Per design it isn't possible to achieve both types of firefighting at the same time. It's a system limitation and hence to configurable."
    Well this is what I can't seem to get my head around. For a FFID, there is a logon session so it has to be enabled and as far as I can tell there is no way around it.
    However for FFRole, there isn't such limitations/restrictions like starting a separate session. FFRole is just assigned to an end user for him/her to perform those tasks using their own user ID.
    So in what way is it different from any of their other tasks/roles, other than the fact that they've got an Owner/Controller assigned to the FFRole? and
    What is stopping us from using it when ID based is the default?
    If I were to do the following does it mean I can use both ?
        . Config Parameter: 4000 = 1 (GRC System) -> ID Based
        . Config Parameter: 4000 = 2 (Plug-In)  - > Role Based
    Please excuse me if my logic is a bit silly, Role Based firefighting is only done on Plug-in systems so the following should work just fine:
       . Config Parameter: 4000 = 2 (Plug-In)  - > Role Based
    However for ID based, it is a Central Logon, so the following is a must:
        . Config Parameter: 4000 = 1 (GRC System) -> ID Based
    Which means both ID/Role based can be used at the same time, which seems to be working just fine on my system. Either way I leave it you experts and I hope you will shed some light on it.
    Cheers
    Leo..

    Gretchen,
    Thank you for thoughts on this.
    Looks like I'm failing to articulate my thoughts properly as the conversation seems to be going in a different direction from what I am after. I'll try once more!
    My query/issue is not in regards to if/what SAP needs to do about this or why there isn't more support from Companies/Organizations and not even, which one is a better option.
    My query is what is stopping us(as in the end users ) from using both ID/Role based at the same time?
    Now before people start referencing SAP documentation and about parameter 4000, humour me with the following scenario please. Again I would like to reiterate that I am still in the learning phase so my logic might be all wrong/misguided, so please do point out to me where I am going wrong in my thought process as I sincerely would like to know why I am the odd one out in regards to this.
    Scenario
    I've created the following:
    FFID
    FFROLE
    Assigned them to, two end users
    John Doe
    Jane Doe
    I set the Configuration Parameters as follows: 
    IMG-> GRC-> AC-> Maintain Configuration Settings -> 4000:1 - ID Based
    IMG-> GRC (Plug-in)-> AC-> Maintain Plug-In Configuration Settings-> 4000:2 - Role Based
    User1
    John Doe logs into his regular backend system (ECCPROD001)-> executes GRAC_SPM-> Enters the GRC system (GRCPROD001)-> Because the parameter is set to ID based in the GRC Box, so he will be able to see the FFID assigned to him-> and will be presented with the logon screen-> Logs in -> Enters the assigned system (lets say CRMPROD001) At this point the firefighting session is under progress
    User2
    Jane Doe logs into her regular backend system (ECCPROD001) -> (can execute GRAC_SPM to check which FF Role has been assigned to her but she can see that in her regular menu, so there is no point) -> Executes the transactions assigned in FFROLEThis is done at the same time while FFID session is in progress
    So all I want to know is if this scenario is possible? if the answer is No, then why not?
    I physically carried out this scenario in my system and I had no problems(unless I am really missing the plot here), which brings me back to my original question: Why settle for just one?
    Again to reiterate I am not getting into the efficacy or merits of this or even if one should use this. Just want to know if it is possible/feasible or not.
    So there you have it. That's the whole enchilada(as they say there in Texas). I tried to word my thoughts as concisely as I can, if there are still any clarifications, more information you or anyone else reading this would like, please do let me know.
    Regards,
    Leo..

  • Why can't I debug my JSF Portlet application after inserting an IFrame

    Hi,
    1) I created a jsf portlet application
    2) I add a button in my jsf portlet application
    3) I can debug my button's action method
    4) Now I open my jsp editor and add an iframe
    <iframe height="500" id="ifWindow" name="ifWindow"/>
    5) I try to debug my button's action method but the debug cursor never reaches it like in step 3
    6) I added a messageGroup but nothing appears there
    7) I monitored "C:\Program Files\Sun\Creator2_1\SunAppServer8\domains\creator\logs\server.log" and nothing appears there
    Is this a bug in Java Studio Creator or is there a problem with iframe in jsf portlet applications?
    Why can't I debug a jsf portlet application if I put an iframe?
    Has anyone got this to work in their jsf portlet application? What can I do to debug this simple application?
    Thanks,
    Marc

    Hi,
    I figured it out. I can debug my jsf application if I placed the iframe outside the <ui:form> element. If it's inside, I cannot debug the application. Are there any books or tutorials that I can read to get rules like this in JSF development?

  • Open source /  Commercial version, it's up to you! Why not for ESB products

    Please comment this forum and help us to get Sun's support for Open ESB as we can get it for open-Solaris or Glassfish.
    Thanks
    Paul
    Extract from
    http://www.pymma.com/eng/People/Blog-Paul-Perez-Chief-Architect
    Jonathan Schwartz new policy
    Few years ago, Jonathan Schwartz replaced Scott McNealy as SUN Microsystems CEO. Swartz's first decision was to convert Sun into an Open-Source company. Consequently, Solaris OS, Application Servers and even the Java language were opened and their sources published. At present, Sun is viewed as a major Open Source actor.
    Sun�s new sales philosophy proposes, on one hand, its best products in an open-source format and on the other hand, commercial support and hardware. The best examples of this new philosophy are Open-Solaris and Glassfish. You can download these products, use them and test them. After you have built applications with these tools and wish to move into a production environment, you can buy support from Sun.
    Open source or Commercial version, it's up to you!
    Alternatively, you can as well buy commercial versions at the first place. Even if open sources and commercial versions are slightly different than the open-source ones, more than 95% of their code is originated from the same development branch. Example : SUN proposes its queue messaging system with two similar versions, respectively named �SUN QM� and "Open-MQ". The only difference is the amount you pay for the technical support.
    Everyone can find advantages in this sales policy on Sun products: companies and developers try and develop for free and can rely on Sun support in production. As a matter of fact, Sun uses these �free� products as Trojan horses to conquer new market shares, penetrate new companies and sell Sun hardware.
    Why not for ESB Products ?
    Unfortunately, there is a small issue in this picture: Sun's ESB platform is the exception in this sales policy. In Fact, Sun proposes two different tools for ESB developments. The first product. "JCAPS", is a commercial product inherited from Seebeyond. The second product, "Open-ESB" is based on JBI specifications (JSR 208) and was developed from scratch about 2 years ago.
    Alas, JCAPs and Open-ESB are definitely two different products.
    JCAPS ignores JBI specifications
    JCAPS connectors are based on JCA specifications and not on JBI.
    Open-ESB development process is based on Web services specifications, JCAPS not.
    JCAPS and Open-ESB developments are not compatible.
    Hundreds other differences can be found between the two products.
    We can understand that for a while, for technical, marketing or business reasons, a company supports more than one product lines with the same functionalities. IBM does it and Oracle buying BEA will do it also.
    However, there are several things that Pymma would like to understand:
    Why the download of JCAPS is only available for authorized JCAPS Partner ?
    Why SUN does not provide support for open-ESB as it does for Glassfish, Open Solaris or Open MQ ?
    Why JBI or Open-ESB are never mentioned at most ESB seminars organized by Sun Centres in the UK ?
    Why Sun marketing, Gurus or consultants are prolix about JBI in the public lectures and technical forums, and at the same ignore Open-ESB when they advice companies ?
    Is the policy of Jonathan Swartz policy only applicable for Java Legacy applications (Application Server, Message queuing�)? not for ESB tools ?
    Of course, we already asked these questions to SUN but we never got clear answers.
    Thanks for clarifying Sun's position
    Many companies believe in JBI and their developers spend time and energy working on Open-ESB . These companies would certainly be interested to hear Sun's explanations on the above questions. They probably want to be sure that Open-ESB will not be just a prototype for the new JCAP version (only reserved for SUN JCAPS Partners). They certainly want to be credible by proposing SUN's professional support on Open-ESB as they do for Glassfish and Open-Solaris. After, they only need from SUN to clarify its position and give a clear prospective for the future of JBI and Open-ESB. We hope that through this blog Sun will hear us and we will give us clear answers.

    Hi Leonie,
    My iPhoto is iPhoto 11, version 9.4.2.  I believe my Aperture is the latest version but I don't know how to verify that when I can't open it.  I regularly accept any updates.
    How I restored my Aperture Library: I opened Aperture, clicked on Time Machine, and navigated to the Aperture Library that had been backed-up earlier in the day.  It took a while to restore. 
    When done, I opened Aperture (yes, at that point I could still open it).  It opened up on the still-empty Library, and I had to manually change it to the restored library, every time I opened aperture after that.  This was annoying, so, I then went to FINDER and deleted the empty Library.  I probably shouldn't have done this; I noticed it had the words "current default" in its filename. 
    From that point on, FINDER shows the restored aperture library (actually two restored aperture libraries, since I accessed Time Machine a second time to restore an even older backed-up version) but of course, not the empty Library that had had "default" in its filename.  And... I can no longer open Aperture.
    Hope you can help me, thanks so much,
    Glensdaughter

  • Why only for me my webpage is little bit broken?

    Why only for me my webpage is little bit broken not showing correctly? With other browsers is OK, but then i using Firefox 4+ version it's little bit broken, my friends using same browser like me, but for they website looking good. Please help me, because i don't like use old firefox versions :/
    You can see how for me it look's: http://img818.imageshack.us/img818/8585/unledal.jpg At normally the text from panel's should little bit exposed from panel.

    Fix your coding so your web pages are displayed in "standards mode" rather then the "quirks mode". The problem with the quirks mode is that it forces Firefox to guess your intentions about how something is to be displayed, when your friends view that page Firefox guesses right, but for you Firefox is guessing wrong. Eliminate the "guess" factor and Firefox should display your web page the same for all users. <br />
    http://en.wikipedia.org/wiki/Quirks_Mode
    Plus, once you fix the code, maybe you can get rid of that NO IE logo that appears when someone uses IE to view that page. Times are changing, IE 8 and even more so IE9, can display web pages almost as good as Firefox, Opera, and Chrome, and if not the web page is more than likely at fault.

  • Why jvm maintains string pool only for string objects why not for other objects?

    why jvm maintains string pool only for string objects why not for other objects? why there is no pool for other objects? what is the specialty of string?

    rp0428 wrote:
    You might be aware of the fact that String is an immutable object, which means string object once created cannot be manipulated or modified. If we are going for such operation then we will be creating a new string out of that operation.
    It's a JVM design-time decision or rather better memory management. In programming it's quite a common case that we will define string with same values multiple times and having a pool to hold these data will be much efficient. Multiple references from program point/ refer to same object/ value.
    Please refer these links
    What is Java String Pool? | JournalDev
    Why String is Immutable in Java ? | Javalobby
    Sorry but you are spreading FALSE information. Also, that first article is WRONG - just as OP was wrong.
    This is NO SUCH THING as a 'string pool' in Java. There is a CONSTANT pool and that pool can include STRING CONSTANTS.
    It has NOTHING to do with immutability - it has to do with CONSTANTS.
    Just because a string is immutable does NOT mean it is a CONSTANT. And just because two strings have the exact same sequence of characters does NOT mean they use values from the constant pool.
    On the other hand class String offers the .intern() method to ensure that there is only one instance of class String for a certain sequence of characters, and the JVM calls it implicitly for literal strings and compile time string concatination results.
    Chapter 3. Lexical Structure
    In that sense the OPs question is valid, although the OP uses wrong wording.
    And the question is: what makes class Strings special so that it offers interning while other basic types don't.
    I don't know the answer.
    But in my opinion this is because of the hybrid nature of strings.
    In Java we have primitive types (int, float, double...) and Object types (Integer, Float, Double).
    The primitive types are consessons to C developers. Without primitive types you could not write simple equiations or comparisons (a = 2+3; if (a==5) ...). [autoboxing has not been there from the beginning...]
    The String class is different, almost something of both. You create String literals as you do with primitives (String a = "aString") and you can concatinate strings with the '+' operator. Nevertheless each string is an object.
    It should be common knowledge that strings should not be compared with '==' but because of the interning functionality this works surprisingly often.
    Since strings are so easy to create and each string is an object the lack ot the interning functionality would cause heavy memory consumption. Just look at your code how often you use the same string literal within your program.
    The memory problem is less important for other object types. Either because you create less equal objects of them or the benefit of pointing to the same object is less (eg. because the memory foot print of the individual objects is almost the same as the memory footpint of the references to it needed anyway).
    These are my personal thoughts.
    Hope this helps.
    bye
    TPD

  • When to use @Resource and when to use @EJB for dependency injection

    Hi,
    When do you use
    @Resource and when do you use @EJB for dependency injection?
    Thanks

    Captain obvious: Use @EJB for injection of EJBs, and @Resource for everything else.
    There was a discussion about this very topic quite recently, perhaps you can find it through the search.

  • Where does one find the Very Useful tool, Magic Wand,  in the latest version of Photoshop, anyone?  Its been well hidden.  Why change for change's sake?

    Where does one find the Very Useful tool, Magic Wand,  in the latest version of Photoshop, anyone?  Its been well hidden.  Why change for change's sake?

    csuebele wrote:
    I guess I'm too slow, Trevor.
    That's no bad thing Chuck.  It indicates that you have better things to do than constantly refresh the forum LOL.
    I'm having a wee posting spree today after lacking the inclination to respond to the same old threads for the last few days.    But I do love it when people get all in a tizzy complaining about stuff that is right under their nose (so to speak).   So I guess my criteria for responding is often based as much on how big a smile it puts on my face, as to how much I am helping the OP.   Unfortunately that irreverent approach gets me into trouble at times, and one of the moderators deleted one of my illustrated replies just a few days ago.  It took me a few minutes to work out why it had been deleted.  The subtext was 'risking one eye', and I eventually realized that the implied 'risk' could definitely be seen as offensive to some people. 

  • When a new user is created on the Server Computer,Why profile for the user is created as computername.username?

    When a new user is created on the Server Computer,Why profile for the user is created as computername.username?

    This is done if there are domain users with the same name. For example, if there is a domain user named 'test' who has logged in on the server, he will get the profile 'test'. If you then create a local user named 'test', the profile 'test' already exists
    and the computer will create the profile 'computername.test'

  • In RS02 why DataSource for Hierachy is not there.. plz help

    hi bw experts,
    can u plz tell me in RS02 tcode why datasource for hierarchy is not there.
    plz explain me in brief..
    thanks & regards
    vijay...

    Hi,
    In RS02 we won't have Hierarchy DataSource bocoz the OLTP system is based on the ERM (Entity Relationship Model) where we will have only ONE to ONE relation i.e., two dimensional table design. Which basically won't support the ONE to MANY Relation. If we want to connect the tables means we will connect by means on the PRIMARY KEY and FOREIGN KEY relations. which won't support Hierachy DataSource.
    I think it will help u a little bit.
    Regards
    Prabhakar

  • I paid my iphone and it still isn´t mine becouse i can´t use it the way i want, why ? for example i can´t do nothing without iTunes ?

    I paid my iphone and it still isn´t mine becouse i can´t use it the way i want, why ? for example i can´t do nothing without iTunes ?
    this is so stone age and android is so futristic compared to iphone since android can be use the way anyone wants and you can share or send anything to anyone with just using wi-fi direct or BT not to talk about free apps and music and video downloads :S so i have paid for my iphone but still it isn´t mine since im limited in a use of it

    Let's try to explain this:
    iPhones operate on iOS, which has the highest level of safeguards against malware.  There have been ZERO reported & confirmed cases of a non-jailbroken iOS device suffering from malware.
    Android's operate on an OS that actually ALLOWS significant modifications to the system, which, by definition, allows malware to easily infiltrate the device.  Does it happen to all Android users?  No.  But percentage wise,it's basically infinitely more likely for an Android user to suffer from malware than an iOS user.
    79 percent of all mobile device malware targets the Android platform.  That's means an Android is 113 times more likely than even a jailbroken iOS device to suffrer from malware.
    http://www.v3.co.uk/v3-uk/news/2291561/android-malware-makes-up-79-percent-of-to tal-threats-warns-us-department-of-homeland-security
    Apple iOS and "other" operating systems were both listed as being the victims of 0.7 percent of all mobile malware.
    The low number of threats targeting Apple iOS, despite the popularity of its iPhone and iPad devices, is largely due to the closed security model. This model forces developers to sell their wares on Apple's official App Store, which closely vets all applications before allowing them into the marketplace.

  • Why pay for pdf Export if I am a member of Adobe Applications?

    Why pay for pdf Export if I am a member of Adobe Applications? This membership was supposed to include each and every Adobe Applications?

    Absolutely no reason. Because Adobe Acrobat includes this function already. It's just a service for people without Acrobat.

  • Why passwd for CHAP must be the same while for PAP its not mandatory ?

    Hi,
    want to ask a question in WAN about PAP/CHAP.
    why passwd for CHAP must be the same between routers  while for PAP its not mandatory ?
    regards

    By default, much of this type of checking is performed for you. Read the available checks in {font:Courier}/usr/share/doc/pam-0.99.6.2/txts/README.pam_cracklib{font} and then decide if these are sufficient.
    Note that some checks are not enabled by default, You can tune them by editing the {font:Courier}/etc/pam.d/system-auth{font} file:
    # /bin/fgrep /etc/pam.d/system-auth
    password    requisite     pam_cracklib.so try_first_pass retry=3and tinkering with the command line arguments there.

Maybe you are looking for