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.

Similar Messages

  • 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

  • Two editors on two edit systems sharing the same footage, suggestions?

    So I just got done shooting my first feature and now I've got to come up with a plan for editing.
    Here's what I got:
    1 Core 2 Duo iMac with FW800 FCS2
    1 Core Duo iMac with FW400 FCS2
    ~40hrs of DV25 footage
    $800 dollars to spend on a storage solution
    The Core 2 Duo iMac will be the primary system for the final edits, color correction, ect. and the other iMac will be used for rough cuts, capturing a/v, exporting, etc.
    For the most part only one system will be editing at once, but I'd like both systems to have simultaneous access to the footage for the days when we need to hustle.
    Originally my plan was to get a 1TB G-RAID2 (or something similar) and run firewire to both systems but from what I've heard, that's a bad idea. Maybe I could link it to one computer and have one system edit over a network?
    I'm starting to think the only real solution is to give both systems their own drive, but it seems like a waste since we're using roughly 500GB of the same stuff. My "dual edting" idea is starting to seem like more of a pain than a benefit.
    Thanks in advance for any help, and please let me know if you have a better idea for our post production setup overall.

    With that much money, you only have two solutions.
    1) Get two drives...put the same footage on both, keeping the exact same file structure. Name both drives the same name so that when you swap projects you don't need to reconnect. Render files you will have to re-create...by rendering. Any new footage you capture onto one will have to be copied onto the other.
    2) Connect one drive to one iMac, connect both iMacs via Ethernet, then enable file sharing and include that drive. This, however, is very unreliable.
    Shared Storage solutions costs thousands to tens of thousands of dollars.
    Shane

  • Two SCE 2000s sharing the same Collection Manager?

    Does anyone know if two seperate SCE 2000 devices can share a collection manager, or do they each need a seperate CM?  If they can shere, is  there any specal setup on the CM itself?
    Thanks.

    Just a thought!
    If you change the security settings on the default itunes folder so that you other user can access the folder then you could change the itunes preferences for that other user to use you newly shared folder. then you'd have both itunes apps using the same file set and library. all you'd have to do then was create a playlist for you and for her.
    I've never tried it myself, i just let my wife use itunes on my account.
    john

  • How do I enable opening firefox from two different computers sharing the same home directory without having to delete a lock file (linux).

    I just don't want to have to delete a lock file - which has a purpose - in order to use firefox simultaneously from two locations on the network - where the home directory, i.e. .mozilla directory - is located

    You need to use two separate profiles if you want to have two Firefox instances open at the same time.
    See also http://www.mozilla.org/unix/remote.html

  • Multiple web-app sharing the same database.

    hi experts,
    If I have several websites running on the same server. Most of the are sub-domains of the same domain, they share the same database, but each sub-domain will have their own web-apps(This also means that they are running on a different java virtual machine, right? ). My question is that how can I make them communicate with each other. Also, will there be any conflict with the database insert/update issues, and How do I solve that?
    For example, if one user is already logon from "tips.mydomain.com", then when the users goes to another sub-domain, say "java.mydomain.com", he/she doesn't need to re-login again.
    thanks.

    Well yes, having databases accessed by multiple users simultaneously is an issue that many many developers have had to face. But the answer to "How do I solve that" doesn't fit in this little box or in the limited time that people have available to answer questions here. It's an extremely complex issue about which entire books have been written.
    As to the bit about the subdomains, it is possible to map them to the same web server, as far as I know, but that's a web configuration issue and nothing to do with Java programming.

  • Sharing the same data on two macs

    Hello, I have two Macs and would like to keep the same data on each laptop. I don't think iSync is the tool for the job. Can anybody out there advise of an easy affordable method of ensuring both my machines are sharing the same data; itunes, photo's, files, etc.
    Many thanks.

    Get FoldersSynchronizer You can set up a selection of folders and sync them between two Macs.

  • Configuring SMTP Namespace Sharing between two Exchange Forests on the same LAN

    Hi guys, really hoping that someone can help me with configuring SMTP Namespace Sharing between two Exchange Forests on the same LAN.
    Basically, I have created a new forest and installed a new exchange organisation in this forest.  Both forests are located on the same IP subnet and a two way trust has been created between the forests.  Federated sharing has also been configured. 
    I can use ADMT to migrate the user and computer accounts to the new forest and also migrate test mailboxes over.  Ideally, I want to be able to do the mailbox migrations in stages so will need to be able to have mail flowing between the two forests. 
    I have read over the following article (http://ibrahimnore.wordpress.com/2012/09/06/configuring-smtp-namespace-sharing-between-two-exchange-forests-part-2/)
    which is good but it's demonstrating over the internet, can anybody advise how this can be achieved on the local LAN? 
    Any help greatly appreciated :-)

    Hi Gilliano,
    Thanks for correct link. I must say this is a very good article indeed, I read the entire article and if you go to the 3rd part of this article, please note the text "DOMAINC.COM is configured as Internal Relay Accepted Domain on both the domains"
    This is exactly what I asked you to check. Personally, I understand the method described in this article will work but its very complex to manage and administer, while the easiest option is to configure internal relay at the first place and no need to make
    so many DNS changes and customizations to your environment.
    The solution really depends on what your requirement is - Since you mentioned that you are migrating stuff over from source to destination - I feel this article is too complex for your situation and not really worth (for your requirement). The setup described
    in the article is an excellent choice if you are planning to keep both forests alive for longer duration due to several reasons like compliance or company mergers and so on...
    please let me know if my explanation is not clear enough.. we can even even have a one-on-one email conversation too!
    All the best!
    Please mark as helpful if you find my contribution useful or as an answer if it does answer your question. Regards, Siva

  • HT5622 I have two iPhones synced with the same Apple ID and so the contacts are being shared in both of them. Is there any way to revert this?? The reason is that if I delete some contact from one device then it automatically erases from the second one as

    I have two iPhones synced with the same Apple ID and so the contacts are being shared in both of them. Is there any way to revert this?? The reason is that if I delete some contact from one device then it automatically erases from the second one as well

    Yes, you stop using the same Apple ID under Settings > iCloud.

  • Two computers sharing the same PC Music Library databa

    Is there any way two computers can share the same music library database? It's easy to share the mp3 files, but I want to share the database (which contains the playlists and smart playlists). I haven't been able to find a way to point the Organizer at a different database location (the default location is \Documents and Settings\{username}\Application Data\Creative\Media Database.
    Thanks,
    Jeff

    No, you cannot share the PC Music Library database. What you can do is that you can backup the PC Music Library database from the "master" PC and then bring the backup to the other PC and restore it to the other PC. You can perform the backup and restore in MediaSource's Tools->Settings->PC Music Library.

  • 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 have two iphones sharing the same e-mail and if one deletes an incoming email, it is deleted from the other iphone.  How can I stop that?

    I have two Iphones that share the same email.  we got new 4s phones.  Now if one person checks/deletes email, it does not show up on the other phone
    and it is taken off the server.
    How can I fix that?
    I want it to go to both phones and to remain on the server even if I delete it off my phone.
    Thanks

    You must be using a POP3 account like verizon.net
    using IMAP like gmail will help some of your problem, not all...
    even on IMAP accounts once one person checks the email it will not show as a "new" message anymore... and if deleted it will still be gone from both phones...
    There are settings you can change in the advanced section of the IMAP account settings that designate the phone NOT to delete messages at all as well... thought this is also an option on POP3 account settings too.

  • Open document syntax for  opening of two detail reports at the same time

    Hi All,
    I have one summary report   and two detail reports (sales detail Report  and Activation Detail Report)  In summary report I have serial number  when I click the particular serial number in summary report I need to display two detail  reports at the same time is  it possible to do In Business objects webintelligence 3.1
    I am using webi 3.1  , please suggest me any one how it do u2026u2026?
    Thanks in Advance!!!
    Regard,
    Sreekanth.

    while forming the link, try using java script.
    the html can be like:
    <html>
         <A href=" j avascript:window.open('http://www.google.com','','');j avascript:window.open('http://www.yahoo.com','','');">
              Click Here
         </A>
    </html>
    In place of # write (as I am not able to paste the code):
    javascript:window.open('http://www.google.com','','');javascript:window.open('http://www.yahoo.com','','');

  • Share iTunes purchases between two user accounts on the same Mac?

    I have a Macbook Pro, for my bride and I, and a Macbook, for our kids. Both Macs are authorized on my iTunes account.
    So, how can I share an iTunes Store purchased song on my account with my wife's? I understand how to turn on sharing and she can see my songs in iTunes on her account, but she cannot synch them to her iPod.
    Now, I'm allowed to authorize an iTunes account on up to five Macs. I have two. But I have four accounts. Either way, I won't be exceeding five copies, but can't find a way to get a song I bought in my iTunes to my wife's iPod.
    We use the same iTunes account but don't want to have to buy things twice to get them on her iPod. Just seems weird that I could put it on five machines but not two user accounts on the same one.
    Message was edited by: Sky Guy

    On my Mac Pro I moved the entire library to "Macintosh HD/Shared/iTunes". Changed the Folder location in iTunes Preferences->Advanced->General to point to that location. Then in each user change the Music/iTunes folder to be an alias or link pointing to the Shared/iTunes folder. You will likely need to change the permissions on that folder to give everyone the ability to read and write. Do that via "Get Info" on the iTunes folder using Finder. I'd suggest backing everything up before you do this.

  • HT204150 Sharing the same iTunes, Apple ID and iCloud accounts.

    Hi
    My wife and I share the same Itunes , Apple Id and Icloud accounts.
    How do we keep our contacts seperate, when we open up or back up on I cloud?
    As we both have I phones, I would like to keep all my work contacts seperate from hers. Also I don't wish to have her contacts loaded on my phone and vice verser.
    Will it mean the I will have to get a seperate apple ID and seperate Icloud account.
    Problem is that all our music and photos are on the one Library, because we didn't have two Iphones before, it didn't matter.
    We would like to keep the same Itunes library to access music and photos, but like to keep everything else seperate.
    Can you please help.
    Regards
    shervhall

    You can continue to share the same ID for purchasing from the iTunes and App stores (your iTunes account/library), but you need to have separate iCloud accounts with separate IDs to prevent merged data such as contacts.  (You aren't required to use the same ID for purchasing as you do for other services such as iCloud, iMesage, FaceTime, etc.)  The only issue is that photo stream is tied to the iCloud account so when you separate your accounts, you will no longer be sharing the same photo stream.  You can still send each other shared photo streams in order to share each other's photos, but they wouldn't be part of the same photo stream.
    To separate your iCloud accounts, on the device that will be changing accounts, go to Settings>iCloud and turn all data that is syncing with iCloud (contacts, calendars, etc.) to Off.  When prompted choose to keep the data on the device.  (If you are syncing iWork documents with iCloud, also open your iWork apps and turn off iCloud syncing and choose to keep the documents on your device.)  After everything is turned off, scroll to the bottom and tap Delete Account.  (This will only delete the account from this phone, not from iCloud.  The device that will be keeping the existing account will not be effected by this.)  Next, set up a new iCloud account on this device using a different Apple ID and turn iCloud data syncing for contacts, etc. back to On.  When prompted, choose Merge.  This will upload the data to this new account.  At this point you will have two different iCloud accounts, one for each phone, with identical data on them.
    You will then have to go to icloud.com on your computer and sign into each iCloud account separately and manually delete the unwanted data (such as deleting the other wife's contacts from your account, and vice versa).  These changes will be reflected on each phone.  When finished you will have individual iCloud accounts with just your own data on them.
    To avoid getting each other's text messages and FaceTime calls you also need to use separate IDs for iMessage and FaceTime.  To change the ID for iMessage on one of the devices, go to Settings>Messages>Send & Receive, tap the ID, sign out, then sign in with a separate ID (such as the new iCloud ID).  To change the ID for FaceTime on this device, do the same thing in Settings>FaceTime.

Maybe you are looking for

  • Get if local variable exist with teststand API

    Hi,  attach you'll find a sequence file and a VI. This VI should open the Expression Browser and after selection a variable (in this case I select Locals.test) the property object exists should tell me if this local variable exists. This is part of a

  • Play back stopped

    ok so i been working on this same project for weeks now and one day i get up and it will not play in project manager i am able to scrub through the film and see it,, but when i press play nothing moves is there something that could be stopping playba

  • Music randomly stops/starts and Siri activates itself?

    I have an iPhone 5, with an updated iOS and everything. Lately I'll be listening to a song with my iphone sitting on a flat surface and the song will suddenly stop itself or start skipping. Also, sometimes in the middle of the song it will stop and S

  • Calculating a Leap Year with a FOX Formula

    Hi to everybody. Is it posible to calculate a leap year using BPS in BW 3.5 with a FOX formula? The code i need to write is something like this: if ((year % 4 == 0) AND ((year % 100 != 0) OR (year % 400 == 0)) then   it is a leap year; else   it isn´

  • Tutorial: Azure AD integration with DocuSign

    Click reply and tell us what you think: Azure AD integration with DocuSign Markus Vilcinskas, Knowledge Engineer, Microsoft Corporation