Portles and Servlets in one application

I have a configuration file (xml) that I need to read and populate singleton.
The first problem is How to perform initialization before any portlet will be started (similar like ServletContextListener). ?
Do I need 2 archive files (*.war and *.par) inside *.ear ?
Is it posible to have only one singleton for portlet  and web application ? What scenario will be more  appropriate?

Hi Sergey,
of course you can perform initialization tasks during startup of your portalapplication. Just write a portal service, set a property startup=true and put your code into the init method.
You can have one singleton per classloader!
Regards, Karsten

Similar Messages

  • Directory structure for servlets and webservices in one application

    hi,
    Can any one help me for creating servlets and webservices in one
    application and deploying in Jboss 4.2.0.
    I want to know exactly what is the directory structure for creating this
    application and what are the additional .xml files for deploying this application.
    if any one know this answere please tell the answere.

    I figured out a solution - it's a problem of policies. In detail: Server1's codebase entry (file:) refers to the class directory of Server1's project. In the simple case of only Client1, which has no codebase entry, it works fine without a file permission on the side of Server1. In the complex case of Client1+Server2, which has to have a codebase entry (file:) refering to the class directory of the Server2's project on a separate machine, for exactly the same method call from Client1 to Server1 a file permission entry on the side of Server1 is needed for Server1's class directory. But WHY ???
    It seems to be a little confusing with the codebase entries, many of the posts are contrary to others and to my personal experiences. Some comments given by Adrian Colley throw a little light upon some aspects. Is there anybody, who can explain the whole topic, when, why, and which part of RMI application deals with codebase entries, also in case of not dynamic code downloading ? May be there is also a reference into the java docs, which I didn't found up to now.
    Thanks in advance
    Axel

  • Multiple call managers and clusters sharing one application server

    Hi
    I need to program my application such that it can be shared by multiple call managers and clusters. That is, I can only have one application server, and as a result I need to tell my application from which call manager / cluster this "request" is coming from.
    My question is how do we do that? do we have access to some parameters / variables, similar to "#DEVICENAME#", which can be used to pass the call manager identity to the application?
    TIA

    Use multiple instances of your application with different URIs (assuming the instances will not have to talk to each other), then, when configuring the service on each cluster, simply reference the specific URI of the application instance for that cluster. eg: Using Tomcat to host the PhoneMessenger application for Cluster1 and Cluster2, Deploy the same application twice: PhoneMessengerForCluster1 and PhoneMessengerForCluster2. The service URL on Cluster1 might be: http://app_server/PhoneMessengerForCluster1/servlet/PhoneMessenger , and for Cluster2 it could be http://app_server/PhoneMessengerForCluster2/servlet/PhoneMessenger

  • Use jar file for one servlet in one application (not global in classpath)

    I have a servlet application that needs a jar file to load with one particular servlet. If I put the classpath to the jar file in the jvm12.conf, the servlet loads fine. I can't run it like that, however, since I use another jar file by the same name in a different application. I would like to specify it only with the servlet that needs it. According to the online help file, it says more than one jar, zip, or class file can be specified in the servlet classpath, but that doesn't seem to be the case. We're running iPlanet 4.1. I've tried adding the classpath to the jar file after the classpath for the servlet itself (servlet.properties), but it gives the class not found error for that function. Is there a way to do this? Context.properties, maybe? I can't find any instructions on setting that up.

    You might have better luck asking this question on a web server forum. This is an application server forum and most people here are going to more experienced with iAS.
    David

  • RMI server and client in one application - Exceptions during some calls

    I wrote an application, which is an RMI-Server (Server1), and another separate application, which is an RMI-Client (Client1). Because I wont use dynamic class loading, I gave the client beside the interface.java also an interface_implementation.java, which is only a dummy of the original interface_implementation of the server. This dummy contains only declarations of the methods (parameters and return values) and no functional code. From this dummy the _stub.class is generated, and it works fine - no problem.
    Now I want to modify Client1 to become also an RMI-Server (Server2) for a second, separate Client (Client2), the methods used are different from the first RMI connection. This Client2 uses a dummy of the implementation of Server2 in the same way as described above. The application Client1+Server2 only has to "translate" the calls from Client2 to Server2 into calls of Client1 to Server1 (Server1 is not changed at all). In case of primitive method parameters or return values this chain of RMI-applications works fine, but in case of more complex structures (my own classes) during the call of Client1 to Server1 an "ClassNotFoundException: access denied to class loader" occurs by running through the stub. Both stub.classes are found, all of the applications know the objects needed, the call of Client1 to Server1 is exactly the same call as it was during the simple version (only Server1 and Client1).
    Does anybody know, why this exception occurs and how I can overcome this ?
    Axel

    I figured out a solution - it's a problem of policies. In detail: Server1's codebase entry (file:) refers to the class directory of Server1's project. In the simple case of only Client1, which has no codebase entry, it works fine without a file permission on the side of Server1. In the complex case of Client1+Server2, which has to have a codebase entry (file:) refering to the class directory of the Server2's project on a separate machine, for exactly the same method call from Client1 to Server1 a file permission entry on the side of Server1 is needed for Server1's class directory. But WHY ???
    It seems to be a little confusing with the codebase entries, many of the posts are contrary to others and to my personal experiences. Some comments given by Adrian Colley throw a little light upon some aspects. Is there anybody, who can explain the whole topic, when, why, and which part of RMI application deals with codebase entries, also in case of not dynamic code downloading ? May be there is also a reference into the java docs, which I didn't found up to now.
    Thanks in advance
    Axel

  • Only one Application can be created at a time?

    We are using enhanced model of SAP-WCM and are in the EHP6 version. We have additional applications, in addition to main application. We do not use Work permit.
    Our users are creating work approval, applications & WCDs, manually as well as automatically from PM order. During manual creation of an application, if the user selects more than one options, system gives error and allows only one application to be created at a time. If more than one applications are required, he has to create them one by one. Similarly, in automatic creation of WCDs, if there is requirement of additional applications, users have to create additional applications manually.
    Our problem is that the user often creates only one application or goes with the auto created applications & WCD, ignoring the requirement of additional applications. We wish that somehow if system can force the user to create additional applications required for a particular job and does not allow to prepare or issue the WCM objects until all required applications are created. For this it is required to first identify which applications to be created.
    Our suggestion is, when we go for creation of application, it gives option to select type of applications with check-boxes. All the check-boxes should appear 'checked' by default and user has to 'uncheck' the application(s) not required for the particular job, before pressing OK button. On pressing the OK button, these choices must be stored in some table from where the system keeps track and prompts the user, until all the applications are created.
    The experts in WCM are requested to advise if this requirement could be met in our present configuration of WCM. Is it possible using work permit? If yes, how can we implement work permit?
    Regards,
    M.S.Sachan
    ERP-PM Core team

    This forum is intended for questions about old, pre-G3 hardware, and doesn't get much traffic. Hence it's not the place where you'll be most likely to get help with your problem. I'd suggest you ask this question in the Mac OS X 10.5 forum; you'll be more likely to get assistance there.
    Regards.

  • Interesting single sigon application project using jsp and servlet....Help.

    A customer login's to my website using Enterprise login. I am supposed to have a link on my website to this other website(that also uses our Enterprise login details but hosted by other vendor/company on their server), and when I click this link the customes should automatically get logged in to this other website and get a welcome page(instead of login page).
    Below are the sequence of steps that the other website wants me to perform to get to his welcome page(i.e bypass his login page).
    FYI, I am planning to build a jsp page with a link to this other website. Can some body tell me how should I build the application(i.e) how jsp and servlets be build to interact to perform these operations. Any hep is greatly appreciated.
    1.When a user clicks on to other website link(available on my website), the browser generates an HTTP GET request to the Other website's session servlet. User's name is one of the parameters of this request.
    2.Other website receives the HTTP request and generates a unique session identifier for this user. An HTTP response to the end-user is then sent. The user's name and the session identifier are passed back as parameters in the redirect URL.
    3.The browser sends the HTTP request (GET) to the Verification Service that was specified in the redirect message. The parameters (user name and/or session id) will be passed as URL parameters.
    4.The Verification Service(of other website) authenticates the user. A redirect URL to it's sigon servlet(with parameter's User id and key) is then sent back to the user's browser.
    5.The end-user's browser will perform the redirect (performing an HTTP get operation to Other website's signon servlet with the username and the digest key).
    6.The other website will check if the parameter's passed is the same as the one passed earlier, if the user is who he says he is then he is redirected to the main page of the application.
    7.The browser will then redirect the user to Other website's main page (welcome.jsp).
    There seems's to be many calls to this other website that needs to be performed behind the scenes once a user clicks the link on my website.
    Please suggest and help me out.........
    Edited by: 836726 on Feb 21, 2011 3:41 PM

    Why are you trying to build a whole federated single sign on framework from scratch when you can just use/buy an existing and proven solution instead? There are a lot of security implication and trust issues involved for this so unless you already understand all of those I'd advise you not to re-invent the wheel. There are a lot of products available that do this. Try searching for '<vendor name> Access Manager' or OpenSSO.

  • I want to upgrade my storage plan in icloud. Before that i want to know whether synchronization of data in my PC and data in one of the applications of ipad is possible through icloud or not

    I want to upgrade my storage plan in icloud. Before that i want to know whether synchronization of data in my PC and data in one of the applications like "phone drive" of ipad is possible through icloud or not?

    The Photos app doesn't currently support subfolders, it only has the one level of folder/album. You will either need to change your folder structure on your computer to be just one level, see if there is a third-party photo app in the store that copes with subfolders, or just make do. You can try leaving feedback for Apple : http://www.apple.com/feedback/ipad.html

  • My husband and I share one computer.  We want to be able to share the same music on our iPhones, but we don't want to share the same contacts and applications.  How can I set this up so we still share music, but everything else is separate on our iPhones?

    My husband and I share one computer.  We want to be able to share the same music on our iPhones, but we don't want to share the same contacts and applications.  How can I set this up so we still share music, but everything else is separate on our iPhones?

    Welcome to the Apple Community.
    iTunes and iCloud are different accounts. You can both use the same ID for the store login and share your music etc., and use different ID's to log in to iCloud, thereby keeping your calendars etc separate.

  • HT5019 MacPro laptop display and 2 external monitors (three displays). Can I have more than one application displayed at a time?

    I would like to have my MacPro laptop display and 2 external monitors (three displays). Question, how can I have more than one application displayed at a time? IE: I would like email on one monitor, Finder on my laptop, and iTunes on the other. Possible?
    With extended desktop, it appears that I can only have one application presenting at a time. Sort of defeats the purpose of having multiple displays.
    I am using the HDMI and the mini HDMI connectors.

    I would like to have my MacPro laptop display and 2 external monitors (three displays). Question, how can I have more than one application displayed at a time? IE: I would like email on one monitor, Finder on my laptop, and iTunes on the other. Possible?
    With extended desktop, it appears that I can only have one application presenting at a time. Sort of defeats the purpose of having multiple displays.
    I am using the HDMI and the mini HDMI connectors.

  • IMac (2008) OS10.6.8 - Main menu freezes when running more than one application at a time.  Apple and 3rd party applications - all freeze the main menu.  Safe mode seems to work OK. Tried repairing permissions - didn't work.

    For the past 60 days I've experienced Main Menu freeze when running more than one application at a time.  iPhoto, Preview, Text Edit, Epson Scan, Firefox and Thunderbird are the apps I use almost daily.  No matter what I do, when more than one is running they will freeze the Main Menu (top of the screen).  I've tried booting is Safe Mode and I don't seem to have a problem.  I've tried several suggestions from repairing permission (DiskUtility) to eliminating specifis login items.  Nothing works. I've posted this issue on the Apple forum several times and no one else has experienced this problem.  I hesitate to take my iMac to the Apple Store or a private Apple repair service until I've exhausted all of my options.  Do I have any more options?    

    Question:  Everytime an app crashes I have the option to report it to Apple - which I usually do.  But I've NEVER reported a Main Menu freeze because it never asks me to
    There's really no need to submit to Apple, it's just a round file cabinet on the other end, especially with 10.6 or earlier.
    This sure sounds like a resource problem...
    See if the Disk is issuing any S.M.A.R.T errors in Disk Utility...
    http://support.apple.com/kb/PH7029
    Open Activity Monitor in Applications>Utilities, select All Processes & sort on CPU%, any indications there?
    How much RAM & free space do you have also, click on the Memory & Disk Usage Tabs.
    Open Console in Utilities & see if there are any clues or repeating messages when this happens.
    In the Memory tab, are there a lot of Pageouts?

  • Export and Import a page from one application to another within same WKSPCE

    Hello,
    Can anyone help me out in moving a page from one application to another within the space workspace. I tried to export it and then import the page, but I am not able to do that. I think the problem is with the application IDs.
    Plz help me out with this issue.
    Thanks,
    Orton

    Hi Orton,
    moving a page from one application to another within the space workspace
    This U can get it, through copying the page from one application to another application within the same workspace
    In the top of the page, you have "copy" option.
    regards,
    Kavitha

  • Apple apps store do double charged me for only one application purchased and i can't find an email of apple customer service.

    Apple apps store do double charged me for only one application purchased and i can't find an email of apple customer service.
    <Email Edited By Host>

    These are user-to-user forums - I've asked the hosts to remove your email address from your post.
    Tou can contact iTunes support here : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page

  • I have just purchased the new macbook pro 15" and see that it comes with 2 discs in the box, one being Mac OS X and the other being Applications Install DVD. Are these pre installed? or do I need to insert the discs and install them?

    I have just purchased the new macbook pro 15" and see that it comes with 2 discs in the box, one being Mac OS X and the other being Applications Install DVD. Are these pre installed? or do I need to insert the discs and install them?

    All has been installed. Those are there in case you need to do a reinstall. Unlike most Windows based hardware vendors these days. Apple still ships software you might need in case a drive fails. Even in the case of the new MacBook Air, Apple ships the software on a flash drive.

  • In my iphone4s and  my iPad every time who I ask an update or down load an application ask me a bill account at the past I have not a problem to downloaded any application or update until one time I bought one application

    I try to downloaded any application or update to my iPhone or my iPad but asked me a billing acount. In the past any time who I asked any application or updated it was free  until one time  I bought one application with my bank debit cards once every time since then every time I want to download an application or update shows my account problem and not receive another card.

    Contact iTunes Customer Service and request assistance
    Use this Link  >  Apple  Support  iTunes Store  Contact

Maybe you are looking for

  • NEED HELP! Fios Quantum Gateway Router and XBOX ONE

    when i installed the new quantum gateway both my xbox ones nat type turned to strict and moderate, what settings do i need to change so they can both say Nat Type: Open in the CALL OF DUTY ADVANCED WARFARE multiplayer / xbox live / lobby screen thank

  • URJENT - F8BU

    URJENT Any idea about the TCODE: F8BU. How to schedule the Automatic Payment Run ( TCODE: F110), every week automatically. Iam getting "short dump" when iam doing TCODE:F8BU URJENT VVR

  • Bug:  Can't attach an image to a post during edit

    Edited a post I had just made: Opened a couple of blank lines. Hit the camera icon Hit the [Browse...] button Selected the file and had its path appear in the Insert Image dialog field. Hit the [Insert Image] button. Got this failure: I couldn't atta

  • Removal of Exchange from Infinity rollout plans?

    Hello, I had a look at your area map for the current schedules of enabling areas for Infinity earlier this year, and noticed my area (Rock, Midlands) on the list for December 2012, however it is no longer on the list. I'm 99% sure I saw it as the sam

  • New 80GB Video Ipod having all sorts of problems!!!

    I just got the 80GB for christmas and I have had nothing but problems. I actually haven't gotten it to play continuously without freezing: -It freezes often and I have to let the battery completely die and recharge it in order for it to respond. -I f