Two web apps using the same EJB client jar

I am currently deploying two web apps on a server. Both web apps use an EJB client
jar (the same jar) to access EJB's and both apps work when tested independently.
The problem arises when I log into app A and then log into app B. As soon as
I do app A loses it's references to the EJBHomes, and other classes.
It seems a classloader is unloading the first classes and instances loaded by
the first app and then loading them from app B's client.jar.
If I put the client.jar in the system classpath everything is fine, but that's
just a hack.
Is it not possible to deploy two web apps on a server using the same client.jar's
in their own WEB-INF/lib's?

Joe,
As Pravin mentions, the checking of those boxes in Workbench triggers scheduled jobs within the EAC that kicks off the scripts at the appropriate time/day. But as you've noticed, there's not a ton of flexibility and you don't get cron or Windows Scheduler-type capabilities.
If you need to do something special, you can manually kick off the report generation scripts from your control directory using the runcommand.bat (or sh) script or place the command into a cron/Windows Scheduler job:
For example, to kick off the WeeklyReports job, you would do this:
runcommand.sh WeeklyReports runSo, assuming you go down the route of creating multiple ReportGenerators and scripts, you would create a job to kick off the new script you've created at the appropriate time.
Hope that helps,
Patrick
http://branchbird.com

Similar Messages

  • Two Flex app on the same web page + BlazeDS

    Hi,
    On our welcome page, we have two small apps that display advertisement; they are both identical and use BlazeDS. When the welcome pas shows, I always have one of the app that receives this fault :
    [RPC Fault faultString="Detected duplicate HTTP-based FlexSessions, generally due to the remote host disabling session cookies. Session cookies must be enabled to manage the client connection correctly." faultCode="Server.Processing.DuplicateSessionDetected" faultDetail="null"]
    I feel the problem comes from the fact that two apps from the same page access the same service at the same time. Am I wrong?

    Hi. I believe you are right. Using a HTTP sniffer such as Charles to look at the HTTP headers would tell us exactly what is happening but I think we can assume that you are in the ballpark.
    If the server gets a request with no session cookie header, I think it will create a new session and then send a Set-Cookie header on the response with the new session id. It is likely that if both your apps are making their initial requests to the server at roughly the same time that neither of the requests has a session cookie header. In that case the server is probably creating two sessions, one for each request and that is likely causing problems.
    While I haven't tested this particular scenario, I have been doing some testing around session cookie handling in BlazeDS recently. I would see if you can workaround this problem by already having a HTTP session established with the server before either of your apps runs. One way to do this would be by having a jsp page redirect to your welcome page. The call to the jsp page would cause a session to get created on the server. The server would return a Set-Cookie header with the new session id. The browser would then request the welcome page sending a session cookie header on the request. Your apps would load. Each app would make its initial request to the server only this time the requests would contain a session cookie header for the same valid HTTP session. . . and you would avoid getting duplicate session detected errors. . . at least that's I hope would happen.
    If I have some free time I will try running through this scenario (having two small apps on the same page) and report back.
    Hope that helps.
    -Alex

  • I set up "Find My Iphone App" using the same apple id and password on two iphones. Now the app only finds the phone that I did the setup on first. Do I need a different apple id and password on each phone for the app to run correctly?

    I setup two iphones on "Find My Iphone App" Using the same apple id on each phone. Now the app finds only the phone I setup first. Do I need to use two different apple ids? If your answer is yes then how do I errase the setup in the second phone and assign a new id?

    As TJBUSMC1973 states, and as I said earlier, the Find My iPhone app has nothing to do with your use of Find My iPhone. The app is just used if necessary to locate another iOS device from that particular iOS device. To see if both of your devices are being located in Find My iPhone, log into www.icloud.com and select Find My iPhone. Both of the devices should appear. If they do not, then go into whichever of the devices does not appear and make sure that Find My iPhone is activated. It has to be activated through iCloud, and for both to show on the same map, they both have to have the same iCloud ID.

  • Two Web-tiers Sharing the same business layer - oc4j

    I am trying to produce a web application that effectively has two parts. The initial part is an administration system that is used for data entry, it is used within the intranet and must be hidden behind the firewall. The second part is a data search system that is accessible via the internet (i.e opened up through the firewall). Both these web apps should share the same data (one for add/edit of data and one for searching of data) My question is, how can two web applications share the same jar file (business layer - session and entity beans). Is it possible to setup the oc4j appserver to get the applications to us the same jar file?
    Also any ideas how I can hide one of the web applications from the public access, if I open up the port number on the firewall that the oc4j http server uses surely all of my web-apps will be visible via the internet.
    Not sure if this is the right forum for this kind of question as it is more of a design issue but any help would be most appreciated.

    Eddie/403640, you have probably solved your problem of sharing the same jar files. How did your solve it? As I see it, there is no problem at all.
    One way, the ordinary way, is to create an application with ejb modules and web modules. Your business layer are the ejb modules. Your web applications are the web modules. By default, all classes in a jar that is specified to be an ejb module in the application.xml of your application are visible to all your ejb modules and web modules; so are the libraries referenced by the Class-Path attribute in the META-INF/MANIFEST.MF of that ejb jar. If you have connector modules, all jars in the root directory of your .rar file will be available to all modules.
    In a word, the business layer is automatically shared by the web tiers in a j2ee application.

  • Obiee 11g and custom j2ee app using the same cookie name

    Hi,
    I wrote a same j2ee web application. i'am using authentification through a realm configured in the web.xml.
    This web app is deployed in the same weblogic than obiee 11g. What i want to do is to embed my application in a dashboard using an iframe tag, and use the same login from analytics to my custom web app.
    In this article http://docs.oracle.com/cd/E11035_01/wls100/security/thin_client.html#wp1039551, it is said that by default, all web apps in the sames weblogic server are using the same cookie name so that they share authentification between them. However, i have read in the web that analytics in obiee 11g is using a cookie with the name "ORA_BIPS_NQID".
    In the weblogic.xml of my custom application, i set the cookie-name parameter to ORA_BIPS_NQID. However, in the dashbord, it still prompt for authentification to my custom web app.
    How can we share authentification between analytics and a custom web app in the same weblogic ?
    NB : I dont want to pass the username et password through the url.
    Thanks.

    By default, if you don't specify a cookie-name in the weblogic.xml configuration file, the weblogic server create a cookie named JSESSIONID for your application. For exemple, if two applications use the default configuration, both of them will use the same cookie name which is JSESSIONID. In this case, when you log in the first application, your are automaticaly logged in the second application with the same credentials. I have already test this kind of integration and it works perfectly. You only need that the two applications are deployed in the same weblogic server.
    Now, i want to have the same behaviour between obiee 11g and my custom application deployed in the same weblogic server. I read somewhere in the web that obiee 11g presentation service (analytics) is configured with a cookie-name value = "ORA_BIPS_NQID". So in the weblogic.xml configuration file of my web app, i specify a cookie-name value = "ORA_BIPS_NQID" to have the same cookie-name between the two application. But, it still not work. It prompt for authentification in the dashboards.
    I now, that such an integration is possible, because the other bi applications (mapviewer, bipublisher,...) are actually other web applications. However when using, for exemple, maps in dashbords, the mapviwer application automaticaly user the credentials of the user connected in analytics.

  • Is it possible to have 2 different output config XML files and index the data into 2 endeca apps using the same indexing component ProductCatalogSimpleIndexingAdmin

    Hi ,
    We have a catalog that defines 2 types of products (they have too many different properties), so wanted to keep them on two different MDEX engines and serve the applications requests. Here DB catalog and front end ATG application is same for both the MDEX instances.
    Is it possible to have 2 different output config XML files and index the data into 2 endeca apps using the same indexing component ProductCatalogSimpleIndexingAdmin?
    Thanks
    Dev

    Hi, also have had some problem some monthes ago - I created separete component ProductCatalogSimpleIndexingAdminSecond. After that one of my colleage gave me some advice:
    The creating separate component like ProductCatalogSimpleIndexingAdmin for the second IOC is possible way for resolving your situation. But I afraid that this way will be required creating mane duplicates for already existed components.
    In my opinion the better way is the following:
    starting from AssemblerApplicationConfiguration and ApplicationConfiguration component. It contains details for connecting between ATG and Endeca. Of course you should configure different components for different Endeca Apps.
    After that:
    Find all components that uses AssemblerApplicationConfiguration and ApplicationConfiguration. Customize these components for using one or another  *Configuration component depending on what index works. (many variants released it: the most simple global custom component with flag.)
    Then customize the existed ProductCatalogSimpleIndexingAdmin. Using one or another IOC  and setting the flag in global custom component when index started. You can add some methods into your custom ProductCatalogSimpleIndexingAdmin like:
    Execute baseline index for both IOC (one by one)
    Execute baseline for IOC 1
    Execute baseline for IOC 2.
    Note: you should be afraid about incremental (partial) index in this configuration. But resolving conflicts in incremental index should be done after full implementation these changes.
    Regards

  • Can I have a Face Time conversation between two Apple devices using the same Apple ID?

    Can I have a Face Time conversation between two Apple devices using the same Apple ID?

    Yes, you can, but the two devices can't have the same e mail address associated with both.  Each, device needs its own unique e mail ADR.  In your case, the iPod can call your iPhone if you use the phone number, but the iPhone can not call your iPod because it must use the e mail address, and if the email address is the same on both, the iPhone will think it's calling itself, so the call will not go through.

  • Connecting to two database instances using the same Toplink

    Hi,
    We are trying to create a process using BPEL where data from one database instance needs to be passed to the other. The process is compiling properly and we could deploy it in BPEL Process Manager. But when we try to run the process, the data is not getting inserted into the second instance. There is no error /exception being thrown at most of the time, but at times we are getting a 'Unique constraint error' eventhough there is no duplication of data.
    Can we connect to two different instances using the same toplink. How can we achieve this.
    Thanks in advance
    Pratheusha

    You need to use two different sessions with two different mapping descriptors

  • Is there a way my two daughters can use the same laptop and have their own individual I Tune music??

    Is there a way my two children can use the same laptop and have their own individual music accounts?

    Do you mean different music collections, camille?
    If so, there's several options given in the following document:
    How to use multiple iPods, iPads, or iPhones with one computer

  • HT201272 Can two synchronised ipads use the same purchased apps

    I have two i-pads with shared free apps, but when I purchased one from the i-tunes store recently it would not show up on both.  How do I share this language course with both i-pads?

    If you are using the same iTunes account on both iPads then you should be able to re-download the app on the second iPad via the Purchased tab in the App Store app. If you always want any new app purchases to download on both then you should be able to turn on automatic downloads via Settings > Store (Settings > iTunes & App Stores if they are on iOS 6).

  • Scoping out Sharepoint - Is it possible to run web apps in the same domain as a web page? (ie not with references to a cloud)

    From what I understand, with sharepoint it is possible to run web apps on the server that don't need to be referenced via the cloud, ie in contrast to SkyDrive.
    If so, would it be possible to create a web site on the share point server that embeds say a word web app in a page, all done in the one server, on the same domain?
    Thanks

    Hi,
    First Office Web Apps and SharePoint can't be installed in one server as it's not supported. So you need at least two servers - one for SharePoint and another for Office Web Apps. About 'word web app', As far as I know you can run word app/excel app runs
    in either word/excel but not inside Office Web Apps.
    Thanks,
    Sohel Rana
    http://ranaictiu-technicalblog.blogspot.com

  • Two user accounts using the same home folder

    This may sound like a silly or goofy question, but I was wondering if anyone knows how to use two different user accounts, but with each using the same home folder?
    I was wondering because there are many different settings I would like to use for different settings. Kind of like a "Spaces on Steroids." When I'm at school, I'd like to use one Network Settings, one desktop and icons, one Dock, etc. And when at home, a different set of each, but still using the same home folder.
    Any help or suggestions would be most appreciated.

    ZooCrewMan wrote:
    So, I figured the easiest was would be seperate user accounts, "Home" "School" "Work" etc., and all have different settings, but still point to the same Home Folder.
    The problem is, most of those settings are kept in the home folder.
    You could probably do what Softwater suggests, with an AppleScript, or perhaps an Automator workflow, but it's not without some serious downsides.  You'd need one for each setup.
    At least one complication would be, any change you wanted to make to each setup would have to be done to that script; you couldn't just drag something into (or out of) the Dock.
    Another theoretical possiblility would be to have separate user accounts, but use the special Shared user folder for your data.  You'd have to select it as a souce or destination for each app you use, but many will remember that from use to use. 
    The complication would be permissions.  When you save a document there, the user that saved it is the owner, with read & write rights.  All other users have read-only rights, so could view and open them, but not update them.  You'd probably want to create one or more sub-folders in the Shared account (for various types of files), and you could probably set a Folder Action on each to grant read & write permissions to anything created in them.
    Then you could set up the desired network location, Dock, and Desktop for each user account.

  • Can two Palm devices use the same Hot Sync ID?

    Can two Palm devices share the same Hot Sync ID using the same desktop? I presently owe a Treo 700p with a lot of purchased software. I'm considering buying a Palm TX handheld and would like to use both devices using the same Hot Sync ID. Is this possible and should there be any synchronization issues if they are syncing to the same desktop?
    Post relates to: Treo 700p (Sprint)
    Post relates to: Treo 700p (Sprint)

    You will be assured of unpredictable device behavior, random crashes, spontaneous resets, and other delights described in one of the boxes in the Read This First flyer if you sync two very different device models (phone vs. PDA, different screen sizes, etc.) to the same Hotsync ID on the same computer.
    This can be done but you will have to treat each sync as an Upgrade, rename the Backup folder, and reinstall third-party applications, reset your preferences, basically the entire process involving multiple syncs every time you sync. I don't think the headache involved is worth it.
    Suggest you decide which third-party apps you want on your second device and get an additional licence and registration from the developers.
    Post relates to: Palm TX

  • How do you separate the iCloud on two iPads that use the same Apple ID

    How do you separate iCloud accounts for people using the same Apple ID

    You can share an AppleID between individuals for purchases from iTunes (music, movies, TV shows, books, etc.) while each having an individual iCloud account for syncing your personal calendar, contacts and iCloud files.
    In my household......
    We have a single AppleID for iTunes purchases which is used on all 8 of our iOS devics and 3 computers. That way all apps purchased from the Mac or iOS app stores or content from iTunes can be used on any device.
    Each of us (3 of us) then has our own iCloud account. None of our iCloud accounts are the same as the AppleID. The iCloud accounts are used for device backups, contact and calendar syncing, iCloud document files and photostream.
    This way, we all share apps and media, but our contacts and calendars are not mixed and neither are our documents. Each person having their own iCloud account also helps with space when dealing with device backups.

  • HT202213 can two apple ids use the same itunes account?

    I'm pretty new to apple products and have an itunes question. My husband and I just bought iPhones and have separate apple id's. We will also using an iPod. Is it possible to use itunes with both id's? Is there any way to share the files between both of us?

    If you want to share a single AppleID with a single iTunes Library, then simply sync both devices to that iTunes library using the same user account.
    If you want to sync two AppleIDs to one iTunes library, in iTunes on the computer, login and authorize each AppleID, then sync the devices to that common iTunes library in the same user account.
    You do not do anything on the device being sync'd itself - it all has to do with how iTunes that you are syncing to is set up and what AppleIDs are authorized there.  You can sync multiple devices to iTunes, just be sure that each device gets a unique device name in the iTunes sidebar.
    To then use unique AppleIDs for iCloud and iMessage on a iOS device, first, make an iCloud account with the AppleID you want to use (go to http://www.iCloud.com), then set up that iCloud account on the device with that ID and password.  In iMessage, just log out with whatever AppleID you are using now, log in with the new AppleID and it will reauthorize, now linking that device with the new iMessage account just created with that AppleID (your iMessage primary account ID is always the AppleID used to initially create and verify the iMessage account).

Maybe you are looking for

  • Validating in ALV grid output for double entry

    Hi All,          I am trying to validate the ALV output while adding records to the screen. I need to validate if the same primary key exist while user is creating a new record in the ALV output. If the same record is entered many time ( with the sam

  • Best practises for using Excel functions on Power Pivot Data

    Hi How do you suggest to perform calculations on cells in a power pivot table? Obviously the ideal approach is to use a DAX measure. But given that DAX doesn't have every function, is there a recommended way of eg adding an "extra"  ( ie just adjacen

  • FMLE crash when shut down in OS X Lion

    For some reason FMLE crashes when I shut it down in Lion. It works pretty ok while up running though cause I can cast with it but when Im shutting it down the program crashes every time. How can I fix this? Thanks

  • Web email bounce-outs in Safari

    I recently upgraded my dad's Mac Pro to Yosemite, and now he and my mom are having problems accessing their email in Safari. My dad goes to his ISP's website to get his email, while my mom uses Gmail. Both have told me that whenever they access a mes

  • Review after upgrading Belle .

    The menu works so smooth in Belle but some apps are fail to download from ovi as well as the battery saving mode can't be switched on until the battery is about to die-,- Anyway, a good improvement! Cheers!!!!!!!!!