掲示板

Consuming services of a portlet

thumbnail
7年前 に Tina Agrawal によって更新されました。

Consuming services of a portlet

Expert 投稿: 297 参加年月日: 08/01/03 最新の投稿
Hi All,

I have 2 portlets. Portlet Producer and Portlet Consumer. Portlet producer has defined some services using the service-builder. It is connecting to a third party DB.

Now when my Portlet Consumer is trying to invoke those services I am getting an exception - "Invalid object name 'people'"

The strange thing is it doesnt give any error for the finder methods generated by Liferay. It gives this error only when the method is using custom-sql.

Regards,
Tina
thumbnail
7年前 に David H Nebinger によって更新されました。

RE: Consuming services of a portlet

Liferay Legend 投稿: 14919 参加年月日: 06/09/02 最新の投稿
Sorry, Tina, you'll have to provide some more details about what is going on (stack traces, custom sql, etc.).

If I'm just guessing I would wonder if you're pulling in the right session when invoking the custom sql, meaning that it is executed against the liferayDataSource instead of your external data source, but this is really only a guess.





Come meet me at the LSNA!