wildfly

Best way to specify fields returned by a Service

偶尔善良 提交于 2019-12-23 11:57:35
问题 We're using Java EE 7 with WildFly 9 to develop the custom backend for a mobile/web application. The backend is a classic 3-tier system, with communication logic (JAX-RS), business logic (Session EJBs) and persistence layer (Hibernate). The business logic layer is composed by a set of services, each defined by an interface and an EJB implementation. Let's suppose public interface IPostService { List<PostDTO> getAllPosts(); } and @Stateless public class PostService implements IPostService {

Destination is mandatory

余生颓废 提交于 2019-12-23 11:57:03
问题 I got following error while deploying my ear in wildfly 8.1.0 server 1)Error: Caused by: javax.resource.spi.InvalidPropertyException: Destination is mandatory", "jboss.deployment.subunit.\"wildfly.ear\".\"wildfly- ejb.jar\".component.ReRattingMDB.START" => "org.jboss.msc.service.StartException in service jboss.deployment.subunit.\"wildfly.ear\".\"wildfly-ejb.jar\".component.ReRattingMDB.START: java.lang.RuntimeException: javax.resource.spi.InvalidPropertyException: Destination is mandatory 2

Inject EntityManagerFactory using @PersistenceUnit on Jersey with Wildfly

╄→гoц情女王★ 提交于 2019-12-23 10:29:52
问题 I'm trying to inject EntityManagerFactory using @PersistenceUnit, but it's always null. I think my persistence.xml is OK, since I can get the EntityManager with this code: EntityManager em = Persistence.createEntityManagerFactory("myPersistenceUnit").createEntityManager(); So, I would like to know if I'm doing something wrong, or if this is not possible when using Jersey (2.23) and Wildfly 10 (JBoss EAP 7). Here is what I've done so far: Created a jersey-quickstart-webapp maven project on

Inject EntityManagerFactory using @PersistenceUnit on Jersey with Wildfly

 ̄綄美尐妖づ 提交于 2019-12-23 10:29:05
问题 I'm trying to inject EntityManagerFactory using @PersistenceUnit, but it's always null. I think my persistence.xml is OK, since I can get the EntityManager with this code: EntityManager em = Persistence.createEntityManagerFactory("myPersistenceUnit").createEntityManager(); So, I would like to know if I'm doing something wrong, or if this is not possible when using Jersey (2.23) and Wildfly 10 (JBoss EAP 7). Here is what I've done so far: Created a jersey-quickstart-webapp maven project on

Infinispan with Spring, casting from cache failing

怎甘沉沦 提交于 2019-12-23 05:16:15
问题 I have Spring 1.4 app which is deployed to WildFly 10, and it is using Infinispan 8.1 built in with WildFly. I have managed to deploy the app properly, and this is the configuration for the Infinispan: 1) CacheManager @Bean public CacheManager cacheManager() throws Exception { JndiTemplate jndiTemplate = new JndiTemplate(); EmbeddedCacheManager embededCacheManager = (EmbeddedCacheManager) jndiTemplate.lookup("java:jboss/infinispan/container/CONTAINER"); SpringEmbeddedCacheManager cacheManager

What Is The Wildfly Equivalent Of JBoss EAP 6.4 [closed]

谁说胖子不能爱 提交于 2019-12-23 04:47:50
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 2 years ago . I am investigating an application the requires JBoss EAP 6.4. However, I don't want to pay the (~$30k) annual license. What is the equivalent Wildfly version? 回答1: The closest version you will find is JBoss AS 7.1.1. This is very similar to EAP 6.4 but not exact. EAP 6.4 exact match would be closer to AS 7.5 but

How to add an external resources directory with jboss-cli?

跟風遠走 提交于 2019-12-23 04:10:14
问题 I would like to add ${jboss.server.temp.dir}/foo_server/images_svg directory as external resources directory. For this I need to add the following line code into /subsystem/handlers <location name="/images_svg" handler="images"/> And into /subsystem/server name="default-server"/host name="default-host" <file name="images" path="${jboss.server.temp.dir}/foos_server/images_svg" directory-listing="true"/> I expect something like this: <subsystem xmlns="urn:jboss:domain:undertow:2.0"> <buffer

Starting WildFly 8.2 under a user with limited permissions

走远了吗. 提交于 2019-12-23 03:07:52
问题 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 =======

Wildfly server:Partial Content and Range Requests

左心房为你撑大大i 提交于 2019-12-23 02:31:49
问题 Is there a way for wildfly server support http range header? We are requesting file for server with http get and http header "Range: bytes 200-400" The files that served from apache tomcat server responds http status code 206 and partial file content but wildfly server responds same request with http status code 200 and all file content. Since we are using big files it becomes a problem to transfer and seek file. Is there any way to make wildfly support partial requests via configuration,

Can't get Remote EJB to work with EJB Client API on Wildfly

旧城冷巷雨未停 提交于 2019-12-23 01:36:22
问题 I'm currently struggling with getting remote EJB invocation to work on wildfly (8.x and 9.x). In detail it's about remote invocation from a standalone client application (not from another app server) using the EJB Client API approach. The remote naming approach works for me but isn't applicable in my scenario because I need to use client-side interceptors for passing context data to a server-side interceptor for the remote invocations. But for now I try to get remote invocations with the