Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Modeling » MoDisco » PHP-Java migration
PHP-Java migration [message #575447] Fri, 30 July 2010 08:55 Go to next message
Andr is currently offline Andr
Messages: 13
Registered: July 2010
Junior Member
Hallo,

how would you migrate a PHP project to a Java project using MoDisco and other EMF based technologies? Is that Use-Case supported by MoDisco?

As far as I understand, I would take a PHP metamodel and transform it to a Java metamodel.

Thank you!

Kind regards,
André
Re: PHP-Java migration [message #575492 is a reply to message #575447] Fri, 30 July 2010 17:55 Go to previous message
Fabien Giquel is currently offline Fabien Giquel
Messages: 138
Registered: July 2009
Senior Member
Hi,

this use-case is not yet supported by MoDisco, since MoDisco does not
provide metamodels and discoverers dedicated to Php technology (such a
contribution would be welcome).

Yes, such a use case might be done, in some cases, with a transformation
from Php metamodel to Java metamodel. But it may require other metamodels :

PHP legacy agregates some Business logic (using php language) and some
UI logic (using html syntax & php language). It is convenient to
represent the two involved technologies with two metamodels. In Java
world, we may choose various corresponding technologies, e.g. JSP &
Java. So we may imagine a scenario like this :
-Discovery of PhpUI model and PhpScript model
-M2M -> IN : PhpUI model, PhpScript model OUT : Java model, JSP model
-M2T -> java and JSP files generation from Java & JSP models

Such a transformation is not easy to write, since the application
architecture may require some refactoring to fit with the target
platform --> it may be convenient to design it again at a more abstract
level, e.g. using a UML "PSM" representation. So a scenario of migration
may look like this :
-Discovery of PhpUI model and PhpScript model
-M2M -> IN : PhpUI model, PhpScript model OUT : UML model
-M2M -> INOUT : UML model
-M2T -> java and JSP files generation from UML model
-Completion of Java & JSP code (rewriting some operations in Java, ...)

Regards,
Fabien.


----------------------------------------------------
Fabien GIQUEL
R&D Engineer
Mia-Software
4, rue du Château de l'Eraudiere
44324 NANTES CEDEX 03
----------------------------------------------------
Previous Topic:KDM -> UML2 Conversion with Helios
Next Topic:PHP-Java migration
Goto Forum:
  


Current Time: Wed Oct 22 06:27:03 GMT 2014

Powered by FUDForum. Page generated in 0.26108 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software