Giter Club home page Giter Club logo

Comments (6)

oanqa avatar oanqa commented on June 9, 2024 1

Is this helping ?

https://stackoverflow.com/questions/25495629/how-can-i-use-spring-boot-auto-configured-beans-in-xml-configuration-files

http://www.springboottutorial.com/spring-boot-java-xml-context-configuration

I've already tried to using @ImportResource and spring boot exited without any logs. Maybe i'll try again next time.

PS: is it relevant to use bean based annotations ?

So we must create class for the datasource adapter in spring boot and use annotation reflecting the xml right? i'll try it later

Thank you so much for your help.

from soluble-jasper.

oanqa avatar oanqa commented on June 9, 2024

Using the adapter is working if using tomcat to deploy JavaBridge and add WebService applicationContext bean manually to WEB-INF.
Are there some way to include the bean xml to springboot?
I'm already try to load it with @ImportResource and no result (i don't know spring or java stuff)
Just asking here if somehow you can help me to use the adapter. thank you

from soluble-jasper.

belgattitude avatar belgattitude commented on June 9, 2024

Using the adapter is working if using tomcat to deploy JavaBridge and add WebService applicationContext bean manually to WEB-INF.

Yes you can always add libraries in the WEB-INF folder... I'm not working with the bridge anymore, but generally I generates a full .war file with gradle.

As an example look at what I'm doing on travis:

https://github.com/belgattitude/soluble-jasper/blob/master/.travis/build_javabridge_jasper_war.sh

and the corresponding gradle config

https://github.com/belgattitude/soluble-jasper/blob/master/.travis/init.jasperreport.gradle

You can try to modify it, including local files or a repository.

Hope it helps

from soluble-jasper.

belgattitude avatar belgattitude commented on June 9, 2024

BTW, for spring boot have a look to

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

$ ./gradlew build -I init-scripts/init.jasperreports.gradle -I init-scripts/init.mysql.gradle

See some examples of init-scripts that can be used to include libraries:

https://github.com/belgattitude/pjb-starter-springboot/tree/master/init-scripts

from soluble-jasper.

oanqa avatar oanqa commented on June 9, 2024

We are using https://github.com/belgattitude/pjb-starter-springboot for building the java bridge server and we the the init-scripts. But we cannot add the beans xml of WebServiceAdapter to from the init-scripts (we don't know how to load it).

thank you for reply

from soluble-jasper.

belgattitude avatar belgattitude commented on June 9, 2024

Is this helping ?

https://stackoverflow.com/questions/25495629/how-can-i-use-spring-boot-auto-configured-beans-in-xml-configuration-files

http://www.springboottutorial.com/spring-boot-java-xml-context-configuration

PS: is it relevant to use bean based annotations ?
https://docs.spring.io/spring/docs/current/spring-framework-reference/core.html#beans-java-basic-concepts

from soluble-jasper.

Related Issues (5)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.