wildfly

HTTP Handler and Resteasy Deployment with undertow and resteasy

只谈情不闲聊 提交于 2019-12-07 02:36:59
问题 I am trying to run both HTTPServer and also the REST Handler. Only one works at a time not able to make it work both at same time. I need to serve html pages and also the api. here is my code. public class HttpServer { private final UndertowJaxrsServer server = new UndertowJaxrsServer(); private static String rootPath = System.getProperty("user.dir"); private final Undertow.Builder serverBuilder; public HttpServer(Integer port, String host) { serverBuilder = Undertow .builder()

Issues configuring JBoss EAP on Netbeans 8

半城伤御伤魂 提交于 2019-12-07 02:27:13
问题 I have downloaded JBoss EAP 7 and am configuring it on Netbeans 8. I have reached the wizard "instance Properties" where am asked to select a "domain" from a select box. When I open the select box, it is empty. There is nothing there to choose from. Because of this, the "finish" button also is inactive which make in impossible to complete the configuration. I am adding Jboss via the "services" tab. What is going wrong here? 回答1: JBoss EAP 6.4.0 works perfectly fine with Netbeans 8.1, however,

Invoke EJB from WildFly safely

假如想象 提交于 2019-12-07 00:47:00
问题 I'm trying to re-write my old application in enterprise, "business" way. So, I've got a Swing client with login module and my own server created from scratch. The client use ssl certificate to encrypt TCP connection to the server (I check client certificate on server and server certificate on client) and then server use database to authenticate and authorize the user. Now I'm trying to get it working with ejb hosted by WildFly 8 CR1. I want to use the same client-server keys pair to connect

微服务 WildFly Swarm 管理<十五>

橙三吉。 提交于 2019-12-06 22:14:15
Expose Application Metrics and Information 要公开关于我们的微服务的有用信息,我们需要做的就是将监视器模块添加到我们的pom.xml中: 这将使在管理和监视功能得到实现。从监控角度来看,WildFly小组公开了一些基本指标: • 关于WildFly群集在/节点上运行的节点信息 • JVM的堆的使用情况 • JVM 进程/线程信息 我们还可以添加自己的健康端点,可以调用一些操作或查询我们的微服务部分来轻松地揭示我们的服务正在做什么。您可以利用大多数现代集群的内置健康检查探针来调用您的微服务健康端点来确定在是否健康,在某些情况下,只需杀死它并重新启动。请参阅在文档,以获得更多关于添加健康探针的文档。 How to Run This Outside of Maven 我们已经看到了几种方法来运行我们的WildFly群。对于开发,您可能会使用这样的maven插件运行: 当您构建二进制文件时,您可以运行它如下: 这将把我们的项目,无论是打包成一个JAR还是WAR(由您的pom.xml中的<pacjaging>定义所指定),并将其转换为一个可执行的 JAR 。然后可以这样运行: 请注意,无论您的最终构建工件的名称是什么,WildFlySwar-Maven 插件都会在名称中添加 -swar.jar 扩展。 Calling Another Service

Is JBoss EAP 7 has a functionality that Wildfly doesn't have?

陌路散爱 提交于 2019-12-06 17:03:02
问题 I'm going to install WildFly because it's open source and it's free compared to Jboss. 回答1: JBoss EAP 7 is based on WildFly Application Server. WildFly is the community project whereas JBoss EAP is highly integerated, tested and certified enterprise platform which includes patches, updates,support contract, and maintenance policies. 来源: https://stackoverflow.com/questions/46952373/is-jboss-eap-7-has-a-functionality-that-wildfly-doesnt-have

Wildfly: Encrypt password and username for database

僤鯓⒐⒋嵵緔 提交于 2019-12-06 16:18:01
问题 I would like to hand over a webapplication to some people but these people should not allowed to has access to the database with some tools. Using the webapplicaton and in the background the database is ok. Wildfly has a config with these code: <xa-datasource jndi-name="java:jboss/datasources/ExampleXADS" pool-name="ExampleXADS"> <driver>h2</driver> <xa-datasource-property name="URL">jdbc:h2:mem:test</xa-datasource-property> <xa-pool> <min-pool-size>10</min-pool-size> <max-pool-size>20</max

How do I use jbpm demo in a professional environment?

折月煮酒 提交于 2019-12-06 16:08:04
I have installed http://download.jboss.org/jbpm/release/6.4.0.Final/jbpm-6.4.0.Final-installer-full.zip found here http://www.jbpm.org/download/download.html and this is a self contained environment with ant and commands like: "ant install.demo". You end up with a nice environment for learning the kie workbench. This is great for learning, but I really want to take it to the next step which is to have a single wildfly server with ear/war file(s). I can't seem to find instructions or advice on how to do this. I cannot imagine having a VM where I have to remote desktop in and issue an "ant

Starting WildFly 8.2 under a user with limited permissions

*爱你&永不变心* 提交于 2019-12-06 15:10:17
I'm trying to start WildFly 8.2 under a user that doesn't have permissions to write in a WildFly home directory and it's subdirectories. For this purpose I've copied standalone directory to a user home directory. Here is a command I use to start WildFly in cygwin: $ /cygdrive/c/Program\ Files/wildfly-8.2.0.Final/bin/standalone.sh -Djboss.server.base.dir='C:\Users\above_mentioned_user\standalone' -c standalone.xml And here is an output of this command: cygpath: can't convert empty path ========================================================================= JBoss Bootstrap Environment JBOSS

How to query the number of active sessions with JBoss Wildfly?

我的梦境 提交于 2019-12-06 14:57:51
We used to query the active session count by using the following code up to JBoss 7: ObjectName name = new ObjectName(jboss.web:type=Manager,path=/MyWebApp,host=default-host); MBeanServer jboss = MBeanServerLocator.locateJBoss(); this.sessions = new Long((Integer) jboss.getAttribute(name, "activeSessions")); That no longer works with JBoss Wildfly. I can't really find the proper documentation to access the same information with the current version of JBoss AS. I've come across some links like http://blog.akquinet.de/2014/09/15/monitoring-the-jboss-eap-wildfly-application-server-with-the

How to obtain JBoss Server Group Name programatically when deployed to a domain

落爺英雄遲暮 提交于 2019-12-06 14:17:50
问题 How can I obtain the jboss eap 6.x / wildfly server group name programmatically from within a java enterprise application deployed to a domain? Some of the other jboss values such as node name can be obtained via system property values but server-group-name does not appear to be exposed this way. I would like to be able to show the server group name (i.e. the cluster name) in a system diagnostics function for technical users to verify they are looking at the correct system... (npe, dev, prod