Compile java sources inside J2EE component

From: Stefan Siegl (Stefan.Siegl_at_gmx.de)
Date: 09/07/04


Date: Tue, 07 Sep 2004 09:39:13 +0200

Hello,

For my master thesis I have to create a customer relationship management
system (CRM). The final program should be a J2EE component. The
interesting part of this system is that the user can specify the data
schema (model) of the CRM system at runtime. To define this model I
created a metamodel. In order to allow an easy access to the model, I
will generate java source classes according to the model (that is
defined as instances of the meta classes). One problem is that the user
is allowed to change the model at runtime, meaning that the source code
files have to be recreated and compiled again.

So much for the introduction ;). After creating the source files I need
to compile them at runtime, is there a possibility to do so?

As I said before if the model changes, the new source code files need to
be compiled again. Is there a way to "unload" possible classes that were
created for the last model, so that there won't be a clash with the
newly created classes?

Any suggestions?
Best regards,
Stefan



Relevant Pages

  • Re: C++/TCL Need Solution to Compile Error c2784
    ... There's always the "Platform SDK" from MSDN if you need the window.h stuff, ... Since I'm using the Command Prompt rather than the GUI to compile the ... I then tried to compile your source code and I kept getting the same ...
    (comp.lang.tcl)
  • Re: Debugging Newbie Question
    ... The CLR does not understand this source code and so before it ... ASP.NET, however, ASP.NET will compile your page's source code and cache ... the debugger will have IL and x86 created from ... in release mode assemblies. ...
    (microsoft.public.dotnet.faqs)
  • Re: Debugging Newbie Question
    ... The CLR does not understand this source code and so before it ... ASP.NET will compile your page's source code and cache the result ... > does this so that a debugger can attach to the code and allow you to step ... > release mode assemblies. ...
    (microsoft.public.dotnet.faqs)
  • Re: creaping coupling......
    ... In C++ it would be trivial to break that source code dependency, ... When you compile a .java module, ... In Java and C# it's asserted at compile time. ...
    (comp.object)
  • Re: [Full-Disclosure] THCIISSLame exploit
    ... The whole idea was binaries vs source code. ... problem with people releasing exploits. ... Yes, but you are able to compile the exploit code yourself, are you not? ...
    (Full-Disclosure)