Difference between com.sap.ejb.annotations.AppStartup and @PostConstruct

Hi developers,
In NW 7.3 we have two EJB annotations with identical meaning:
javax.annotation.PostConstruct
and
com.sap.ejb.annotations.AppStartup
A method annotated like this is invoked by the container right before the EJB is made available to clients.
Can anyone explain the difference between the two annotations?
Thanks, regards
Vincenzo

Hi
PostConstruct = EJB standard, AppStartup = SAP proprietary.
As far as I understand the descriptions, the AppStartup callback invocation occur for all EJBs immediately when the application is starting (no matter if the EJB is called or not) whereas "The PostConstruct callback invocations occur before the first business method invocation on the bean. This is at a point after which any dependency injection has been performed by the container." (see EJB spec).
So the PostConstruct has nothing to do with application life cycle but with the lifecycle of a single bean instance. PostConstruct may be called later on first client invocation) and in AppStartup, you probably do not have dependency injection performed but have to lookup using java:comp/env.
Regards
Rolf

Similar Messages

  • Difference between the SAP Mobile Infrastructure and SAP NW MOBILE7.1

    Hello everyone, could you tell me what's the difference between the SAP Mobile Infrastructure http://help.sap.com/saphelp_nw04/helpdata/en/a7/893a5889e08b41b615688b1a93b559/frameset.htm and SAP NETWEAVER MOBILE 7.1 http://www.sdn.sap.com/irj/scn/nw-mobile-tools;jsessionid=(J2EE3417800)ID0940784850DB22002277755496926773End ? I have to develop a mobile application and I have studied the MDK 2.5 here http://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/21eba3a7-0601-0010-b982-92f1fca3258a&overridelayout=true ,  but now I have come to doubt whether I have done well to study MDK 2.5 for my purpose.

    Hi,
    We have this answer in many other threads..
    Mobile infrastructure (MI 2.5 / MI 7.0) is the older release of mobile.The latest version of mobile is NW Mobile 7.1 which comes with a total architectural change, provides better scalability and has advantages in many other areas like better modeling, monitoring options , faster device synchronization time etc.
    Netweaver mobile constitutes of server (DOE) and a default client framework (Netweaver mobile client) .
    Mobile application could be created using NetweaverDeveloper Studio(NWDS) that will present the data required by the mobile device user.
    This mobile application once deployed on a device will work on the local persistency and during synchronization with DOE sends the modified/new data to Backend via DOE.
    Customers can also develop a custom client framework and application that still talks to DOE (and inturn to backend)
    NW mobile 7.1 could be used to build mobile applications suiting offline and onlines scenarios.
    In few words to mobilize enterprise solutions
    SAP R/3 will act as backend
    ---talks to DOE through remote enabled BAPI Wrappers ---
    NW mobile will be middleware that does the data orchestration
    Upon Synchronization of mobile device with DOE using a messaging protocol over http(s)
    Receivers could be devices with client application installed / another server.
    checkout this [configuration guide|http://help.sap.com/saphelp_nwmobile71/helpdata/en/45/17a790d8000064e10000000a1553f7/frameset.htm] and [developer's guide|http://help.sap.com/saphelp_nwmobile71/helpdata/en/8F/0B674240449C60E10000000A1550B0/frameset.htm]
    for understanding how to start with development with NW Mobile 7.1
    Regards,
    Liji

  • Difference between /usr/sap/ and /usr/sapmnt/  Directories

    Hi all,
       I want to know the difference between /usr/sap/ and /usr/sapmnt/ directiories. We are having exe,profile and global in both directories.
    Thx
    Ral

    /usr/sap is symlink to the /usr/sapmnt. You can study this link ( point 2 in procedure) to understand better
    http://help.sap.com/saphelp_nw04/helpdata/en/4f/37782a21fc11d288cd0000e83539c3/content.htm
    Reward points if useful

  • Difference between below SAP FIORI and where to deploy

    Hi,
    Planning to evaluate FIORI.
    Backend System is SAP ERP6.0 with EHP7 SP6
    Frontend system SAP Netweaver 7.40 SP5
    Need some clarity.
    Where need to deploy SAP Fiori for Suite on backend system or frontend sytem ?
    What are the difference between below SAP FIORI ?.
    FIORI ERP APPLICATIONS X1
    FIORI ERP APPLICATIONS X2
    SAP FIORI FOR SAP ERP
    Regards,
    Nikunj Thaker
    Tags edited by: Michael Appleby

    Hi Nikunj,
    I would recommend going to http://scn.sap.com/community/mobile and reading the What is SAP Fiori UX? page with all of its links.  There is a wealth of information there on the whole topic of Fiori.
    X1 (aka Wave 1) is the first release of Fiori with 25 apps and a starting point referred to as Launchpage.
    X2 (aka Wave 2) is the second release.  It changed the starting point from Launchpage to Launchpad with some rather major changes in design, configuration, installation, and features.
    SAP FIORI FOR SAP ERP is a reference to applications created for use with SAP ERP (as opposed to SAP CRM, SAP SRM, etc.).
    Regards, Mike
    SAP Customer Experience Group - CEG

  • What's the difference between old SAP appraisal system and the new SAP appraisal system?

    Hi Experts,
    What's the difference between old SAP appraisal system and the new SAP appraisal system?
    Can anyone shed some light please.
    Thanks.

    emgr_update no longer sets or gets the thesaurus from workbench. In 11 all workbench configurations are saved in IFCR configuration directly.
    Hence the thesaurus entry should be added directly in version 11 Workbench as opposed to xml file in older versions.
    And if you want to migrate the changes across environments then import_site script in control directory can be used.

  • Difference between the design of clusters PCLx and others like RFBLG etc .

    There are a few nagging questions which I was not able to find in the forum hence i have to post a new question.
    I am a little confused about the difference between the different clusters .
    If i start with RFBLG i.e. the cluster for BSEG BSEC etc ,I can see that the tables which are part of this cluster
    can be viewed through different methods like
    1) whr usd list for RFBLG
    2) dd02l table and give the required parameters there
    now when I compare this with another so-called cluster PCL1 if find that PCL1 is not recognized as  a cluster
    and also I am not able to see the same in dd02l table when i give PCL1 and the tabtype as cluster which I was able to see
    for the RFBLG ,there are other tables similar to RFBLG .
    1) SO what is the difference between the RFBLG type of clusters and the PCLx type of cluster
    2) are pclx and rfblg..type of clusters same ?
    3) why does PCL1 shows that it is a transparent table ? where as rfblg shows in a diff way in se11
    4) i know we access data from PCL1 using import and export stmts ,DO OR CAN WE DO THE SAME FOR RFBLG
    5) I found that each and evry cluster table had diff fields ,this was kinda surprising for me as I had been thinking
    that all cluster tables need to follow a certain rule ,SO WHO DECIDES THE FIELDS OF A TABLE CLUSTER ?
    6) PCL1 has the index button enabled ,which again I think is not according to the cluster table rules?how?
    7) I understand that we can save data in form of internal tables in the PCL1 cluster ,can we do the same in RFBLG ?
    8) Can I think on lines that PCL1 and RFBLG type of cluster are two totally different types of data dictionary objects
    and the usage and implementation of both of them is different and that the design and the BASE of both of such objects
    is different .
    I know this is a long list but I am sure that answers to these questions would really require some one who has really really work hard and invested a lot of time in understanding the dictionary system.I am awaiting a few answers ,few hints and a healthy discussion till we get them .
    Thanks ...
    a

    Hello,
    1/
    BSEG is a typical Cluster Table.
    This means that the physical table BSEG does NOT exist in the database, physical data for BSEG is stored in the database (table) cluster RFBLG.
    In ABAP however you can perform selects on BSEG (with all fields from the SAP repository structure, see SE11 on BSEG), during execution the SAP database layer will translate these statements to physical selects in the RFBLG database table, so in ABAP this is transparant.
    More info :
    [http://help.sap.com/saphelp_nw04/helpdata/en/cf/21f083446011d189700000e8322d00/content.htm|http://help.sap.com/saphelp_nw04/helpdata/en/cf/21f083446011d189700000e8322d00/content.htm]
    2/
    PCL1, PCL2, ... are normal SAP transparent tables, however in HR they are often called HR cluster table.
    Transparent tables are SAP objects where there is also a database table with the same name that contains the physical data.
    However the PCL tables are somewhat different from normal transparent tables (data is compressed, external programs can not interpret the data, ...).
    This means that in ABAP you can not use simple SQL statements to access data in PCL tables (because of compressed format).
    In stead statements like EXPORT TO DATABASE and IMPORT FROM DATABASE need to be used.
    More info :
    [http://fuller.mit.edu/hr/cluster_tables.html|http://fuller.mit.edu/hr/cluster_tables.html]
    Wim

  • What is the difference between credit memo in invoice year and in next year

    Hi!
    I'm new here.I'm study SAP ERP.I don't know what is the difference between credit memo in invoice year and credit memo in next year (asset accounting).Can you show and give me an example, please!
    Thanks and best regards!
    Edited by: dinhtuan on Jun 28, 2010 3:10 PM

    Hi,
    Maybe have a look at the SAP Help for further information (http://help.sap.com) : e.g. 'Posting Credit Memos Integrated with Vendor'  or 'Posting a Credit Memo Offset Against a Clearing Account' 
    Transaction type 105 for credit memo on current acquisition made in the current year, posting key 75. Or transaction type 160 for credit memo on acquisitions from prior years. posting key 75.
    Note: determine if the asset was acquired in the current fiscal year or in a closed fiscal year (Display asset values).
    If the asset was acquired in a fiscal year that is now closed, correct the past depreciation using a write-up (in that case check out and refer to Posting Write-Ups).
    I hope this helps.
    Kind regards,
    Brigitte

  • Differences between 4.7, ECC 5.0 and ECC 6.0

    Can anyone tell me the differences between versions 4.7, 5.0 and 6.0 with regards to HR?

    Hello,
         Have a look at these links.
    http://abdurohman.wordpress.com/2007/06/29/whats-new-in-ecc5-and-ecc6-ecc7/
    Diff. between SAP 4.6c, 4.7 & ECC 5.0 versions
    Regards,
    Manoj.

  • Difference between Req with insufficient lead time and lead time const

    Hi ,
    1) Can anyone explain the difference between Requirement with insufficient lead time and Requirement lead time constraint exception messages. Both seems to be similar for me with the compressed time.Also at what situations these exceptions are generated.
    2) what is minimum lead time required ,actual lead time and its calculation.
    Thanks...

    Check out
    http://help.sap.com/saphelp_scm50/helpdata/en/99/ed3a981d0f11d5b3fc0050dadf0791/content.htm
    particularly the section "Which functions of the operations relevant to scheduling are supported?"
    It will give you a flavour of what can lead to difference in planning.

  • Difference between BW on HANA, Native HANA and HANA Enterprise..?

    Hi Experts,
    I am learning SAP HANA modeling.
    I am not able understand why there are three terminologies i.e., BW on HANA, NAtive HANA and HANA enterprise..
    Could you please tell me the "Difference between BW on HANA, Native HANA and HANA Enterprise..?"""
    I searched in sdn but not getting required info.
    Please share the links if you have.
    Thanks
    Asha

    Asha,
    BW is a SAP Business Application, which can run on many traditional relational databases and on the SAP HANA database, BW on HANA is the BW application running on the HANA database, for details please see http://scn.sap.com/community/bw-hana/faq
    Native HANA means in general that the code has been developed on HANA and specifically for HANA. For example BW has coding which can run on all databases which are certified for BW, and new code developed specifically for HANA = HANA native.  Or another example, HANA studio is a native HANA application.
    HANA enterprise is a license version of HANA. You can buy runtime licenses to run BW on HANA for example, and you can buy the enterprise license, which is a very comprehensive license to use many HANA capabilities. Please see your SAP account executive or SAP partner for details.
    thank you
    erich

  • Difference between Sharepoint 2007 ,sharepoint server 2010 and sharepoint 2013

    Difference between Sharepoint 2007 ,sharepoint server 2010 and sharepoint 2013
    Saidireddy

    Hi
    your little question, could have a big big answer, or answers ;)
    To complete your question, ai will try
    Difference between Sharepoint 2007 ,sharepoint server 2010 and sharepoint 2013 and Office 365
    Isn't a simply an unique answer and deppends on your need , business needs, and you infrastructure. Depends also which type ( Foundation ( which is free ), Standard/ Enterprise )
    Depends on you to read, learn and ask , punctually about one issue/problem/request
    I recommend you to bing the net
    http://www.bing.com/search?q=sharepoint+2007+vs+2010+vs+2013&pc=MOZI&form=MOZSBR
    Romeo Donca, Orange Romania (MCSE, MCITP, CCNA) Please Mark As Answer if my post solves your problem or Vote As Helpful if the post has been helpful for you.

  • Difference between SUN JDK V1.4.2_05 and JDK V1.4.2_07

    difference between SUN JDK V1.4.2_05 and JDK V1.4.2_07 and I want to the link in SUN for that. I want to know the bug fixes between them.

    Perhaps you should look at the documentation which comes with JDK 1.4.2_08.
    It has the bugs fixed listed.

  • What are the differences between the Time Capsule MC344LL/A and MD032LL/A, do both havethe same make of server grade HDD, also any changes in WiFi coverage and networking abilities?

    What are the differences between the Time Capsule MC344LL/A and MD032LL/A, do both have the same make of server grade hard drive, also any changes in WiFi coverage or networking abilities?  Thanks

    Found this info regarding original question:
    What are the differences between the Time Capsule MC344LL/A and MD032LL/A, do both have the same make of server grade hard drive, also any changes in WiFi coverage or networking abilities?  Thanks
    http://www.hardmac.com/articles/402/page1
    http://www.applefritter.com/node/23907
    Hope this helps -
    ; >}

  • Issue Differences between the table of totals (ZFXX00T)  and detail (ZFXX00

    Hi,
    Currently I have a issue in the FI-SL module with Differences between the table of totals (ZFXX00T)  and detail (ZFXX00A). And I do not Know why. Please your help or comments.

    did you try ERP Financials forum yet? a lot of FI-SL has been replaced with SAP Ledger FAGLFLEXA and T tables.
    @greg_not_so

  • Differences between COM & JavaScript Scripting

    Hi all,
    I have to make a sort of script that populate an InDesign document with some data from a database.
    I can do it with a Web Service called in Javascript or in C# with COM.
    Do you know the differences between COM and Javascript scripting ?
    What is the best ?
    Thank you.

    Hello,
    Would javascript be the recommanded way to go if i want to interop with it without any user interaction?
    Out goal is to produce catalogues (from another application , in C# / .net 4.0) which already contains the data. We want to be able to push that data toward indesign so direct com interop seemed to make the most sense.
    Is there a way to send javascript commands to indesign from another program (NOT to indesign server and it's web services, we want to do this directly on the locally installed indesign client)?
    Also what would be the proper way to send non textual data in indesign? (images etc) from a C# app as those can't simply be serialized as json and passed as text as part of the JS commands.
    Doing this in javascript is fine for us too as long as there is a way to pass said javascript from an external app. Or should we look completely elsewhere?
    Any means of commanding Indesign CS 5 from .net 4 would be great.
    Best regards.

Maybe you are looking for

  • Bug? Shape when I want a path

    I'm seeing some odd behaviour here. I'm not sure if this is a bug or a feature Create a new document. Select the Ellipse tool (or any closed shape) Set the options bar to: 'shape' and set a solid colour fill and different coloured stroke. Drag out th

  • Can't find other computers on the network

    Ok, so I have a wrt54g wireless router thats directly connected to my main desktop pc.  I have another pc and a laptop that's set up wireless.  I'd like to link them to the main desktop so I can access files and the printer.  I can't seem to figure i

  • My phone is stuck in recovery mode.  Are my photos and videos that weren't downloaded lost?

    I've been lazy about updating my phone.  I plugged it into my computer tonight, the prompt came up and I absentmindedly clicked OK, you get the picture.  It claims the update failed and now my phone is stuck in recovery mode.  I can't believe I didn'

  • Late 2009 Macbook aluminium Output to Samsung LCD (SyncMaster 710T) problem

    Have bought a Mini-Display port to DVI cable for connecting macbook to the Samsung LCD monitor. Output is fine but if i left my desk (with macbook on), and when the Macbook goes to power saving mode or sleep...after i switch it back on, my lcd displa

  • Query on HCM Processes and Forms

    Hi I am facing some issues in configuring Hiring Forms in HCM Processes and Forms. I can place them in 2 baskets and describe each of them below. I would appreciate any advise on ways and means to overcome these errors. Basket #1 I want to use the st