belgattitude / pjb-starter-springboot

Easy starter to build a PHPJavaBridge server with custom dependencies and spring-boot
MIT License
4 stars 1 forks source link

Initial questions #1

Open elymatos opened 5 years ago

elymatos commented 5 years ago

Thanks for the great work! We are using php_java_bridge for many years in our main project (a php framework) basically to generate JasperReports and now part of the team is developing to SpringBoot. Have the two of them working together is great and open many possibilities for us. I'm just discovery pjb-starter-springboot and I am in the first tests. Just to know I'm not doing something wrong (i'm using Windows8 and Java8): a) I get no ./build/libs/JavaBridgeStandalone.jar after gradlew build b) I had to make small changes to example program, basically cast and typo): echo (string)$system->getProperties()->get('java.vm.name');

If we want to distribute our app with the pjb-starter-springboot, the correct way is to fork the repo and add a folder with our app? Thanks once more, Ely

belgattitude commented 5 years ago

Hey just a quick answer

a) The latest commit should fix it:

https://github.com/belgattitude/pjb-starter-springboot/commit/c0e484546f5c17440f5f6e5310e6b35c472df659

b) Looks strange to me... It should be casted to string automatically. Are you using the reworked client : https://github.com/belgattitude/soluble-japha instead of the Java.inc ?

If we want to distribute our app with the pjb-starter-springboot, the correct way is to fork the repo and add a folder with our app?

Yes, this repo is more an example of registration. I don't use it in production, and I think springboot 2.0 needs to be tested. P/R are welcome.

basically to generate JasperReports

Yes that's pretty good. For prod in general I have a tomcat docker image. you can build it in a similar way that what I'm doing with webapp-runner on travis, have a look at some scripts here:

https://github.com/belgattitude/soluble-jasper/tree/master/.travis

I'm not advocating for this, but I'm used to play with

https://github.com/belgattitude/soluble-jasper

And Jasperstudio.

Most things works but haven't done the doc. Maybe a little overhead but it matches as much as possible the jasper api. Very easy for starting.

More frontend those days, but I can still help if my memory is good enough. So don't hesitate to ask.

belgattitude commented 5 years ago

Oups I just remembered this:

https://github.com/belgattitude/soluble-jasper/tree/master/tests/functional/Recipes

Not a doc but some nice examples