Vista combinada Visión Plana Vista de árbol
Discusiones [ Anterior | Siguiente ]
toggle
Vijay Peddareddy
Is Dynamic data source switching possible in Liferay ?
9 de abril de 2012 13:23
Respuesta

Vijay Peddareddy

Ranking: New Member

Mensajes: 10

Fecha de incorporación: 14 de marzo de 2012

Mensajes recientes

Hello,

I've a Portlet deployed on 3 different pages on 3 different Organizations as shown below:

Cust1 Org > Page 1 > GetMyNamePortlet
Cust2 Org > Page 1 > GetMyNamePortlet
Cust3 Org > Page 1 > GetMyNamePortlet

On click of "Get My Name" button available in the portlet, it should dynamically connect to the Schema it is mapped to and retrieve the name from that Schema. I'm trying to achieve this using Dynamic Data source routing concept.

Environment is: Liferay 6.1 + Tomcat 7 Bundle

Please help me out if any one already did this or please share any information whether it is possible or not.

Thanks a lot in advance.

Regards
Vijay Peddareddy.
Vijay Peddareddy
RE: Is Dynamic data source switching possible in Liferay ?
10 de abril de 2012 9:38
Respuesta

Vijay Peddareddy

Ranking: New Member

Mensajes: 10

Fecha de incorporación: 14 de marzo de 2012

Mensajes recientes

Hello,

Could someone please help me whether this is possible in Liferay ? If it is, please share your thoughts.

Thanks a lot in advance.

Regards
Vijay Peddareddy.
Vijay Peddareddy
RE: Is Dynamic data source switching possible in Liferay ?
24 de abril de 2012 8:35
Respuesta

Vijay Peddareddy

Ranking: New Member

Mensajes: 10

Fecha de incorporación: 14 de marzo de 2012

Mensajes recientes

Hello,

Could someone please help me whether dynamic data source switching is possible in Liferay ? If it is, please share your thoughts.

Thanks a lot in advance.

Regards
Vijay Peddareddy.
David H Nebinger
RE: Is Dynamic data source switching possible in Liferay ?
24 de abril de 2012 9:27
Respuesta

David H Nebinger

Community Moderator

Ranking: Liferay Legend

Mensajes: 11112

Fecha de incorporación: 1 de septiembre de 2006

Mensajes recientes

'dynamic datasource routing' is not necessary for this implementation.

Add an organization id column to whatever table you're defining in service builder.

Portlet would pass the org id for the current user/page/whatever to the SB call and you return the appropriate data.
Vijay Peddareddy
RE: Is Dynamic data source switching possible in Liferay ?
21 de mayo de 2012 13:53
Respuesta

Vijay Peddareddy

Ranking: New Member

Mensajes: 10

Fecha de incorporación: 14 de marzo de 2012

Mensajes recientes

David H Nebinger:
'dynamic datasource routing' is not necessary for this implementation.

Add an organization id column to whatever table you're defining in service builder.

Portlet would pass the org id for the current user/page/whatever to the SB call and you return the appropriate data.



Thanks for your reply David.

As per the requirement I'm not supposed to add "organization" id column.

Finally, I'm able to achieve this functionality using Service Builder. I'll post the solution asap.

Regards
Vijay Peddareddy.
Hitoshi Ozawa
RE: Is Dynamic data source switching possible in Liferay ?
21 de mayo de 2012 20:40
Respuesta

Hitoshi Ozawa

Ranking: Liferay Legend

Mensajes: 7949

Fecha de incorporación: 23 de marzo de 2010

Mensajes recientes

Just create a method in your impl to dynamically choose where to get the data based on organizationId send from the portlet.