wildfly-swarm

wildfly-swarm jpa/dadatasources yaml.xml

穿精又带淫゛_ 提交于 2020-01-17 07:38:07
问题 I have a question.I am integrating EJB, JAX-RS, CDI, JPA, and data sources. When I integrate these into wildfly-swarm, there are some problems that can not work properly. yaml.xml: datasources: jdbc-drivers: com.mysql: driver-class-name: com.mysql.jdbc.Driver xa-datasource-class-name: com.mysql.jdbc.jdbc2.optional.MysqlXADataSource driver-module-name: com.mysql data-sources: PicketlinkDS: driver-name: com.mysql connection-url: jdbc:mysql://localhost:3306/testjpa user-name: root password:

MicroProfile Rest Client not working

淺唱寂寞╮ 提交于 2019-12-25 01:37:23
问题 I had created a demo application using Wildfly Swarm generator, and I want to add the MicroProfile Rest Client on it. I just added the dependency: <dependency> <groupId>org.wildfly.swarm</groupId> <artifactId>microprofile-restclient</artifactId> </dependency> And call the RestClient instantiation code: UserService userService = RestClientBuilder.newBuilder().baseUrl(apiUri) .build(UserService.class); Even if I do not add the lines above, only the dependency, my application presents a

Unable to locate consul service with wildfly-swarm instance from wildfly-swarm-examples/ribbon-consul

瘦欲@ 提交于 2019-12-24 17:27:46
问题 Following instructions in ribbon-consul example I started consul with consul agent -dev then in parent folder of this example mvn verify -Pconsul -Dswarm.consul.url=http://localhost:8500 From what I gather this is the default location of consul, so I also ran it without, only to have the same result. Task eventually starts all services, however fails to register with consul, with output: 2017-08-25 16:54:00,324 INFO [org.wildfly.swarm.runtime.deployer] (main) deploying time.war 2017-08-25 16

How to share messages, published on Topic, between multiple VMs, in Spring Jms Tibjms

久未见 提交于 2019-12-19 04:13:08
问题 My application is consuming messages published to a Topic. I have 3 servers where my application code is running. With current implementation, the messages is distributed to all running VMs i.e. copy of message is received by every consumer. My requirement is that every consumer should receive distinct message i.e. no two consumer should get same message. Below are the libraries I am using: spring jms 4.2.7 Java jms 2.0 tibco jms 8.0 wildfly-swarm as server Currently I have following

Ambiguous dependency with only one @ApplicationScoped class

為{幸葍}努か 提交于 2019-12-13 03:49:41
问题 I have one class declared this way: @ApplicationScoped public class MessageHandlerImpl implements MessageHandler { ... } and I inject it on another class like this: @ApplicationScoped public class MessageReceiverImpl implements MessageReceiver { @Inject MessageHandler messageHandler; ... } When I try to start my application I receive the following exception: org.jboss.weld.exceptions.DeploymentException: WELD-001409: Ambiguous dependencies for type MessageHandler with qualifiers @Default at

Configure Wildfly Swarm for SSL

南笙酒味 提交于 2019-12-11 14:21:59
问题 I try to configure Wildfly Swarm to use SSL to enable HTTPS Connections. My Application has only an REST API Endpoint (JAX-RS). I found some information about classic Wildfy, using the standalone.xml for configuration. I understand that I could use standalone.xml as well, but I am not sure if I can put this configuration ind the project-defaults.yml as well. 回答1: Configuring SSL in project-defaults.yml is definitely possible. I have an example project doing this here: https://github.com

Bean Validation with JAX-RS (rest-easy): parameter name not recognized

Deadly 提交于 2019-12-01 02:41:12
问题 I'm using JAX-RS resources with Bean Validation and integration between these two works as expected. However, the default error messages generated in case of a validation error report parameter names as arg0, like so [PARAMETER] [login.arg0.password] [password is required] [] Corresponding method definition: @POST //and other JAX-RS annotations public Response login( @NotNull @Valid LoginBody loginBody) { [...] protected static class LoginBody { @NotNull(message = EMAIL_REQUIRED) public

How to share messages, published on Topic, between multiple VMs, in Spring Jms Tibjms

扶醉桌前 提交于 2019-11-30 23:49:59
My application is consuming messages published to a Topic. I have 3 servers where my application code is running. With current implementation, the messages is distributed to all running VMs i.e. copy of message is received by every consumer. My requirement is that every consumer should receive distinct message i.e. no two consumer should get same message. Below are the libraries I am using: spring jms 4.2.7 Java jms 2.0 tibco jms 8.0 wildfly-swarm as server Currently I have following configuration : TibjmsConnectionFactory factory = new TibjmsConnectionFactory("server-url"); factory