Is this possible? (Distributed databases)

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Is this possible? (Distributed databases)

MarioF
Hi all,

In my project I have several partners, each of them have their own database with the products that they supply. So, is there any way that ofbiz can look in more than one database to present the products in the main web and in the search function?

If yes, can you point me a little? If no, would be this very difficult to code?

Thanks in advance,
Mario.

Reply | Threaded
Open this post in threaded view
|

Re: Is this possible? (Distributed databases)

MarioF
Any idea?

I have seen that for the search function the java code is this:

public static Map getProductSearchResult(HttpServletRequest request, GenericDelegator delegator, String prodCatalogId) {

...

ProductSearchContext productSearchContext = new ProductSearchContext(delegator, visitId);

List<String> foundProductIds = productSearchContext.doSearch();

...

I need that this function search in two (or more) DB. So, I need a way to pass to this function the address of the others DB, but how?


Thanks in advance.



MarioF wrote
Hi all,

In my project I have several partners, each of them have their own database with the products that they supply. So, is there any way that ofbiz can look in more than one database to present the products in the main web and in the search function?

If yes, can you point me a little? If no, would be this very difficult to code?

Thanks in advance,
Mario.