Integrating external service in Lagom - scala

I used following link to integrate Lagom Unmanaged External Service into my project
https://blog.knoldus.com/2017/08/17/integrating-unmanaged-service-in-lagom-with-scala/
I'm struggling with this tutorial for 2 days with no luck and keep getting UnserializableException.
Hope someone could help me with it

I have a lot of trouble using mentioned tutorial to implement external service. finally I found solution for that so I created a simple project that show you how to use external service in Lagom
you can check it out from below link:
https://github.com/navabi/lagom-unmanaged-service-example
Don't hesitate if you have any further questions.

Related

Accessing Google Cloud Pubsub over HTTP 2 using grpc and node js

I am trying to use grpc with google cloud pubsub in nodejs but I am unable to understand how it works and how it is implemented there are no samples in nodejs and documentation is not clear for grcp.
There are only function in documentation
I have seen many links but I found nothing
I don't understand:
1) I have to use which library to use its package in .proto file and how to require/install it?
2) Where do I have to give my projectId or service file path?
I want some guidance or it will be great if there are any samples in nodejs.
Thanks.

get started with wildfly confusing

Can anyone suggest a good tutorial how to get started with a JEE application using WildFly server?
I am little confused right now cause at first I decided to start with an official website of the wildfly.
I found some guide links in there and seems like a half of pages are not found or missed.
For example, they have a Getting Started Developing Applications Guide link, when I go there there is another one link which leads to the github page and returns 404 page.
Ok then, i wen to github page with documentation and found following section which describes a list of quickstarts.
So as it says
Quickstarts with tutorials in the Get Started Developing Applications are noted with two asterisks ( ** ) following the quickstart name.
But again if you go to this link it is not found as well and so on.
To be honest I am kind of tired of this confused documentation so I am looking for a best approach how to get my JEE application up and running using WildFly as a server container.
So any suggestions would be really appreciated! Thanks in advance.
If you want to get started with Java EE then have a look at the Java EE 7 tutorial.
If you're looking to just start WildFly so that you can deploy an application you simple download the zip, extract it and use either bin/standalone.sh or bin\standalone.bat to start it. You can get further information about getting started with WildFly here.
The quickstarts are good examples of some simple applications that can be deployed. The README is pretty descriptive on how the quickstarts themselves work, but isn't meant to be a Java EE 7 tutorial.

How to deploy a scala play 2 app in OpenShift?

Been googling around for some time already.
I have some java, nodejs, php, etc. applications deployed in openshift, and I want to deploy a scala play2.3 app now. I'm starting a new project and I really want to write it in scala with play.
I need either a way to deploy a play 2.3 app in openshift, or another free hosting service that provides the same tools.
Thanks in advance!
Regards
as i know Heroku hosting service let you deploy scala-play application. also it seems that OpenShift also provides the same functionnality.
You may try following QuickStart: https://hub.openshift.com/quickstarts/198-play-framework

Accessing JBoss 5 EJB3.0 from JBoss 7.1 EJB3.1

I have a bunch of services (EJBs, remotem stateless) running on JB-AS 5.1.0. Now I have a new AS7.1 on which I develop new Services (JEE6, EJB, CDI, ...)
I want to access the AS5.1 Services via remote JNDI.
Has anyone done this before and can help? I need my JEE6-Beans to have access to the AS5.1 client-jars, so I am trying to add them to ear/lib or create a module containing the jars, but so far without luck ...
The best solutions I have seen so far can be found here. You can follow this forum for more information.
Please post your findings here so others can help / benefit.
Good luck!

Trying to create Web Service client in Eclipse

I have followed the small tutorial for creating a web service client in eclipse:
http://px.pats.no/px/Eclipse_tutorial.html
However, I relaized that I do not have the following classes which I believe is used to access the web services. I am getting an error message.
import org.csapi.www.schema.parlayx.common.v2_1.PolicyException;
import org.csapi.www.schema.parlayx.terminal_location.v2_2.LocationInfo;
import org.csapi.www.wsdl.parlayx.terminal_location.v3_0.service.TerminalLocation;
import org.csapi.www.wsdl.parlayx.terminal_location.v3_0.service.TerminalLocationServiceLocator;
I would really appreciate any help. Thanks in advance!
You need to add 2 jars of parlays in your application.
You might be having them already if you are tutorial has mentioned it or alternatively you can download it from :
http://www.findjar.com/index.x;jsessionid=96A5E1162D798BCF3CB77305955A359E?query=parlayx
or [http://www.parlayx.com/][2]
[2]: http://www.parlayx.com/
do watch out for versions of jars as package/class names might be different and you will have to change them accordingly
I've found this tutorial useful. It uses Axis for the client.