RE: How to use custom services in liferay module ext

Mushadiq Shaik, modified 6 Years ago. New Member Posts: 18 Join Date: 2/2/16 Recent Posts
Hi,
​​​​​​​
How to use liferay custom or default services in liferay module ext.

Thanks in advance.
thumbnail
Andrew Jardine, modified 6 Years ago. Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Hi Mushadiq,

I haven't tried it in an EXT to be honest, but I am wondering if you can use the ServiceTrackerUtil to look up the service? Something like this?
​​​​​​​ServiceTrackerList<myservice, myservice> serviceTrackerList = ServiceTrackerListFactory.open(bundleContext, MyService.class, filter);</myservice,>
thumbnail
Andrew Jardine, modified 6 Years ago. Liferay Legend Posts: 2416 Join Date: 12/22/10 Recent Posts
Hi Mushadiq,

I haven't tried it in an EXT to be honest, but I am wondering if you can use the ServiceTrackerUtil to look up the service? Something like this?
​​​​​​​ServiceTrackerList<myservice, myservice> serviceTrackerList = ServiceTrackerListFactory.open(bundleContext, MyService.class, filter);</myservice,>