Hi All,
I'm having trouble wrapping my head around an issue I'm facing while loading
the same module twice into my main application.

I've got a module which takes a few arguments to load up property data.  If
I ask for a different set of data, the same Module class gets loaded, it
just makes different back end calls to populate its data.  My module is
located in a different project from my main application, so optimizing to
application isn't an option.  However, I am generating a link-report from
the main application, and then using load-externs on the module's compile.

1) I load up an instance of the module, and it retrieves data just fine.
2) I load up a second instance of the same module, but when the data is
returned, I get errors relating to the fact it's trying to set my data
response to a local VO Class which has already been instantiated from the
first module call.


I know I've got a shared code issue going on here, but can't figure this
out.  I've tried the following:

1) Placed all re-used VO files inside main application, generated
link-report, and referenced that link-report via load-externs on the modules
compilation.... then I set applicationDomain on module load to be
Application.currentDomain.

2) Placed all VO files inside module where they are actually used, and then
set applicationDomain to a "new ApplicationDomain()" instance to try and
sandbox their use.


Neither of these worked.... which is suffice to say, why this post is being
written.


Thanks in advance for help.


Brendan

Reply via email to