Re: Global data transfer objects in a crux app

2021-12-01 Thread Roman Isitua
I have started development using crux with modules. My current observation
is that crux initialize classes defined in the beans.xml of the child
module.


To share data between modules e.g. parent and child are recently discovered
the local shared object functionality.  I tried it, it works.

You comments raises a few concerns for me namely:

1. Are you suggesting I should not make the app multi module ? If yes what
is the alternative ?

2. What's the difference between debug and release builds ?


3. Can I run the app in production using the debug builds ? The app will be
in testing phase and beta phase for a while before being released.


On Wed, 1 Dec 2021, 20:58 Greg Dove,  wrote:

>
> It is fair to say that Crux has not been tested with modules. But also
> current modules support is not yet reliable and needs additional work
> (community contributors are definitely welcome) - they might work for debug
> builds, but they are not currently a working solution for release builds.
>
>
>
>
> On Thu, Dec 2, 2021 at 7:03 AM Roman Isitua  wrote:
>
>> My application is  multi module and crux based. In my main module, I have
>> a class ConfigData that holds app configuration.  The ConfigData class is
>> declared in the crux beans.xml file.  This class is initialized during
>> application start up. A call to a web service fetches the data and
>> populates this class.
>>
>>  Whenever the app switches modules from the main module (i.e. parent crux
>> module) to another module ( i.e. a child crux module), I notice that the
>> configData instance is null. This happens even when I have injected the
>> configData instance in the class that uses configData..
>>
>> So my questions are:
>>
>> 1. How can an instance initialized in a parent crux module be referenced
>> in a child module ?
>>
>> 2. How can I share data between modules in a crux app ?
>>
>>
>> Regards,
>>
>


Re: Global data transfer objects in a crux app

2021-12-01 Thread Greg Dove
It is fair to say that Crux has not been tested with modules. But also
current modules support is not yet reliable and needs additional work
(community contributors are definitely welcome) - they might work for debug
builds, but they are not currently a working solution for release builds.




On Thu, Dec 2, 2021 at 7:03 AM Roman Isitua  wrote:

> My application is  multi module and crux based. In my main module, I have
> a class ConfigData that holds app configuration.  The ConfigData class is
> declared in the crux beans.xml file.  This class is initialized during
> application start up. A call to a web service fetches the data and
> populates this class.
>
>  Whenever the app switches modules from the main module (i.e. parent crux
> module) to another module ( i.e. a child crux module), I notice that the
> configData instance is null. This happens even when I have injected the
> configData instance in the class that uses configData..
>
> So my questions are:
>
> 1. How can an instance initialized in a parent crux module be referenced
> in a child module ?
>
> 2. How can I share data between modules in a crux app ?
>
>
> Regards,
>


Global data transfer objects in a crux app

2021-12-01 Thread Roman Isitua
My application is  multi module and crux based. In my main module, I have a
class ConfigData that holds app configuration.  The ConfigData class is
declared in the crux beans.xml file.  This class is initialized during
application start up. A call to a web service fetches the data and
populates this class.

 Whenever the app switches modules from the main module (i.e. parent crux
module) to another module ( i.e. a child crux module), I notice that the
configData instance is null. This happens even when I have injected the
configData instance in the class that uses configData..

So my questions are:

1. How can an instance initialized in a parent crux module be referenced in
a child module ?

2. How can I share data between modules in a crux app ?


Regards,


Re: referencing a class from a sibling module

2021-12-01 Thread Roman Isitua
It appears the only way out is to create a stand alone royale library.

I will create the library implement the classes I need then declare the
library as a dependency in every module that needs it.

If there is an alternative way of achieving this will appreciate if someone
can share with me.


Regards,


On Thu, 25 Nov 2021, 20:17 Roman Isitua,  wrote:

> I am working on a maven based multi module royale project. The project
> uses crux. I created some classes in the main module. These classes were
> declared in my crux config. I want to reference these classes in the child
> module.
>
> How can I register the main module as a dependency to the child module ?
> I need to do this so I can reference these classes in the child module.
>
> Regards,
>