EJB application configuration

Hi all,
would like to get your opinion about following problem:
Let's assume we have some EJB based application. This application has some external configuration file. In your opinion what's the best way to access to that file? What technologies should be used in that case?
Thank you!

If your using 7.0, I would suggest putting this "startup functionality" into
a webapp.
1. create an EAR
2. put ejb in ear
3. create webapp put in ear make this load first by ordering it in the EAR's
applicaiton.xml prior to the EJB
4. the webapp has one servlet that loads on startup and in its init method
does the "setup/configuration needs".
See 8.1 Medrec Tutorial's startupEAR
http://e-docs.bea.com/wls/docs81/medrec_tutorials/projectdir.html
Attaching src and .ear file for perusal.
Cheers
mbg
"MS" <[email protected]> wrote in message news:3e7101a2$[email protected]..
>
Hello,
Our EJB application requires some setup/configuration to be done at WLSstartup.
Right now, we have used the WLS Startup class for achieving thisfunctionality.
Is there a better way using MBean or using a custom application that canalso
be deployed/undeployed so that changes can be immediately reflected ratherthan
only after server restart.
Pl send in your comments/suggestions.
rgds
MS
[startupEar.ear]
[startupEar_src.zip]

Similar Messages

  • Create ejb application and configure  it into webservices

    hi experts
    how to create a small ejb application in netweaver developer studio and how to configure that application into web services.
    please help me
    thanks
    ram.

    Hi..
    First of all create java dictionary project..
    then create Ejb project...wchich will contain session bean n entity beans
    session bean will contain ur business logic..
    than create java project for wrapper class..
    nw create enterpirse application project i.e. Ear project..
    create .ear file for EAr project..deply it..
    nw switch to Eaj p[roject nn right click on session bean..it will ask for new Web service ..create
    n nw deply .Ear file n test Web service for WsNavigaor...
    for thorough info go to thread:[EJB model] it will provide so many links reagrding Ejb project n web services...
    hope it will sovle ur problm..
    Regards,
    Khushboo

  • Where should i store application configurations?

    Hello all,
    i have a little problem. I read a lot of posts in this forum with the same problem, but no anser was satisfiable for me. Where should i store application configurations? For example, where can i store error descriptions (text) for errors with a special id. There is no way to do it in the webconatiner, because the ejb's should log their errors. File I/O operations are forbidden by the specification, so the use of ResourceBundles with propertie files should be forbidden, too, isn't it? Is there another way than storing the error description in a database?
    I hope you can unstand my question and someone have a solution for my problem.
    thanks & regards
    Ren� G.

    You can use an entity bean with your configuration.

  • How to run ejb application OC4J J2EE Container

    Hi all,
    I unable run ejb applications in OC4J J2EE Container.
    I have configure following files.
    in config directory
    Server.xml
    I have .ear file if configured in server.xml. this .ear copied into home/application directory
    I have create following deployment discriptor file.
    in META-INF for ejb.
    ejb-jar.xml
    application.xml
    I have specify all ejb classes details in ejb-jar.xml
    Please help me .How to run ejbs with jsp and application client.Which files shall i configure.
    Thnaks,

    Hi all,
    I unable run ejb applications in OC4J J2EE Container.
    I have configure following files.
    in config directory
    Server.xml
    I have .ear file if configured in server.xml. this .ear copied into home/application directory
    I have create following deployment discriptor file.
    in META-INF for ejb.
    ejb-jar.xml
    application.xml
    I have specify all ejb classes details in ejb-jar.xml
    Please help me .How to run ejbs with jsp and application client.Which files shall i configure.
    Thnaks,

  • Debug EJB Application

    how am i going to debug my EJB Application
    do i need to write a java program with
    public static void main () {}
    If it is , it will be very hard to test each and every part....
    what is the best way to debug....to trace the flow ?
    see the log files ??

    Christian,
    There are should be no difference between WD & EJB debugging.
    Set breakpoints in EJB sources, make sure your EJB project is open, invoke Debug with your configuration (Remote debug) and when EJB is invoked then debugger should stop at defined points.
    I don't know what goes wrong here, probably execution never reaches points you defined. Then try to set method breakpoints at business methods and EJB lifecycle methods (like ejbCreate) and then execute your code step by step in debugger.
    Valery Silaev
    SaM Solutions
    http://www.sam-solutions.net

  • Partner application configuration is missing error on SSO login page

    We have APEX 3.1.2 setup as a partner application and an application within APEX setup to use SSO for authentication. Following a link to the APEX application redirects to the Single Sign-On page, as it should, but it also shows "Error: The partner application configuration is missing or expired." I type in my password and username, click the Login button, and (if I entered my username and password correctly, of course!) then the APEX application is shown. So, I cannot figure out why we're getting the no_papp_err error and I have not found any solutions to that issue on Metalink or anywhere else on the Internet. Any ideas? I'm concerned that we have a misconfiguration somewhere that is causing this error and will affect any other partner application we setup in the future.
    We're on Oracle Portal 10.1.4, SSO 10.1.2, and SSL is setup on both infra and mid tiers.

    Did you try checking the partner application entries on the SSO-login server page?
    please login as orcladmin or some other user with membership in, i beleive, iasadmins group. verify that for this partner application, what you see here corresponds to the application URL. it looks like your login page call may have issues. so check for login url too.
    also check the ORASSO.WWSSO_LS_CONFIGURATION_INFO$ for entries corresponding to Apex application.

  • Custom Application Configuration not pulling the data in E-Recruiting

    Hello,
    My requirement is to make some fields 'required', hide some buttons, change button texts & hide some columns in standard wd component (ERC_A_REQ_MGMT) delivered by SAP. So I created an application configuration and component configuration and did the layout customization. Now in the application I am passing this new configuration name with the parameter (sap-wd-configId)(......sap/bc/webdynpro/sap/erc_a_req_mgmt?sap-wd-configId=ZZERC_A_REQ_MGMT)
    As this is a portal environment, in LPD_CUST, In the application parameters, I've used this parameter (sap-wd-configId=ZZERC_A_REQ_MGMT). The custom application is displayed, however, the data is not being passed to this custom configuration, so when I open a exisiting requisition from dashboard, this is shown as empty screen (like a new requisition), but when I take off this parameter from the lpd_cust, the standard app is working fine. Can you please help me understand why the data is not being passed to the custom application configuration?
    Really appreciate your insights.
    Thank you.

    Hi,
    We faced the same issue in SAP E-recruiting EHP4 solution. The reason is, the configuration which is assigned statically in FPM editor is loaded after the OVERRIDE_EVENT_OIF and thus discards all context nodes which have been already initialized. Afterwards, the context node of has no value anymore and the field on UI doesnu2019t display anything.
    Remove the static component configuration in the FPM editor and use the following code in the wddoinit method of the view V_GEN_JOB_INFO. This assignment happens at the runtime.
      data: lo_api_controller          type ref to if_wd_component,
            lo_pers_manager            type ref to if_wd_personalization,
            ls_configuration           type wdy_config_key,
            lt_config_table            type wdy_config_table,
            ls_config_header           type wdy_config_header,
            lo_fpm                     type fpm_s_runtime_info,
            ls_fpm                     type fpm_s_runtime_info.
          lo_api_controller = wd_comp_controller->wd_get_api( ).
         lo_pers_manager = lo_api_controller->get_personalization_manager( ).
         lo_fpm = wd_comp_controller->go_fpm->get_runtime_info( ).
        ls_configuration-config_id    = u2018ZERU_REG_REQ_MGMT_UIu2019 u201C Your Component configuration name
        lo_pers_manager->load_config_by_key( ls_configuration ).
       Thanks,
       S Rajkumar.
    Edited by: Rajkumar S on Aug 24, 2010 7:54 AM

  • SSO Application Configuration .msc - Unable to load mmc and unable to uninstall/repair

    This tool was installed on a QA server by an ex-employee and nobody knows for sure if it ever worked.  Attempting to uninstall/repair fails with below errors in the event log.
    The description for Event ID 11001 from source MsiInstaller cannot be found. Either the component that raises this event is not installed on your local computer
    or the installation is corrupted. You can install or repair the component on the local computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event:
    Product: SSO Application Configuration -- Error 1001. Error 1001. Company Name is a required field.
    (NULL)
    (NULL)
    (NULL)
    (NULL)
    The description for Event ID 11001 from source MsiInstaller cannot be found. Either the component that raises this event is not installed on your local computer
    or the installation is corrupted. You can install or repair the component on the local computer.
    If the event originated on another computer, the display information had to be saved with the event.
    The following information was included with the event:
    Product: SSO Application Configuration -- Error 1001. Error 1001. An exception occurred while uninstalling. This exception will be ignored and the uninstall will
    continue. However, the application might not be fully uninstalled after the uninstall is complete. -->
    Cannot delete a subkey tree because the subkey does not exist.
    (NULL)
    (NULL)
    (NULL)
    (NULL)
    The tool is currently unusable.  And worse, we cannot uninstall and re-install this tool.  Please advise.

    Hi,
    Sadly i had the same issue trying to uninstall the SSO App Con...
    I also could not repair the install due to another 1001 error.
    Instead of uninstalling the program i found the registry file i needed to repair the install and imported it to my registry.
    1 Open notepad and paste the following
    Windows Registry Editor Version 5.00
    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MMC\SnapIns\FX:{ce255ef6-9e3d-42c8-b725-95ccc761b9d9}]
    "UseCustomHelp"=dword:00000000
    "Type"="Microsoft.ManagementConsole.Samples.ActionsSnapIn, SSOMMCSnapIn, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null"
    "ApplicationBase"="C:\\Program Files (x86)\\Microsoft Services\\SSO Application Configuration"
    "ConfigurationFile"="SSOMMCSnapIn.dll.config"
    "NameString"="SSO Application Configuration"
    "Description"="Allows a BizTalk Administrator to Configure the SSO Configuration Store"
    "Provider"="Microsoft"
    "ModuleName"="SSOMMCSnapIn.dll"
    "AssemblyName"="SSOMMCSnapIn"
    "RuntimeVersion"="v2.0.50727"
    "FxVersion"="3.0.0.0"
    "About"="{00000000-0000-0000-0000-000000000000}"
    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MMC\SnapIns\FX:{ce255ef6-9e3d-42c8-b725-95ccc761b9d9}\NodeTypes]
    [HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\Microsoft\MMC\SnapIns\FX:{ce255ef6-9e3d-42c8-b725-95ccc761b9d9}\Standalone]
    2 Save file as .reg
    3 Open regedit.exe and import the saved <filename.reg> 
    This should allow you to use the SSO App Conf.. again.
    I hope this helped.

  • Wwc- 41653 The partner application configuration is missing or expired.

    We have the following scenerio.
    Application server 9iR1, apache server, login server, portal3.0.9.8.4 on 9iR2 database on host A. There is another database in 9iR2 where portal3.0.9.8.4 installed on host B. I want to use this database for another website configuring apache on host A as virtual host. I want to use same login server on host A.
    The website on host A is working fine while the website on host B does not allow me to log into the login server.
    I have run ssodatan script for associating portal schema on host B. I have created partner application on host A portal for accessing portal on host B and run ssodatax script for associating partner application.
    when I try to log into the another web site created for host B, I get portal welcome page. when I click on login, I get sso page but i am unable to log into it, getting error The partner application configuration is missing or expired. Please contact the administrator. (WWC-41653)
    How to resolve this?

    Were you able to resolve the issue???
    Can you pls try Rerunning ssodatan/x with the correct data. The ssodatan script is located in the directory ORACLE_HOME/portal30/admin/plsql/ssodatan.
    Refer following link for more info on SSODATAN , SSODATAX and DIAGNOSTICS scripts in Portal 3.0.x:
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=136138.1

  • The partner application configuration is missing

    Trying to login to portal with portal30 leads to
    'The partner application configuration is missing or expired. Please contact the administrator. (WWC-41653)'
    Please advise
    db 8.1.7
    portal 3.0.9
    apserver 1.0.2.1
    Thank you
    Anatoliy Smirnov

    Were you able to resolve the issue???
    Can you pls try Rerunning ssodatan/x with the correct data. The ssodatan script is located in the directory ORACLE_HOME/portal30/admin/plsql/ssodatan.
    Refer following link for more info on SSODATAN , SSODATAX and DIAGNOSTICS scripts in Portal 3.0.x:
    http://metalink.oracle.com/metalink/plsql/ml2_documents.showDocument?p_database_id=NOT&p_id=136138.1

  • Error: Partner application configuration is missing ... on SSO login page

    We have APEX 3.1.2 setup as a partner application and an application within APEX setup to use SSO for authentication. Going to the APEX application redirects to the Single Sign-On page, as it should, but it also shows "Error: The partner application configuration is missing or expired." I type in my password and username, click the Login button, and (if I entered my username and password correctly), it redirects me to the APEX application just like it should. So, I cannot figure out why we're getting the no_papp_err error and I have not found any solutions to that issue on metalink or anywhere else on the Internet. Any ideas?
    We're on Oracle Portal 10.1.4, SSO 10.1.2, and SSL is setup for both.
    +Closing this topic and opening it in [Oracle Application Server - General|http://forums.oracle.com/forums/thread.jspa?threadID=832022&tstart=0|New Topic]+
    Edited by: oportalist on Nov 28, 2008 10:24 AM

    Did you try checking the partner application entries on the SSO-login server page?
    please login as orcladmin or some other user with membership in, i beleive, iasadmins group. verify that for this partner application, what you see here corresponds to the application URL. it looks like your login page call may have issues. so check for login url too.
    also check the ORASSO.WWSSO_LS_CONFIGURATION_INFO$ for entries corresponding to Apex application.

  • Host: Unable to load application configuration + wrong install version on download

    i am using 64 bit windows 7 ... when unable to playing video, it redirects me to the adobe download pages to get flash player ... the page says i am about to download flashplayer for win7 64 bit, of 9MB approximately, but the file i get has name "install_flashplayer11x32_mssd_aih.exe" (NOTE THE NUMBER 32) and this file just wont install it ends with error message: HOST: Unable to load application configuration ...
    By google i found also file install_flashplayer11x64_mssd_aih.exe (NOTE THE NUMBER 64) ... this file runs the install, i get the final screen saying "installation completed" but after clicking the "finish" button i get an error message saying "an error occured while sending a command to the program" ...
    I am just getting mad ... its 3 days i am trying to figure aout this problem ...
    i also tryed files as "install_flash_player_11_plugin.exe" , "install_flash_player_11_plugin.msi" , "install_flash_player_11_active_x.exe" and "install_flash_player_11_active_x.msi" ... those files actually proceeds with the install, but at the end, the videos are still not displaying ...
    When i am checking the plugins statuses in my firefox addons manager, it says Shockwave Flash is all right ...
    The precedent version of flash player was working just fine, i do not understand why you must make such a mess every 2 months ...
    How do i get work this?

    yes, the pages is http://get.adobe.com/flashplayer/
    the page says:
    Adobe Flash Player 11.3.300.257 (9.36 MB)
    Your system: Windows 64-bit , English, Firefox
    but when i click the "Download now" button i get the file named "install_flashplayer11x32_mssd_aih.exe" (NOTE THE NUMBER 32) which wont start and after few seconds i get the message "HOST: Unable to load application configuration"
    but finaly i solved the problem ... i just installed the file found by google on some private page "install_flashplayer11x64_mssd_aih.exe" (NOTE THE NUMBER 64)
    (the page is here: http://www.ziddu.com/download/16693235/install_flashplayer11x64_mssd_aih.exe.html)
    and after that i disabled the protected mode of flashplayer by adding a line in the cfg file
    the howto is here: http://forums.adobe.com/thread/1018071
    i must say its quite shameful one must get this torture to have movies playing on websites ... this cant happen at open source stuf, at least not for 3 days ...
    and being already here and complaining, i must say also (i hope some adobe emploee will read this) i am quite disgusted (and i believe not only me) by adobes bad habit to provide other software than flashplayer, when they include mcafee antivir into the install ...
    it is literally taking the user as a stupid one ...
    if i will need an antivir, i will look for it ...
    i just hate when some society tries to infiltrete in my comp some crap software counting on possibility that at the download i will not pay enough attention
    its just ridiculous and shameful behavior

  • I just installed LV2011 and one dll from my vi won't load with the error "application configuration is incorrect"

    I just installed LV2011 and one dll from my vi won't load with the error "application configuration is incorrect", which is Windows lingo for "missing package dependencies".  All the computers at my company with 2010 loaded seem to do OK.  When I do a Dependencies Walk I get missing Visual C debug dll's missing plus IEshims and wer which both have a whole tree of dependencies missing on my machine.  The Windows install is the same "Windows XP version 2002 Service Pack 3" on my PC and the working PC's. So I'm thinking I have to uninstall 2011 and go back to 2010.  Is this correct?  Those VC debug dll's were installed on the machines with 2010 in them but were not installed in mine.
    I've heard the advice to recompile the dll with debug turned off but I don't have access to the source code.
    Thanks in advance.

    u87 wrote:
    Thanks for the reply.  This at least tells me that going back to LV2010 is not likely to solve the problem.  The missing dll's are:
    MFC90D.dll
    MSVCR90D.dll
    IESHMS.dll
    WER.dll
    And, once again, IESHMS and WER have other dependencies.  So perhaps i need to install the Visual C++ development environment.
    IESHIMS.dll is an Internet Explorer DLL that gets usually delay loaded by shdocvw.dll. As delay load it can not cause DLL load errors but only runtime errors. Maybe your DLL has it as direct dependency but that is unlikely since it does not have a documented interface.
    WER.dll is Windows error reporting for Vista/Win7.
    MFC90D.dll is the Microsoft Foundation classes and MSVCR90D.dll is the MS C runtime library, both as debug variant.
    So all the DLLs you mention are actually MS DLLs! You haven't identified the DLL that you try to access in LabVIEW that causes these error messages. IESHIMS and WER are usually delay loaded by any component that needs it and should not likely be used by non MS code.
    What is the DLL you try to load into LabVIEW and by whom? Get the provider of that DLL to provide you a non Debug build of the DLL. Installing Visual C on all the machines just to make the DLL load is not a solution, besides that it is likely not legal since I doubt you have that many licenses.
    Rolf Kalbermatter
    CIT Engineering Netherlands
    a division of Test & Measurement Solutions

  • One of my dll's in my vi doesn't run with the error "application configuration is incorrect"

    I just installed LV2011 and one dll from my vi won't load with the error "application configuration is incorrect", which is Windows lingo for "missing package dependencies".  All the computers at my company with 2010 loaded seem to do OK.  When I do a Dependencies Walk I get missing Visual C debug dll's missing plus IEshims and wer which both have a whole tree of dependencies missing on my machine.  The Windows install is the same "Windows XP version 2002 Service Pack 3"  So I'm thinking I have to uninstall 2011 and go back to 2010.  Is this correct?  Those VC debug dll's were installed on the machines with 2010 in them but were not installed in mine.
    Thanks in advance.

    Hm,
    it seems that you might have more success in the LabVIEW forum here; this one is for LabWindows/CVI...

  • TS3212 Application has failed to start because application configuration is incorrect

    Hello
    Am hoping for some help please if possible, I have just downloaded the latest version of I-Tunes, when I double click on the .exe to install I get the following message;
    This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.
    I've tried searching forums and have seen similar posts - one suggesting it may be a problem with a dll file but gave no further details and another post that suggested it could be the .net framework which I downloaded a fix for from Microsoft but this has not worked unfortunately.
    I am running Windows XP Professional Service Pack 3
    Any help would be gratefully appreciated
    Thank you
    Richard

    Click here and follow the instructions. You may need to completely remove and reinstall iTunes and all related components, or run the process multiple times; this won't normally affect its library, but that should be backed up anyway.
    (99596)

Maybe you are looking for

  • Why is it that everytime I update my iTunes(or do something big), my iPod gets a new glitch?

    I noticed after my two updates, that my iPod gets weird after every single one. For example, it was perfectly fine when I bought it and then, I updated iTunes. Then, my iPod starts acting like a TV screen and has lines show up every so often to make

  • Using Airport Express as separate wifi network vs extender with Time Capsule?

    Hello all.  I recently converted my home computer network from Windows/PC based to an iMac with Time Capsule.  On my previous setup, I had a Cisco/Linksys router with wifi, and I also had two Airport Expresses in separate areas of the house where the

  • Previous Store purchases not showing in library

    So This might have been answered previously, or might be a stupid question. But I can't find the answers I seek. I've got quite a few TV Shows, Movies, Music Albums etc. That I've bought off Itunes. I can see them if I go to my iTunes store>Purchased

  • PXI-5406: unable to generate 10 mV p-p sine wave with 1.5 V dc offset

    I'm using the PXI-5406 and FGEN Soft Front Panel to output a low amplitude sine wave. It works fine when I have the amplitude set to 10 mV and the DC offset set to 1V but when I increase the dc offset (I want it to be set to 1.5V) the FGEN front pane

  • Asked to verify my password

    Hi, I received an email from BB (RIM) yesterday stating that email messages are no longer being delivered to my device and asking me to verify my password (on my device or on the BB website).  I have no idea what the password is and have tried my two