Hi Marc. 

No,  I didn´t take a look at the Streamflow implementation, thanks for the 
pointer. I just had a look at it, and it seems like I have a similar setup in 
my application, except for the eager upgrade of entities in 
StartupMigrationService (which was a nice touch). But I could not find any 
usage of the MigrationOperation interface in that code either. That is the 
interface I have a hard time figuring out how to use.: 

public interface MigrationOperation
{
    void upgrade( StateStore stateStore, Migrator migrator )
        throws IOException;
        ... 
}

The StateStore interface only has one method:
 JSONObject getState( String id ) throws IOException;
This method expect me to know the id of the object that I am looking for, but 
the problem is there does not seem to be any way to find this information. Does 
anyone have an example of how to use the MigrationOperation interface?

Thanks. 


Best regards
Webstep AS
 
RONNIE NESSA  |  Senior Consultant
Mob : +47 970 69 512  | [email protected]
www.webstep.no

Den 26. okt. 2010 kl. 23.29 skrev Marc Grue:

> Hi Ronnie,
> 
> Have you checked out the migration implementation in Streamflow? If not, get 
> the code here:
> 
> http://waybuild.gotdns.com/nexus/content/repositories/snapshots/se/streamsource/streamflow/streamflow-web/1.2-SNAPSHOT/
> 
> and look for
> 
> se.streamsource.streamflow.web.assembler
> se.streamsource.streamflow.web.application.migration
> (and possibly more files...)
> 
> Hope that helps
> 
> Cheers,
> Marc







_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev

Reply via email to