Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

enable the wildfly plugin in resteasy-spring-example-customized #87 #88

Merged
merged 1 commit into from
Apr 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions resteasy-spring-basic/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>2.1.0.Final</version>
<version>${version.wildfly-maven-plugin}</version>
<configuration>
<artifactId>wildfly-preview-dist</artifactId>
<version>26.0.1.Final</version>
<version>${version.wildfly}</version>
</configuration>
</plugin>
</plugins>
Expand Down
21 changes: 21 additions & 0 deletions resteasy-spring-customized/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,24 @@ $ curl localhost:8080/rest/servlet
```

And it will print out the internal `Dispatcher` instance fetched from `SpringBeanProcessorServletAware`.


## Deploying The Project To WildFly

This example has embedded `wildfly-maven-plugin` embedded, so it can be deployed to a managed WildFly server by running the Maven command. Run the following command to build the example, download WildFly server, start the server and finish deployment automatically:

```bash
$ mvn wildfly:run
```

After the embedded WildFly server is downloaded and run, access the example service with following `curl` command:

```bash
$ curl http://localhost:8080/resteasy-spring-example-customized/rest/servlet
```

And it will print the result like:

```bash
org.jboss.resteasy.core.SynchronousDispatcher@bc35ba
```
9 changes: 9 additions & 0 deletions resteasy-spring-customized/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,15 @@
<failOnMissingWebXml>false</failOnMissingWebXml>
</configuration>
</plugin>
<plugin>
<groupId>org.wildfly.plugins</groupId>
<artifactId>wildfly-maven-plugin</artifactId>
<version>${version.wildfly-maven-plugin}</version>
<configuration>
<artifactId>wildfly-preview-dist</artifactId>
<version>${version.wildfly}</version>
</configuration>
</plugin>
</plugins>
</build>
</project>