Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
For now I am fetching the Datasource properties from the application properties file in spring boot. I want to fetch the data source properties from the DS.xml file placed at the external location on the tomcat 7 server. I want this to be a JNDI based configuration. I am using the JPA repository so it possible to do this with minimum changes to the code.
You can do, but you need to run the application as below command:
java -jar -Dspring.config.location=<external-config-file> myBootProject.jar
please refer the bwlow url for details:
externalise guide URL
You can always use JNDI to configure your data-source with an
application server (like tomcat, weblogic) and then within your app
fetch that data-source and use it.
Some application servers like weblogic provides you a way to config it with GUI and some don't
Related
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 3 years ago.
Improve this question
I have a struts2 project that I launch with a jetty server. I would like to make a dockerfile allowing me to create a struts2 image (to be able to launch it with a compose docker), my problem is that I have the impression that there is no documentation about struts2 to create the dockerfile, would you have some tricks to propose to me? Thank you in advance for your answer
Struts is part of the application scope and shouldn't be packed in a docker container by itself. It's should be packed in the EAR or Spring Boot application (for example) you are working on. You have to deploy/add the EAR or Spring Boot application to the docker image.
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 4 years ago.
Improve this question
I want to use angular 4 with java as backend. What I need is a single war file.I dont want to run different server for front end and back end. I want that there will be single java war file so that I can deploy it on app server like tomcat or jboss.
Please suggest some approach. Your help is highly appreciated.
HI I have done this in my project and what can you do that when you take a build of your Angular2 application then after the build copy all the content from the build/install folder and paste it in your Java Work space as a static content inside WebContent folder.
Makesure that you correctly configured the url of the backend service in your angular code.
After that try to clean the tomcat server and then restart it.
I hope it will work.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 5 years ago.
Improve this question
I am new in Jhipster.I want to use both jBPM and Jhipster.I am not able to call even simple jbpm process using Jhipster.
Firstly I tried to run simple jbpm process through rest API call it gives me an error H2 datasource not defined.
At second time I tried to run simple jbpm process where I used persistance.xml for jBPM database connectivity then I got an error as No Persistence provider for EntityManager named org.concreatepage
Please help me to come out of it.
Thanks.
We implemented it, for one of my customer, so I can't share any code. But it is pretty simple.
All steps you can follow:
First, generate a JHipster project with simple configuration (no MongoDB, Cassandra, etc)
Look at the code at this repository https://github.com/mswiderski/jbpm-examples/tree/master/spring-boot-jbpm
Add dependencies, config xml files, etc.
Alternative solution would be to use Activi:
here the ticket: https://github.com/jhipster/generator-jhipster/issues/6454
here the module: https://github.com/Activiti/generator-jhipster-activiti
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 5 years ago.
Improve this question
I'm trying to develop an application with spring boot that generates an executable jar. And use database connections and use external properties Is this possible?
This link will be helpful. It depends on what build tool you are using.
https://spring.io/guides/gs/spring-boot/#scratch
For configurable properties , refer to application.properties file in spring boot.
https://docs.spring.io/spring-boot/docs/current/reference/html/common-application-properties.html
Start with Spring Initializr. I'd recommend using Gradle for your build.
https://start.spring.io/
Add JPA as a dependency. After downloading the project, add properties to the src/main/resources/application.properties file. Look at the following link for "spring.datasource" specific properties to configure your Database connection.
Running the following command will create an executable Jar in the build/libs folder.
./gradlew build
I'll need more information about your full intent if you want to "externalize" your properties. You can start here:
https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html
Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I want to publish my project on internet through my paid web
, but they doesn't support JSP pages and glassfish.
So is there's any way to publish it?
There are different ways to deploy your build to web servers according to the server. In this situation you telling that you are using glassfish server. It allows three different methods as follows.
1. Using admin console
First thing you should be able to access admin console which is http://localhost:4848. Follow the link below the step by step guide to deploy from oracle help.
https://docs.oracle.com/cd/E19798-01/821-1757/ghgjn/index.html
2. Using command line
You should be able to access command line with asadmin commands. Use following guide to deploy using command line.
https://docs.oracle.com/cd/E19798-01/821-1757/ghgjj/index.html
3. Deploying an Application Automatically
You can deploy applications automatically by placing them in the as-install/domains/domain-name/autodeploy directory, where domain-name is the name of the domain for which you want to configure automatic deployment. Follow the link below to step by step guide.
https://docs.oracle.com/cd/E19798-01/821-1757/ghgmi/index.html