JAXB: Shared objects across multiple xsds

Hi all,
Have three xsd files which all contain a few shared classes, I use xjc to put each one into a different package, and then of course they're incompatible with each other. I've tried placing all generated code in one package but the object managers aren't created properly. Also tried creating a base class and extending each shared class from there but that didn't work either.
Does anyone know the best way to do this without manually modifiying the xml?
Grateful for any help,
Many thanks,
Chris.

That's too bad. Can't you record the update all function, create a batch, and run through all the psd files?
Btw, the Photoline betas now also include a placeholder layer that instantly updates when the user changes the externally linked file(s). If the file with the externally linked content is open while changing the file(s), Photoline automatically senses the change, and will update accordingly. No need for an update function.
I wonder if the Photoshop devs could include a similar function for their linked smart objects. It would simplify life.

Similar Messages

  • Sharing portlets across multiple portal applications

    Hello all,
    I have a single enterprise application that consists of several portal web applications. Most of these portal web applications have common portlets within their codebase. Is it possible to share portlet code across multiple web applications?
    Thanks

    No, not possible, in the same way that sharing JSPs and Pageflows wouldn't be possible across multiple webapps. You can, however, have multiple portals within one Portal webapp, and then you could share portlets and portlet resources amongst those portals.
    George

  • Local Shared Objects and multiple SWFs: mutexes necessary?

    I will have multiple SWFs on a single web page, each reading
    and writing the same SharedObject, which may be up to 100K in size.
    Will I need to create some sort of mutex scheme to ensure that one
    SWF isn't writing while another is reading, or do all SWFs on a
    page essentially run as a single-threaded application?

    >1) I don't think a SharedObject.flush is synchronous.
    I believe it is, as long as you're not attempting to write
    more data than the user has set for the Local Storage limit.
    http://livedocs.adobe.com/flex/3/langref/flash/net/SharedObject.html#flush()
    You'll note that flush is described this way: "Immediately
    writes a locally persistent shared object to a local file", and if
    it returns "SharedObjectFlushStatus.FLUSHED" that means that "The
    shared object has been successfully written to a file on the local
    disk". So I'd say that the normal operation of flush() is
    synchronous. However, the SharedObjectFlushStatus.PENDING state
    means that we've exceeded the limit set by the user, and are
    waiting for them to allow or disallow it. I believe (strongly) that
    that's the only case in which a netStatus event is sent.
    Do you read this differently?
    As far as multiple SWFs running as cooperative or preemptive
    multitasking processes, I'd really like to know the answer, but it
    probably doesn't matter. The more I read and think about this, the
    more it seems to me that Adobe has to prevent simultaneous reads
    and writes to a single Shared Object from taking place, as one use
    of it that I've read about is to share data between SWFs. For
    example:
    http://www.devarticles.com/c/a/Flash/Communication-and-Security-with-the-Flash-Communicati on-Server/1/

  • One shared object among multiple applications

    How would I enable a shared object to be used by more than one game? I have tried doing SharedObject.getLocal("ID","/"), but they still seem to have seperate shared objects, both of these applications have seperate domains (com.domain.app).

    try it.  but i suspect those will look like different domains.
    you could use:
    com.mydomain.games/game117 for your game117's main swf
    and
    com.mydomain.games/game2245 for your game2245's main swf

  • Sharing object across 2 different web application

    Hello,
         I do not know if this is a right place to ask this kind of question...
         I have two different web applications running on 2 different tomcat servers.
         One of them creates one object ( say myComplexClassObject) which is serializable..
         and I want to share this object in another web applications.
         Both the apps are developed using JSP and servlets.
         Is there any way, I can make this object available in another application ?
         As the request object can not be used across 2 different contexts, I can not set it as attribute on request.
         I tried serializing myComplexClassObject in some test.dat. Problem going by this way is that
         how do I send this file to another application ?
         What I did is as follows....
         In the first app , I created the object and serialized it in one file test.dat. In the same app I read
         test.dat and send the content as query parameter to a JSP in another app. That JSP collects all the query parameters
         and constructs a big string out of it and then writes it to a file, test2.dat and tries to deserialize this.
         File sizes come out to be same. But it gives me StreamCorruptedException.
         Any idea, where I am doing wrong ? or any other way to share this object or to send the file to another app?
         I can not use FTP for some reasons. Size of the test.dat file is more than 10 KB.

    Some possible solutions:
    Use a webservice calls to pass the object,
    Use JAXB to convert the object to XML, pass the XMLover HTTP or a socket and use JAXB to convert the XML back into an object.
    Store the object as a blob in a database.
    Store the object in a Java aware database that can handle Java objects.
    Store the data in the object in a database.
    I am curious as to what information ot functionality is contained in this object that you feel the need to pass it between two servers.

  • Why doesn't Screen Sharing work across multiple displays anymore in Mavericks?

    Hey Guys,
    I'm having a problem with Screen Sharing in Mavericks. It wasn't a problem in Mountain Lion, so I'm wondering if you could help me.
    I use a Mac Pro with multiple displays to connect to another Mac Pro with multiple displays. Here's how it looks at first:
    Two remote desktops shown in one window on one display locally. (Note: there are two different displays connected to this Mac Pro.)
    In Mountain Lion, I used to be able to scale this up across displays. When I do that now, the remote desktop scales down to the lower-left corner. Observe:
    When I mouse over it, there's some screen tearing (artifacts):
    Any ideas?
    Notes:
    Yes, I've Google'd it.
    I don't have Mavericks' multi-display support enabled. I disabled it to spread out Avid Media Composer and Adobe After Effects usage.
    Thank you,
    Isaac T.

    (bump)

  • Shared objects across JVMs?

    I'm sure this topic must come up fairly frequently, but try as I might, I couldn't find a satisfying answer for what I'm looking for.
    I have an object that loads a very large in-memory datastructure from disk early in its lifetime, after which time the datastructure is read-only.
    My application runs a number of different JVMs on my machine, and each of these JVMs has to load the same datastructure, wasting time and immense amounts of memory.
    I know I can likely improve the load time by storing a serialized version of the object itself on disk, but that doesn't help with the more serious problem: the memory usage.
    Any suggestions for a good, lightweight way to share this read-only memory across the JVMs?

    dougcook wrote:
    Brynjar wrote:
    One question though, is something preventing you from just using a database to store and serve this structure?Mainly performance. The structure gets accessed an unbelievable number of times inside an already compute-bound bit of code (that takes days to run as it is). That would also be my concern with RMI; you're right, I could serve up individual requests for bits of data (looking much like a database), but then I'd worry that the overhead of RMI would kill me. Thus the hope that I can somehow just share the read-only memory between JVMs.
    Edited by: dougcook on Feb 8, 2009 9:54 AMIf you need fast access to all of the structure in multiple applications concurrently, then I think you're out of luck using RMI as well, or any other socket based communication for that matter, for the same performance reason. How large is this structure and how is is currently loaded? Also, do the applications need to be separate? You would be able to share the memory if they were all running within the same jvm.

  • Sharing Library across multiple machines

    I have a shared network drive in my house and want to have multiple computers (two Macs and one PC) all have access to the same library. I have all of the machines pointing to the same mucis folder so that is not a problem.
    I would like to be able to add music to the library from any of the machines but then be able to update the individual iTunes screens to show all of the music in the folder.
    After putting in several hundred songs and going to each machine and using Add Library (Add Folder to Library on the Windows PC), I now find that I have duplicated the MP3 files in the album directories. The iTunes screens on each computer only shows the songs listed once but the files are duplicated.
    There has to be a way to do this without duplicating all of these files.
    Thanks for any suggestions.
    David

    David,
    there is no auto-sync feature build-in into iTunes.
    As a workaround when adding/importing music put those tracks on a seperate playlist (or use a smart playlist) and export this playlist to a shared folder.
    Then import this playlist on your two other computer.
    To avoid dupes disable in iTunes Preferences Advanced "Copy files to iTunes Music Folder ...."

  • JAXB parser fails on multiple xsd files in same namespace

    I am having a problem with JAXB parsing a schema that imports 2 schema files from a similar namespace. Lets say we have 3 schema files A.xsd, B.xsd, and C.xsd as follows:
    A: <xsd:schema xmlns:xsd="<http://www.w3.org/2001/XMLSchema> targetNamespace="A" xmlns="A" xmlns:z="Z" xmlns:jxb="<http://java.sun.com/xml/ns/jaxb> jxb:version="1.0" elementFormDefault="qualified"> <xsd:import namespace="Z" schemaLocation="B.xsd"/> <xsd:import namespace="Z" schemaLocation="C.xsd"/> </xsd:schema>
    B: <xsd:schema xmlns:xsd="<http://www.w3.org/2001/XMLSchema> targetNamespace="Z" xmlns="Z" elementFormDefault="qualified"><xs:element name="BElement"></xs:element></xsd:schema>
    C: <xsd:schema xmlns:xsd="<http://www.w3.org/2001/XMLSchema> targetNamespace="Z" xmlns="Z" elementFormDefault="qualified"> <xs:element name="CElement"></xs:element></xsd:schema>
    The problem we have is that JAXB compiler fails during parsing and complains about an unresolved element (z:CElement) in the second schema (C.xsd) for the single namespace (Z). The complaint is reversed if we flip the order of the imported schema. The exact error is as follows: [ERROR] src-resolve: Cannot resolve the name 'z:CElement' to a(n) element declaration component.
    So the question is, how do we get JAXB to permit the import of 2 or more elements that are defined in individual schema files that belong to the same namespace.
    Thanks for your support,

    Greg,
    I believe that Xerces does not (and is not required to) parse anything other than the first <import> for a given namespace. I think what you are seeing is that Xerces is ignoring the second import for the "Z" namespace and therefore, the JAXB schema compiler is complaining that it can't resolve the element ref.
    Others on this thread may have already covered these work arounds, but here goes:
    1. you can disable JAXB's schema validation check by passing "-nv" to xjc or <arg value="-nv"/> to the ant task. This should allow XJC to get past the xerces behavior and generate proper code. In the current codebase, we are realying on some xerces internals to perform schema validation within XJC.
    2. you might also be able to create another schema file, say Z.xsd, that <includes> all of your schemas belonging to that namespace. Then you can bring all of them in with a single <import> of Z.xsd in A.xsd.
    I haven't tried it, but I think it'll work.
    Greg, FYI we have a very active developer community on Java.net - that's the best place to post these kinds of questions. We (the JAXB team) don't monitor the developer forums as closely. Check it out:
    http://jaxb.dev.java.net
    and join the "users" interest list:
    https://jaxb.dev.java.net/servlets/ProjectMailingListList
    Thanks,
    --Ryan Shoemaker, Sun Microsystems, Inc.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Sharing object among multiple jvms

    I have an application running on 3 seperate machines. I want all 3 machines to share common object, how, if we exclude databse?

    meetsiby wrote:
    To avoid overload on jdbcRealizing of course that sharing means that some sort of communication and storage must take place regardless right?
    So if you don't "overload" jdbc then you are still going to be using something else which involves the same general concepts of jdbc.
    At any rate you could look at RMI(part of java) or memcached (open source distributed hash).

  • Sharing objects across Tabs of a JTabbedPane

    I don't know whether this is an Object-Oriented design question or a JTabbedPane question.
    I'm pretty new to Java, so be patient!
    I wish to have a JTabbedPane with a tab to do 'Import' of data, and a tab to do 'Export' of data (the SAME data which was imported).
    How do I share the data between the 2 tabs? It seems the data belongs at the JFrame level, but then how does the data in each tab access it? In other languages I would pass a reference to the data object in the window to each tab. Or how do I get (or set) the data when the tab changes? And how do I know when the tab changes?
    I know if I had one tab with an import/export functionality then I could declare the Collection within that panel.
    Help!!!
    Thanks ;)

    here's a starter
    import javax.swing.*;
    import java.awt.*;
    import javax.swing.event.*;
    class Testing
      int selectedIndex = 0;
      public void buildGUI()
        final JTabbedPane tp = new JTabbedPane();
        tp.setUI(new javax.swing.plaf.metal.MetalTabbedPaneUI(){
          protected void paintTab(Graphics g,int tabPlacement,Rectangle[] rects,int tabIndex,Rectangle iconRect,Rectangle textRect){
            if(tabIndex == selectedIndex) super.paintTab(g,tabPlacement,rects,tabIndex,iconRect,textRect);
        tp.addChangeListener(new ChangeListener(){
          public void stateChanged(ChangeEvent ce){
            selectedIndex = tp.getSelectedIndex();
        for(int x = 0; x < 5; x++) tp.addTab(""+(char)(x+65),new JPanel());
        tp.setPreferredSize(new Dimension(200,200));
        JFrame f = new JFrame();
        f.getContentPane().add(tp);
        f.pack();
        f.setLocationRelativeTo(null);
        f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        f.setVisible(true);
      public static void main(String[] args)
        SwingUtilities.invokeLater(new Runnable(){
          public void run(){
            new Testing().buildGUI();
    }

  • Sharing folders across multiple Macs

    Other than an old post about now-defunct iDisk, I don't seem to easily find an answer to this on the boards so am posting my own question.
    I have two Macs – an old MBPro and a newer iMac. The laptop cannot run Mountain Lion as it's too old; both devices now run Lion. Now I want to solve document sharing issues so I don't have to manually manage synchonization.
    I want the content of certain folders on my iMac to be available to both devices (and preferable my iPad/iPhone as well) anywhere I go and have Internet access. Lacking Internet access, I want the last synced version available, and when I'm online again, any changes will be synced back to the cloud.
    I have iCloud service (25GB for $40/year) as well as 100GB Dropbox subscription that costs me $120/year.  I don't think I need both(?)  Using more iCloud storage means that I'd pay $100/year for just 50GB.  So it seems Dropbox is the better deal at least space-for-money-wise.  The initial folder I want to share is about 7GB but I can see this growing as I sync more things.
    I cannot see using simple file sharing from the iMac as it isn't always running; that is, it might be asleep or even powered off.
    Anyone willing to share the "best practice" approach to getting this done in a secure way that doesn't have me worrying about some third-party accessing all the documents?
    Thank you in advance.

    You can use Sugarsync for this, it is free (up to 5GB) and inexpensive if 5G is insufficient.
    Once installed you can choose any combination of folders from one machine for replication on another. Changes made on either machine are reflected on the other. It will work on Macs, PC's IOS and Android devices.

  • Distribute Objects Across Multiple Pages

    HI
    I want to drag a *lot* of images into a Page Layout and have Pages create enough pages to distribute them evenly.
    I have no dead how many pages I'll need .... I expected to be able to add them to a page, the "Distribute Vetically" to have the app make as many pages as required. But it piles the images on top of each other!
    Any Ideas?
    Thanks
    Lee

    Well not necessarily one image per page .... if 2 fitted per page that would be fine. But I needed to avoid placing hundreds of images each onto a spot on a page. It would have taken hours.
    I was hoping pages could didtribute the images for me across as many pages as required. I thought my question conveyed that. Sorry if I confused the issue though.
    As it turnred out the result from PDF Pen was fine ...
    Thanks
    Lee

  • Sharing scripts across multiple computers

    Hi,
    I'm currently working on customizing Bridge (ie. custom file info panel, start-up scripts), but I would like to share the changes I make with a group of users.
    So far, what I've been doing is modifying a start-up script or custom panel, and then sending it to each person, and telling them where on their system to put the file. It would be much easier to have a shared instance of the file, so I could just modify that file directly. Is this possible? (We all have access to a shared drive, but I can't figure out how to get something on that drive to be detected by Bridge)

    Wayne,
    I'm pretty sure there is no way to redirect Bridge and File Info to look elsewhere for custom panels.
    One thing you might consider doing is publishing the shared panels on a web or FTP server on your intranet or on the internet. You could then use the JavaScript web and ftp access tools to write a script that would synchronize the panels in the local folder with panels on the server.
    -David Franzen
    Adobe Bridge Quality Engineer
    Adobe Systems, Inc.

  • Azure newby! Persist an object across multiple Azure WCF Service Calls.

    I have created a small .NET Library (DLL) which does custom calculations and such.
    I would like to create an Azure WCF service which basically wraps this libraries API.
    The library, by necessity, is setup like an engine that must be initialized before use, so I don't want each and every service call to instantiate its own copy of the library. Is there a way to have the first call instantiate the library
    and then persist it somewhere so that other service calls will just use the same instance?

    Hello,
    We are researching on the query and would get back to you soon on this.
    I apologize for the inconvenience and appreciate your time and patience in this matter.
    Regards,
    Azam khan

Maybe you are looking for

  • Power consumption for 7100?

    Hi: Does anybody know what is the power consumption of the 7100 series device in the 'idle'  mode and 'call' mode? Can not seem to find this information.... Thank you

  • Work flow in pgms

    is there any way to find the work flow(pgm flow) in a java pgm. i have netbeans and edit plus.

  • Oracle Streams on Heterogeneous DBs

    I want to configure stream on HP TRU 64 Unix Oracle 9.2 DB onto Windows 2003 R2 DB V9.2 using my Vista desktop with 10g client. Problems I encounter 1) I see a broken link between the DB. 2) Primary DB on Unix is gathering LCR but is not enqueing in

  • Microsoft word, Skype, Safari quits

    Hello, I am a new Mac user, for some reason a week ago I started having problems with the Microsoft word, I can't open it. I can't open Powerpoint, Excell...etc. I can't even open any word docs. Now, Skpye started quitting, I can't open that either.

  • HTML tag checkers don't recognize my title tags, H1 tags, etc

    Hi, I am trying to check my title tags, meta tags, etc to make sure they are recognized by google crawlers. Every HTML checker site I use says I am missing all the tags for title, keyword, H1, description etc Yet when I view source on my site http://