We are deploying 2 applications which has a Class with the same canonical name (e.g. com.example.BusinessObject), we stored instances of this class to Business Repo, now every time I load the instances of BusinessObject, I see all instances from two different applications.

Is there any way to limit Business Repo only load instances from the current applications? Is it a bug in Ivy Engine related to this?

asked 22.01 at 03:58

vinh_'s gravatar image

vinh_
61226
accept rate: 50%

can you share the idea why you have duplicated that class? are you trying to implement a multi-tenancy approach with multiple apps? In my opinion a business data class should be very specific and bound to context of the actual project. So it seems strange to me to use the same class in separate projects...

(22.01 at 04:17) Reguel Werme... ♦♦ Reguel%20Wermelinger's gravatar image

I share the ideas of reguel. But at the end this is a bug. we use the same index for the same java class all over the engine. we should split this index further by application. i already did some research some times ago. but nothing is planned at the moment to fix this.

(22.01 at 05:06) Alex Suter ♦♦ Alex%20Suter's gravatar image

We have a core module which has the BusinessObject, then we have many other module provide functionality and reuse the BusinessObject from core module.

We have two branch of applications which have different set of functionality but depend on the same core module.

We deploy that two set of modules on two separate applications on the same Ivy Engine and face the issue.

(22.01 at 05:09) vinh_ vinh_'s gravatar image
Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "Title")
  • image?![alt text](/path/img.jpg "Title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×103
×8

Asked: 22.01 at 03:58

Seen: 166 times

Last updated: 22.01 at 05:09