Syncing model sources across multiple WARs

One of the problems we're hitting in our development is keeping model classes synced across a multi-WAR project. For example, the model class for, say, a User object was changed in WAR B, but that developer (an intern) did not publish those changes to WARs A and C. The end result was that a few of our web service calls started failing on the unchanged WARs, while others worked fine.
I started looking into EJB3, intrigued by the @Remote and @Local setup, but those are related to the session beans themselves. I was hoping that object models could be referenced by interface across multiple WAR distributions as well, though I haven't dug up anything specific on this yet.
Is there any advice on this forum for keeping model classes in sync across a multiple-WAR project (aside from tighter repository control and swift kicks to the butt)?

Wraithe wrote:
Quoting myself: +"The end result was that a few of our web service calls started failing on the unchanged WARs"+
My original question pertaining to ensuring that the source code for the end user model classes remained consistent. You can't if the interface contains Java classes that are changed. You immediately have to deploy updated JAR files with the new code to all the clients that need it.
The JAR idea is applicable, though not ideal, and I was hoping there was some other suggestion as to how to handle client-side objects.There is: XML messaging in the service interface instead of Java classes.
%

Similar Messages

  • Share data across multiple WAR

    Does somebody know any pattern to share data across multiple WAR applications?
    I need to modularize an Intranet Application?
    So, I don't have to shutdown the entire intranet to make the changes in just one module .
    It is possible to share a session object? or I must to get and propagate browser session id :( ?
    Any idea will be appreciated.

    Yes you can, I did it running tomcat
    -First have to set crossContext propertie value to "YES"
    Then this is my pice of working code :
    javax.faces.context.FacesContext facesContext = javax.faces.context.FacesContext.getCurrentInstance();
    javax.faces.context.ExternalContext externalContext = facesContext.getExternalContext();
    javax.servlet.ServletContext servletContext = (javax.servlet.ServletContext)externalContext.getContext();
    Object yourObject = new Object();
    if(servletContext.getContext("/yourContextName")!=null)
    servletContext.getContext("/yourContextName").setAttribute("yourObject ",yourObject);
    Jesus

  • Sharing static files across multiple WAR files in a single EAR

     

    Is there also a way to share the Session across multiple WARs in the
    same EAR ??
    TIA
    Nikhil.
    Vinod Mehra wrote:
    Yes, we have Virtual Directories for this in 7.0.
    http://edocs.bea.com/wls/docs70/webapp/weblogic_xml.html#1031951
    --Vinod.
    "Sam Smith" <[email protected]> wrote in message
    news:3d3f47cf$[email protected]..
    Hi,
    I have multiple web apps to be deployed to an intranet. I need to have acommon
    look and feel for these multiple webapps.
    I could place the webapps in a single ear file or deploy them without aear file.
    I wanted to know if there is any standard way to include static files likeimages,
    javascripts and css files (for a common look and feel) across multiple warfiles.
    Right now I am planning to keep a war file which just contains all thestatic
    files and point all the jsp pages in the other apps to the static files inthis
    common app. Is there a better way to go about this.
    Thanks,
    Sam

  • Syncing safari tabs across multiple macs

    I have a Mac Mini as my primary mac and a MBA as my "leisure" Mac. I thought with syncing that all my Safari tabs would be the same in both, like is done well with Mail, Contacts, and Calendar. However, I've just changed my Mini Safari tabs, and I went to my MBA expecting to see the same framework, and it has not updated. What do I need to do to sync across multiple macs?

    The tabs are not synced, just the bookmarks. Tabs are not data or content, just a window frame for different URLs.

  • Instant Syncing of Calendars Across Multiple Ipads

    I need to have instant sync between multiple ipads, using the same calendar.  What is the best way to do this, and is there a way to put a calendar slot on instant "hold" so that multiple people accessing the same calendar at once can avoid double booking?

    Wraithe wrote:
    Quoting myself: +"The end result was that a few of our web service calls started failing on the unchanged WARs"+
    My original question pertaining to ensuring that the source code for the end user model classes remained consistent. You can't if the interface contains Java classes that are changed. You immediately have to deploy updated JAR files with the new code to all the clients that need it.
    The JAR idea is applicable, though not ideal, and I was hoping there was some other suggestion as to how to handle client-side objects.There is: XML messaging in the service interface instead of Java classes.
    %

  • Syncing contacts & calendar across multiple desktops

    Hi - I have a PC laptop and a Mac Mini.  I'd like to get the contacts and address book synced between them, but can't for the life of me work out how to do this.  It seems that mobile exchange (?) was the way to do it, but that we're now in limbo before the Cloud comes out...but there must be another solution?
    Ideally they'd sync in relatively real time, but if it's just a manual process (e.g. via my iphone) it would be a great start (unfortunately the iphone only seems to sync withe one desktop?)
    Any thoughts much appreciated!
    Thanks

    The tabs are not synced, just the bookmarks. Tabs are not data or content, just a window frame for different URLs.

  • Syncing Offline Folders Across Multiple Machines

    I have created several offline folders on my G4 laptop and G5 desktop that I would like to synchronize and keep synchronized in the future. The folders are not smart folders. I would appreciate it if anyone can provide some direction on how to accomplish this task. The folders that currently exist on each machine have my archived email and they are not the same, i.e. they do not have the same data although some of them have the same folder name. I have a .mac account and am using the sync function to sync the main mailbox.
    I understand how to keep the online mailbox (name.mac.com) mailbox sync'd between machines but do not understand how to do the offline mailboxes.
    Thanks for taking the time to help.

    There is no way to automatically synchronize mail stored locally. Only mail stored on the server can be synchronized -- that's precisely what IMAP accounts are for. You can manually import a mailbox from one computer into the other and remove duplicates afterwards, or you can overwrite the entire contents of the Mail database on one computer with what's on the other.

  • Problems syncing with exchange across multiple OSX devices

    (1) Brand new imac 27" ,latest OS, Office 2011 14.4.3
    (1) Year old macbook air, latest OS, Office 2011 14.4.3
    I have a problem that is difficult to describe, so please excuse my language.  I have a macbook air that is running fine.  I am using Office 2011 with outlook connected to my corporate exchange environment.
    I recently added the new iMac to my office with pretty much the same exact software and settings.
    With both the Macbook Air and the iMac running Outlook concurrently, both machines do not sync and Outlook does not update.  For instance, when someone sends me an email it doesn't get delivered until after I close Outlook on one of the devices.  It didn't seem to matter which device it was.  The same behavior was present on both.
    I found lots of discussion on the web about syncing problems but nothing so far that addressed the exact issues I have discovered.
    Has anyone discovered this?

    iTunes 11 is somewhat better at device recognition, BUT MDCrashtool runs and locks after an iphone5 WiFi sync. My ipad3 doesn't sync wirelessly rather by cable on purpose.  Hmmmm.  And if one disconnects a device with the upward arrow, I, atleast, had to restart itunes.  There appears no way to reconnect with a wireless syncing device, short of restarting and plugging at least one device in via usb cable.
    So back to the fix of this tip.  Buy more cables.

  • Newbie question about setting up iTunes to sync across multiple computers

    Hi,
    Right now I am using iTunes primarily for listening to streaming radio. However in about 2-3 weeks after I move, I am considering importing all my CDs into iTunes.
    So my question is this. What can I do before I start that will make my life easier for syncing my iTunes across multiple computers.
    I don't expect the computers to connect to each via internet but I do have a 4 GB flash disk and 230 GB firewire drive that could be used. And since one of the computers is MacBook Pro, I could use it in target mode I think.
    Thanks.

    Authorization only applies to computers. When you update a device any protected content on the device for which the library is not authorised will be removed. Otherwise no attempt is made to remove content that was added by a now deauthorised library.
    There is a separate scheme permitting up to 10 devices (computers, iPhones, iPad or iPod touches) to be registered for automatic downloads of your purchases with a different mechanism for deregistering devices.
    Once you have a file on your computer you can physically copy it to any other computer in the same way that you would copy any other file like a Word document, put it on a disk, email it if not too large, burn it to DVD, stick it on an external hard drive or move it over a network. You can use Get Info. To tell you where it is now and you can drop it into the library at the other end.
    The user tip shows how to backup the whole library and then update that backup efficiently. Such a backup to a portable drive also provides a possible tool for transporting any content to another computer.
    tt2

  • Syncing ical across multiple computers without .mac

    Hi,
    Is it possible to sync ical calendars across multiple computers in the same network or over the internet without .Mac? If I have a website or ftp server, can I use that instead to synce over the internet or is there an easier way? Thanks.

    This is another related question.
    Having at last extracted a decade of diaries from Palm Desktop as vCal (since you ask I had to go back to Classic as the app quit without writing the export file in Tiger and Leopard, even tho it is otherwise OK) I now have something I can import rather messily into iCal.
    However as I have really bad internet access in the Boondocks where I live I don't want to use .Mac to sync between my iMac and iBook. Palm ran very happily from a thumb drive, but I don't see how I can do it as the powers that be seem to have made the data file invisible.
    I'd like to move it to the thumb drive and have an alias on each Mac where the data should be - as I do with Palm.
    Does anyone know the path, and if there is a problem doing it between Tiger and Leopard?
    Cheers, Colin

  • How to deploy across multiple mid-tier instances

    I was hoping someone may be able to point me in the right direction. We have two portal/webcache mid-tier instances on release 10G AS 9.0.4.2. On the ias_admin home page I tried to create a cluster and add the two instances to a cluster but it won't let me do it for a portal type install. If that is the case, how do people handle deploying such things as portlet providers and data sources across multiple mid-tier instances? Here is the concern from our Portal admin:
    As discussed, the inability to cluster the mid-tiers will cause issues in production as we try and keep deployed portlet providers with their required configurations and datasources in synch. While deploying and configuring 1-2 mid-tiers for a given portlet manually is do-able, the chance for out of synch components or configuration settings is amplified for each additional mid-tier. If we manually deploy 5 mid-tiers and accidently mistype the datasource for example, we'll have a random error that will occur once requests are attempted to be serviced by that mid-tier. This will make troubleshooting difficult. We really need some way to deploy and configure settings one time and have these items propagated to all the other mid-tiers.
    What is the best way to handle this scenario?
    Regards and thanks for any info,
    Chris Schumacher
    Embry-Riddle Aeronautical University

    Jar files are not stored on the file system
    Temporary files are held in bpel/domain/default/tmp folder, whereas jar files in the dehydration store for clustered deployment.
    If you configure BPEL (not AS) cluster - files will be propagated to all nodes.
    MJ

  • How do I stop games from syncing across multiple devices?

    Hi there,
    My kids all have their own ipads (super big blessing from a grandparent).  My husband and I each have one as well.  We like to play some of the same games, and sometimes the game progress syncs between our devices.  Eg. We like to play Disney's Frozen Free Fall game, and for some reason, my ipad doesn't sync to my husband's.  When my kids asked for the game on their ipads, however, the games automatically synced to my husband's, so I didn't let them keep it (I didn't want them using all his items/lives).
    My kids all like to play Angry Birds Transformers, and with the latest update to that game, their games are all suddenly connected to each other (they all have the same characters, number of gems, etc.).
    How do these games sync (game center, icloud, etc.)?  Does anyone know how to disable the feature so that our games do not sync across multiple devices?  I would like us to not be sharing the same game progress.  We all share one itunes account.
    Thanks so much!
    (If it helps, I have the ipad2, my kids have ipad mini 2's, and my husband has the ipad air.)

    We all share one itunes account.
    This would  be why the syncing occurs. Until a more knowledgeable person comes   by ...
    You can have one, two or three apple id accounts per idevice. Assign a second apple id to all the kids machines. Same or multiple apple ids. depending on how you want the game to act. Does a family account differ?  delete the game from the current apple id.  Install the game on the new apple id ( or apple ids ).
    Look into family sharing:
    https://www.apple.com/icloud/family-sharing/
    Robert

  • How can I share a *.java source file across multiple projects in NetBeans?

    I'm sure this simple and a pretty common operation but how can I share a *.java source file across multiple projects in NetBeans? Right now I keep cut, coping and pasting the same source file between multiple projects to re-use the same code. But I could I make this source file a library file or something like that so that I could access it from any project. I assume this would be a generic operation but I mentioned NetBeans for clarity. Thanks.

    fiebigc wrote:
    I know I mentioned NetBeans but I'm most interested in the generic method for creating a library of source files that I can call into whatever program I am developing. I've done such a thing in C using header files and such but I'm trying to get a direction on how this is accomplished in Java. I'm sorry if I could edit the title I would. If anyone wants to be specific about NetBeans I welcome that too.
    Edited by: fiebigc on Jun 20, 2008 5:57 PM
    >I know I mentioned NetBeans but I'm most interested in the generic method for creating a library of source files that I can call into whatever program I am developing. I've done such a thing in C using header files and such but I'm trying to get a direction on how this is accomplished in Java. I'm sorry if I could edit the title I would. If anyone wants to be specific about NetBeans I welcome that too.
    Edited by: fiebigc on Jun 20, 2008 5:57 PM
    Create a class library.
    Write your code, compile it to .class files, put those class files in a .jar file and include the jar file in the classpath whenever you want to compile a project against it.

  • Now that iCloud has done away with galleries, how can we share as I did with MobileMe? How can we sync non-Apple email accounts across multiple computers?

    Now that iCloud has done away with galleries, how can we share as I did with MobileMe? How can we sync non-Apple email accounts across multiple computers?

    You will need to find a third party solution for online storage in order to share things like photos with others. Some popular solutions to this are dropbox and sugarsync.
    You cannot sync non-iCloud email accounts across your iOS devices and computers unless they are IMAP accounts like iCloud. If they are IMAP accounts, you will do it in the same way as you have always done.

  • Joining multiple tables across multiple data sources in MYSQL throws error

    Hi all,
    I have to join tables across multiples MYSQL databases
    eg :
    Table T1,T2 from DB1
    Table T3 from DB2
    Columns from T3 are aggregated ( dimensional column ).
    Hence when i query using oracle answers ( say i have columns from T1,T2 and T3 ) , OBIEE tries to a query DB1 by having NULL for columns in T3
    It uses cast(NULL as INTEGER ) for columns from T3 . But MYSQL throws an error because "cast(NULL as INTEGER )" is not supported by MYSQL.
    I tried executing the query generated by OBIEE manually , if i try giving cast(NULL as SIGNED INTEGER ) , it works.
    pasting the query for reference
    select distinct D1.c2 as c1,
    D1.c1 as c2,
    cast(NULL as INTEGER ) as c3
    from
    (select distinct T87.title_id as c1,
    T59.asin as c2
    from
    print_book_catalog T59 left outer join
    title_authority T87 On T59.asin = T87.asin
    where ( T59.asin = '0345378911' )
    ) D1
    I am not able to find any config file to set this property ( and use signed integer instead of integer ) . Even DBFeatures.INI does not have relevant information.
    Can someobody please help me solve this problem.

    Stijn,
    Thank you for the article link. That was very helpful! It seems that I had a few things off as you do need the "This source should be combined with other sources at this level." checked. In my two table source columns for DATA_SOURCE I defined a literal ('086496' and '085597' for the other) in the Column Mapping tab. I pasted the following in the Fragmentation content, checking the "This source..." box on the Content tab:
    eSIS.SANDBOX4_SCHOOLS.DATA_SOURCE = '086496'
    And pasted the following into the WHERE clause, checking "Select distinct values" on the Content tab:
    sandbox4."".OBIEE.NWOCA_SCHOOLS.SCHOOL_CODE = VALUEOF(NQ_SESSION."SCHOOL") AND sandbox4."".OBIEE.NWOCA_SCHOOLS.DATA_SOURCE = VALUEOF(NQ_SESSION."GROUP")
    This took care of my user's security, utilizing the session variables in the WHERE clause. I am now able to generate reports that only one user can access from one data source and share that same report with another user who can only see data from the other data source.
    Many thanks!!!

Maybe you are looking for

  • Can I use a 3TB Hard Drive in my iMac mid 2010 27" ?

    I am updating my system with SSD and I want to replace the stock HD with a 3TB Hard Drive. It's an Hitachi HD.

  • How to call the form bean value on jsp withthe help of jstl tag

    hi all friends i am working in struts & i use jstl tag in jsp. i have one problem rise is how to call the form bean value in jsp page by using jstl tag. i now how to retrive the value through jsp:logic eg. <logic:empty name="userListForm" property="u

  • I facing this error ORABPEL-05250

    Hi all, I am facing the below error. I restarted the server and deployed again, even then it is not working. [11:37:29 AM] Error deploying archive sca_CorrelationSet_AsynchronousService_rev3.7.jar to partition "default" on server soa_server1 [http://

  • Anyone know what to do ?

    I recently got a Brother MFC-J4610DW for christmas and when attempting to hook up the wireless printing realized that the CD-ROM doesn't support OS X 10.8.5. Does anyone know what I need to download from the Brother Website, or Apple to fix this prob

  • 2 Arch boxes, 1 Home

    Hi All I have 2 partitions each with arch installed, one for general stuff & one for development & testing, but each uses the same home partition.  Is there a way that i can use different settings in .xinitrc based on which version of arch i am booti