A very special requirement regarding JCA1.5

Hello,
Our project encounters a very special issue when using JCA 1.5. As we all know, when an MDB is stopped (or the application server is shutting down), the "endpointDeactivation" is called inside the resource adapter class. But when this method is called, the endpoint is already stopped so we cannot use it to do anything.
Our requirement is that before the endpoint is shut down, we want to do some clean up work which needs the context of the MDB. Then we can call "endpointDeactivation" as normel. MDB.ejbDestroy() apparently doesn't meet this requirement.
Does anyone have any ideas on this? We are thinking about using MBeans but not quite sure if this can get it done...
Thank you!

I understand that ejbRemove() may not be called if the EJBContainer crashes or if a SystemException is thrown from the bean. In these circumstances, there is no mechanism available to perform cleanup from within the context of the bean. You will need to somehow do this cleanup outside of the MDB which is being stopped.
Aside from the above scenarios you should be able to rely on ejbRemove() for cleanup operations. Can you explain why ejbRemove() does not meet your requirements.
-John

Similar Messages

  • A special requirement regarding ResourceAdapter + MDB

    Hello,
    Our project encounters a very special issue when using JCA 1.5. As we all know, when an MDB is stopped (or the application server is shutting down), the "endpointDeactivation" is called inside the resource adapter class. But when this method is called, the endpoint is already stopped so we cannot use it to do anything.
    Our requirement is that before the endpoint is shut down, we want to do some clean up work which needs the context of the MDB. Then we can call "endpointDeactivation" as normel. MDB.ejbDestroy() apparently doesn't meet this requirement.
    Does anyone have any ideas on this? We are thinking about using MBeans but not quite sure if this can get it done...
    Thank you!

    I understand that ejbRemove() may not be called if the EJBContainer crashes or if a SystemException is thrown from the bean. In these circumstances, there is no mechanism available to perform cleanup from within the context of the bean. You will need to somehow do this cleanup outside of the MDB which is being stopped.
    Aside from the above scenarios you should be able to rely on ejbRemove() for cleanup operations. Can you explain why ejbRemove() does not meet your requirements.
    -John

  • Very special requirement

    we need to write a prog which will display pop-up if user run any obsolute prog or transaction code.
    in otherwords.. if user enters any tcode, and its an obsolte one or its not used for the last 3months... then a pop-up should comeup with a msg.
    how can i do this
    Thanks
    Kiran

    Just make a normal report with two parameters: t-code and program. The user puts their needs there and you use CALL TRANSACTION for t-code and SUBMIT for programs.
    For obsolete transactions, you will need to search further, for the 3-month requirement, you just need to create a Z-table with fields
    TCODE - REPORT - LAST_EXECUTION
    and update it each time a transaction or a program is called through your program. If you check that table  before the CALL or the SUBMIT for its last execution, and find it was executed before the 3-months line, you just popup the message and don't make the call.
    I think you can deliver the pop-up with a single MESSAGE sentence, maybe usint type 'E' in your selection-screen
    Good luck

  • One very basic doubt regarding J2EE

    Hi Java Gurus
    I want to clarify one very basic point regarding J2EE. As per to my understanding a J2EE is a 3 tier system, proposed by Sun for dvelopment and deployment of component based distributed applications. A J2EE based system requires application server as a middle tier, where business logic runs. So far so good.
    Suppose i have a system which uses only JSPs and/or Servlets (No more EJBs and Application server). This system is also 3 tier system,(Client tier, Web-Server Tier and DB tier). In this case there is Web Server and no Application Server. So my doubt here is===== Can I call this as a J2EE based solution. (Assuming both the systems are performing the same task).??
    Plz help.
    Thanx
    Jam

    A bit of elaboration and clarification. (AKA, the long answer)
    The "3-tier" phrase should avoid any technological implication, thus be defined as Presentation Tier, Business Tier, Data Tier. It's meant to convey the clear separation of responsibility. A JSP/Servlet/DAO system, could constitute a 3-tier system, if applied correctly.
    The J2EE platform encompases a number of technologies, JSP, Servlet, EJB, etc.
    A J2EE compliant application server (i.e. JBoss) supports all the features of J2EE
    A Servlet engine (i.e. Tomcat) only supports a sub-set of those technologies, thus it would not correctly be called a J2EE app server.
    Calling something a "J2EE Application" really doesn't mean much, since many projects don't use every piece of J2EE technology available. Though I will agree that use of EJB is a key indicator. If it makes some manager feel better to call a JSP/Servlet app a "J2EE Application", fine.
    Calling yourself (not you, just the general "you") a J2EE developer, should mean you have experience with developing the breadth of J2EE, so having hacked out some JSPs doesn't count :)

  • I have an iPhone 4, purchased in Kuwait but right now I am in India. This is a gift from a very special person in my life. Unfortunately, the back glass is smashed. If someone can please help me know how I can get it replaced & cost ? Thanks in advance

    I have an iPhone 4, purchased in Kuwait but right now I am in India. This is a gift from a very special person in my life. Unfortunately, the back glass is smashed. If someone can please help me know how I can get it replaced & cost ? Thanks in advance

    he knows his ID , if he did all whats in the link he can get his password back ?
    how can i make him call applecare ? is there a way to speak to them from jordan ??
    i have been trying to reach any1 in apple so they can communicate and help my friend (us) to make him remember it .
    am not asking for the password or trying to get into the phone without using it , and i can take my money back though i need to help my friend as well since now he cant use it as well.
    thanks kil

  • Hi friends it is very urgent requirements

    hi experts,
    i have one good requirement ie
    in CRMD_ORDER trancation when i give a quotation no there u will find one tab document when i click that i will get an icon for importing a file from my desktop.
    so i want to make every thing with my selection-screen.
    IN my selection screen i have one field for quotation no and paramater to select the document from my desktop, so when i exectute my program the document should be placed in crmd_order transcation.
    very very urgent requirement.

    Hi,
    check the below
    This comes in the attributes window while creating a program
    Authorization Group
        Authorization group to which the program is assigned.
        The assignment of a program to an authorization group plays a role whe
        the system checks whether the user is authorized to:
        o   Execute a program
              > Authorization object S_PROGRAM
        o   Edit a program (-Include) in the ABAP Workbench
              > Authorization object S_DEVELOP
        Programs that are not assigned to an authorization group are not
        protected against display and execution.
        Security-related programs should, therefore, always be assigned to an
        authorization group.
        Report RSCSAUTH can also be used to assign programs to authorization
        groups. This report is documented in detail.
    and for alv while designing the menu for it  u  can assign any ICON to your button while designing it there is option for that
    reward if helpful

  • ICloud Email Deliverability: special requirements

    Dear Team!
    We are developing a web-application.
    It sends calendar invitations from server to email boxes.
    Does iCloud Email service has special requirements to email deliverability?
    For example, DKIM and SPF signatures and MS records?
    Bogdan

    In the iPhoto preferences ==> accounts eletee teh accoun and r-enter all of te inforamtion
    or even bette IMHO is to set Mail as the email client in the iPhot prefereces and use i
    LN

  • Just want to say I love Apple and a very special thank you to Moustafa Barighzaai for going the extra mile and resolving a huge problem for me. Thanks sooo much, it was and is greatly appreciated.

    Just want to say I love Apple and a very special thank you to Moustafa Barighzaai for going the extra mile and resolving a huge problem for me. Thanks sooo much, it was and is greatly appreciated.

    Just want to say I love Apple and a very special thank you to Moustafa Barighzaai for going the extra mile and resolving a huge problem for me. Thanks sooo much, it was and is greatly appreciated.

  • Very special multichannel implementation

    Hello, I am trying to implement a very special audio treament that involves 2 stereo Inputs and 8 Outputs (4 st. or 8 mon.).
    Does anyone have seen a plug in or midi fx instrument that would look approximately like this ?
    Do you think that Logic would support such a AU plug-in?
    Thank you.

    Hi Randall,
    I don't use this software, but by guessing from the description it is one of those special occasions. What (from what I have read) happens is you insert the plugin on each track and can monitor any insert's properties from the UI of a single instance - and instances can 'broadcast' to each other. So it would be the plugin(s) providing the data and streams to/from eachother behind the scenes in their own format - which could even be AUs - haven't tried this approach. Plugins could be as complex as applications, all running under the host.
    But in the OP's situation, you (as a user) would have to set up an additional channel and plugin for each instance of typical operation. It depends on what the plugin does - all the extra instances can be horribly inefficient or awkward for some uses or work very well, depending on the application. For spectral ananlysis, it is fine - but if it is (for example) a synthesiser and you just want 2 modulation input streams from the host then the limitation can affect the user.
    Cheers,
    J

  • A very very special thank you to Yvan Koenig  !!!!

    A very very special thank you to Yvan Koenig !!!!
    I found myself in the middle of computer nowhere land with trying to work with a MS spreadsheet
    and them having a crash occurring every 5 minutes.
    To the rescue came Yvan and saved me countless hours of work if I had to do a re entry of all the info.
    The issue is not how much he knew and how little I knew about converting and the AW program BUT
    how he was SO generous with his time and actually did the conversion FOR ME !!!!
    Even after I failed initially to grasp the directions he still continued to not only help but
    redo and simplify the instructions for a (kindergarten understanding) computer person that I am.
    Again thank you thank you !!!!
    Greg Lamont

    Hello
    It's the third message of this kind.
    Don't thank too much, this kind of activity is my brain "jogging"
    Yvan KOENIG (from FRANCE dimanche 1 avril 2007 12:36:06)

  • Help required regarding webCenter Portal Development

    Hi Sir ,
    I'm a Student doing Software Engineering and Developing Software Project Portal (automation of Institutional(university Final Year Software Projects Process)
    Previously My university was not allowed me to develop Final Year Degree project on PLATFORM.. so I've tryed to develop it using Java Portlet AAI and other methodologies .. but unfortunately I've fielded to develop that Portal
    now my university has allowed me to develop on WebCenter Portal Development Framework... I've little know ADF ... now I only have 12 day to develop and deliver .I'm following
    Yannick Ongena website www.yonaweb.be/using_multiple_navigation_models_template_webcenter_11g_ps3_0
    and following multiple blogs
    BUT THE PROBLEM IS THAT
    these blogs and website are not very much responsive .. I've very less time .. I need urgent reply for my problems that I'm facing throwout development
    I've Installed
    Jdeveloper 1.1.1.1.6.0
    Xe 11g db 11.2.0.2.0
    WebCenter Portal Development Framework
    As I mention I've NOT MORE THAN 12 days, Please respond to My REQUEST .. Also Refer me To a PERSON WHO CAN HELP ME FOR ABOUT 10 days
    and
    share me BLOGS / WEBSITE / REFERENCE MARTIAL .. that will help me
    one of problem is that I think DEV schema is Created when we install RCU , I've Created UCM and PORTAL schema through RCU .. But mistalenly I've Removed the DEV schema as well
    and facing the below problem
    I’ve Created DEV , UCM and PORTAL schema from RCU. and Then try to install UCM ,when schema password screen appear for LOGIN and Create weblogic domain , It tell me INCORRECT PASSWORD, SO , I’ve DROP these 3 schema using RCU , during DROP schema, different errors appeared , and I’ve DELETED the middle ware\rcu_Home folder and Unzip the rcu.rar fresh file to the same directory
    NOW
    when I RUN rcu.bat and selected CREATE SCHEMA then RCU WOULD NOT ALLOW ME TO CREATE SCHEMA FOR PORTAL , DEV , UCM ..and also they appear in combo box to select
    BUT I’ve ALREADY DROP THAT
    I think it only droped not DELETED
    tell me the sqlplus commands fro DELETE schema. and also tell if it is DANGEROUS to delete some schema(example DEV schema) as I’m developing portal via WEB CENTER -Jdeveloper(integrated weblogic) , Xe , RCU, UCM )
    WAITING FOR REPLY
    BEST REGARDS
    ]|_|(¯`·._)a¿])

    @ngsankar @Nasir thanks for Reply
    NO Sir I have to deliver some functionality (basic functionality) on 5 Nov. and then they'll give us 1 more month if our work is satisfactory
    AND I'm not a very Beginner to ADF and WebCenter ..I've Installed the environment and Following Yanic website and parallel implementing my requirement .. It is rapid app dev. I think I cant develop satisfactory app in hours if any I can tell me that HOW TO IMPLEMENT THAT SPECIFIC Requirement AND FEATURE .. its easy I think ..and I will InshaALLAH .. its do or die for me
    Sir in 1 day I can finalize and develop UI ..(JSF pages and this bindings and template )
    for its Content I was Started UCM and then I stuck ,
    I Basically need to provide JSF Pages and portlets for Users (Student groups - Project Supervisors - Project Coordinator )
    I have to create Users and their Pages(Project Coordinator - Project Supervisor and STUDENT Group's)
    1)Project Coordinator is the Head Who Allocated Project Supervisors to the Student Group in response to Messages(sent from the portlet at home page)from the students that desire to make group and want desire supervisor . in response to this message the Supervisor can Reply and ASK FOR MEETING and the the coordinator has the authority to ALLOCATE
    2)Project Coordinator Create PLAN (1 year Plan) in tabular form (for example Project Group Supervisor and Its STUDENT GROUP has to Deliver 20 MILESTONE Deliverable throughout the year(Project group Supervisor can Divide Each MILESTONE into TASK and SUB TASKS...and Student Group has to Upload )
    Supervisor can give the task to student group and student group has to upload /Submit the required Deliverable /(task file ) supervisor within the given period MARK THIS TASK AS AN OK AND GIVE ANOTHER TASK OR ASK FOR METING
    in this way We achieve/provide
    Provide Central Repository for the Whole Software Projects that are Valuable ..
    ALSO DOCUMENT TRACEABILITY is achieved
    Workflow management (Task given and submission and meetings and attendance etc)
    This Functionality plus Basic ADF and WebCenter built in Functionality can also improve Collaboration and Productivity and Performance
    I've very less time AND willing to work.... waiting for Help and suggestions

  • Very Urgent Requirement

    Hello
    HCL Technologies is one of India's leading global IT
    services and product engineering companies, providing
    value-added, software-led IT solutions and services to
    large- and medium-scale organizations.
    We need people very urgently with the following skill set.
    Compensation is absolutely not an issue for the right candidate.
    Position is based in chennai, India.
    Should be able to Join by Apr 28, 2003(next week).
    Required for a period of 4 months on a contract basis or permanent as desired by the candidate.
    Candidates should be excellent designers and should be proficient in
    UML.
    Position 2 - Core Java, Swing. Experience in Dnd is Preferred.
    Role: Guide a team of 6-7 people on Complex java applications and
    should be able to design,code, unit test and integrate.
    Please Send your resumes to [email protected] along with
    your contact numbers.
    Pls do not reply to the group, reply to me separately.
    Thanks & Regards,
    Nagendra

    Hi,
    I guess you should be a little bit more specific in your questions. Hopefully you did already some research yourself. Last may 2012 I have been visiting the RittmanMead BI Forum. There I had the privilige to attend the following presentation; http://www.rittmanmead.com/files/biforum2012/heljula_security_123.pdf
    This should give you a little bit of background.
    Feel free to come back with some specific questions after you have tried yourself. One advise upfront. Don't apply security to specific users. Better use the 11g Application Roles
    Good Luck,
    Daan Bakboord
    http://obibb.wordpress.com

  • HR requirement regarding Infotypes

    Hello Gentleman,
    As iam new to HR module, I have requirement in HR which is very urgent.
    I got a requirement for customizing the standard infotype 0185 for which i had done the customization for the name of the holder by going into PM01 -> infotype 0185 -> then in Enhance IT -> CI include -> and created the new field for Name of Holder as 'ZNME_HOLDER' as component and component type is PAD_VORNA for First Name in the structure in CI_P0185 and also designed in the screen painter as well.
    Now the requirement is the field which i had created as a Name of Holder in infotye 0185, There in that field when the user press F4 on name of folder field after giving the PERNR in infotype 0185, The field Name of Folder has to get all the family members which is in infotype 0021 of that particular personal number (PERNR) which we enter in the infotype 0185.
    Here i have done this in module pool ZP018500 screen 0200 in PAI and before chain
    TYPE-POOLS vrm.
    DATA: name  TYPE vrm_id,
          list  TYPE vrm_values.
    DATA: BEGIN OF OUT_TAB OCCURS 0,
         favor    LIKE   pa0021-favor,
         fanam    LIKE   pa0021-fanam,
          END OF out_tab.
    DATA: BEGIN OF OUT_TAB1 OCCURS 0,
         favor    LIKE   pa0021-favor,
         fanam    LIKE   pa0021-fanam,
          END OF out_tab1.
    DATA: BEGIN OF OUT_TAB_final OCCURS 0,
          new(80)  TYPE c,
    END OF out_tab_final.
    DATA wa_P0185 LIKE pa0185 OCCURS 0 WITH HEADER LINE.
    break-point.
    SELECT FAVOR FANAM FROM PA0021 INTO TABLE OUT_TAB WHERE PERNR =
    PSPAR-PERNR.
    SORT OUT_TAB  BY FAVOR FANAM ASCENDING.
    LOOP AT out_tab.
    MOVE-CORRESPONDING out_tab TO out_tab1.
    CONCATENATE out_tab1-favor out_tab1-fanam INTO out_tab_final-new.
    append out_tab_final.
    endloop.
       CALL FUNCTION 'F4IF_INT_TABLE_VALUE_REQUEST'
      EXPORTING
        DDIC_STRUCTURE         = 'out_tab_final'
        RETFIELD               = 'out_tab_final-new'
      PVALKEY                = ' '
        DYNPPROG               = 'ZP018500 '
        DYNPNR                 = '0200 '
       DYNPROFIELD            = 'P0185-ZNME_HOLDER '
      STEPL                  = 0
        WINDOW_TITLE           = 'select family member'
      VALUE                  = ' '
      VALUE_ORG              = 'C'
      MULTIPLE_CHOICE        = ' '
      DISPLAY                = ' '
      CALLBACK_PROGRAM       = ' '
      CALLBACK_FORM          = ' '
      MARK_TAB               =
    *IMPORTING
       USER_RESET             =
    TABLES
        VALUE_TAB              = out_tab_final-new
      FIELD_TAB              =
      RETURN_TAB             = 'wa_P0185-ZNME_HOLDER'
      DYNPFLD_MAPPING        =
    EXCEPTIONS
      PARAMETER_ERROR        = 1
      NO_VALUES_FOUND        = 2
      OTHERS                 = 3
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    But this FM is not working here.
    As this requirement is very urgent, Pl. do the needfull.

    Hi,
    In order to display the search help using the FM "F4IF_INT_TABLE_VALUE_REQUEST" in a module poll you have to put the function's call into the statement “PROCESS ON VALUE-REQUEST”, it will not work if you put it into the PAI. Here is an example:
    PROCESS BEFORE OUTPUT.
    PROCESS AFTER INPUT.
    PROCESS ON VALUE-REQUEST.
      FIELD <screen field name> MODULE <the module where you will call the FM>
    I hope it can help you.
    Best regards,
    Leandro

  • Special requirements for bussines

    Hello,
    I would like to use skype manager for my bussines but I'm not sure if it meets the requirements. I'll appreciate if someone can help me with my questions.
    The scenario is as follows:
    There are 100 employees, but only 10 of them will be connected at the same time, so only 10 users needed.
    Each user will be assigned with skype balance.
    There is an application which connects to the skype and makes calls through it.
    The employee won't be able to make calls through the skype, but only through the application which connects to skype.
    My question is whether this scenario is possible. Especially topic 4.
    Furthermore, the employees will be calling all around the world. Are there any special rates for bussineses for this kind of subscription?
    Best Regards,
    Edi Buslovich.

    Hello Edi Buslovich.
       Everything that you need to know about Skype Manager can be found in the
    Skype Manager User Guide. I hope this helps. If you have any further questions, I will be more then happy to answer them for you. Just post them here and I'll find the answers to them.
    Beowolfv
    ╔═══╗ ♪
    ║███║ ♫
    ║ (●) ♫
    ╚═══╝♪♪ "Old School iPod"
    Regards,
    Beowolfv
    -If I Answered Your QuestionThenPlease Give "KUDOS" And Mark It As A "SOLUTION" So Others Can Find Help.

  • A Special Requirement

    Dears,I am in need of a solution which is very peculiar. I need to receive all the http request in my own servlet. The requirement is something like this1. If the URL is http://www.domainname.com/<user_id> i need to take him to a diffrent place with some prior validations.2. If its a normal URL like http://www.domainname.com/dir1/file1.jsp then it should serve the corresponding jspSpecifically, i donot want my IIS to do this bifurcation. IIS redirects all the hits using wlForward to weblogic cluster.I have a cluster setup with ISAPI plugin and 2 weblogic servers.I have set HttpClusterServlet as my default servlet and registred all possible file extensions to FileServlet.Can anyone suggest any possible solution.Any help would be highly appriciated,Regards,Param
              

    I understand that ejbRemove() may not be called if the EJBContainer crashes or if a SystemException is thrown from the bean. In these circumstances, there is no mechanism available to perform cleanup from within the context of the bean. You will need to somehow do this cleanup outside of the MDB which is being stopped.
    Aside from the above scenarios you should be able to rely on ejbRemove() for cleanup operations. Can you explain why ejbRemove() does not meet your requirements.
    -John

Maybe you are looking for

  • Deleting Data Package with Abap - error in Abap statement

    Hi, I am trying to delete data with abap but my logic is not working and it failed with error message Error in an abap/4 statement  when processing requirement - Delete data package when plant = INDIA - Delete data package when Area = 01 OR Group = 

  • Finder wont open after Firefox 4.01 update

    Hello, Just updated firefox and now my finder will not display on my desktop when I click on the finder logo or when I use "command n". The only way I can get a finder window open is to right click any app in the dock and choose "show in finder" . I

  • Configuration Error - Error 6  - Flash Builder 4 Plug In

    Upon starting eclipse (after installing the fb4 plug in) I get a 'Configuration Error' error 6. Anyone have any ideas as to what this is and how to get over it. At the moment I cant even trial the software which I am evaluating for our company. I am

  • How to stop KEN BURNS

    When looking at photo in front row how can you stop the KEN BURNS, I have created slideshows in iPhoto with no ken burns and my music, but when I select that slideshow with front row it just seems to ken burns and default music. What is I'm doing wro

  • Report Application failing

    I'm running Forms and Reports 11g R2 under Weblogic 10.0.3.6. On the front page of the Middleware Control, all Forms and Reports components are shown as healthy (green). However, if I drill down to the reports application, it is shown as red. I can s