Re: JMS and login/password
Well I have fixed the problem of the use rpassword but now I have another problem look I have this tomee.xml ?xml version=1.0 encoding=UTF-8? tomee !-- see http://tomee.apache.org/containers-and-resources.html -- !-- activate next line to be able to deploy applications in apps -- !-- Deployments dir=apps / -- Resource id=senderResourceAdapter type=ActiveMQResourceAdapter BrokerXmlConfig = ServerUrl = tcp://zoo1:61616 startupTimeout = 10 seconds /Resource Resource id=senderConnectionFactory type=javax.jms.ConnectionFactory ResourceAdapter = senderResourceAdapter /Resource Resource id=messageQueue type=javax.jms.Queue/ /tomee And in one war I have next MDB: @MessageDriven(mappedName=messageQueue, name=messageQueue) public class ReceiverMessage implements MessageListener { @Resource(name= senderConnectionFactory) private ConnectionFactory connectionFactory; @Override public void onMessage(Message message) { final TextMessage textMessage = (TextMessage) message; String question; try { question = textMessage.getText(); Files.write(Paths.get(./msg.log), question.getBytes()); System.out.println(This is my MDB + question); } catch (JMSException | IOException e) { throw new IllegalArgumentException(e); } } } But when the application is deployed I can see next line: INFO: Auto-deploying ejb messageQueue: EjbDeployment(deployment-id=messageQueue) Mar 12, 2015 3:29:00 PM org.apache.openejb.config.ConfigurationFactory configureService INFO: Configuring Service(id=Default MDB Container, type=Container, provider-id=Default MDB Container) Mar 12, 2015 3:29:00 PM org.apache.openejb.config.AutoConfig createContainer INFO: Auto-creating a container for bean messageQueue: Container(type=MESSAGE, id=Default MDB Container) Mar 12, 2015 3:29:00 PM org.apache.openejb.config.ConfigurationFactory configureService INFO: Configuring Service(id=Default JMS Resource Adapter, type=Resource, provider-id=Default JMS Resource Adapter) Mar 12, 2015 3:29:00 PM org.apache.openejb.config.ConfigurationFactory configureService INFO: Configuring Service(id=Default Unmanaged JDBC Database, type=Resource, provider-id=Default Unmanaged JDBC Database) Mar 12, 2015 3:29:00 PM org.apache.openejb.assembler.classic.Assembler createRecipe INFO: Creating Resource(id=Default Unmanaged JDBC Database) Mar 12, 2015 3:29:00 PM org.apache.tomee.jdbc.TomEEDataSourceCreator$TomEEDataSource readOnly INFO: Disabling testOnBorrow since no validation query is provided Mar 12, 2015 3:29:00 PM org.apache.openejb.assembler.classic.Assembler createRecipe INFO: Creating Resource(id=Default JMS Resource Adapter) Mar 12, 2015 3:29:00 PM org.apache.openejb.assembler.classic.Assembler createResource INFO: Thread pool size for 'Default JMS Resource Adapter' is (30) Mar 12, 2015 3:29:00 PM org.apache.openejb.resource.activemq.ActiveMQ5Factory createBroker INFO: ActiveMQ5Factory creating broker Mar 12, 2015 3:29:01 PM org.apache.openejb.resource.activemq.ActiveMQ5Factory createBroker INFO: Using ActiveMQ startup timeout of 1ms Mar 12, 2015 3:29:01 PM org.apache.openejb.resource.activemq.ActiveMQ5Factory$1 run INFO: Starting ActiveMQ BrokerService Mar 12, 2015 3:29:01 PM org.apache.activemq.broker.BrokerService doStartPersistenceAdapter INFO: Using Persistence Adapter: MemoryPersistenceAdapter Mar 12, 2015 3:29:01 PM org.apache.activemq.broker.BrokerService doStartBroker INFO: Apache ActiveMQ 5.10.0 (localhost, ID:BCNSWLL13ALSOTO-49637-1426170541059-0:1) is starting Mar 12, 2015 3:29:01 PM org.apache.activemq.transport.TransportServerThreadSupport doStart INFO: Listening for connections at: tcp://localhost:61616 So as you can see it ignores the configuration for getting host and autocreates the connection. Is this normal? El dj., 12 març, 2015 a les 15:03, Romain Manni-Bucau ( rmannibu...@gmail.com) va escriure: Why not setting it on the resource adapter as explained on amq site? Le 12 mars 2015 14:54, Alex Soto asot...@gmail.com a écrit : it seems we need to configure logimodule or something like this Caused by: javax.security.auth.login.LoginException: No LoginModules configured for activemq-domain at javax.security.auth.login.LoginContext.init(LoginContext.java:264) at javax.security.auth.login.LoginContext.init(LoginContext.java:417) at org.apache.activemq.security.JaasAuthenticationBroker.addConnection( JaasAuthenticationBroker.java:72) But not sure if configuring tomee.xml parameters it should be enough or not. El dj., 12 març, 2015 a les 14:35, Alex Soto (asot...@gmail.com) va escriure: Hi I am trying to deploy an application on Apache TomEE that uses an external ActiveMQ instance. I have configured in tomee.xml in this way: ?xml version=1.0 encoding=UTF-8? tomee !-- see http://tomee.apache.org/containers-and-resources.html -- !--
Re: JMS and login/password
it seems we need to configure logimodule or something like this Caused by: javax.security.auth.login.LoginException: No LoginModules configured for activemq-domain at javax.security.auth.login.LoginContext.init(LoginContext.java:264) at javax.security.auth.login.LoginContext.init(LoginContext.java:417) at org.apache.activemq.security.JaasAuthenticationBroker.addConnection(JaasAuthenticationBroker.java:72) But not sure if configuring tomee.xml parameters it should be enough or not. El dj., 12 març, 2015 a les 14:35, Alex Soto (asot...@gmail.com) va escriure: Hi I am trying to deploy an application on Apache TomEE that uses an external ActiveMQ instance. I have configured in tomee.xml in this way: ?xml version=1.0 encoding=UTF-8? tomee !-- see http://tomee.apache.org/containers-and-resources.html -- !-- activate next line to be able to deploy applications in apps -- !-- Deployments dir=apps / -- Resource id=senderResourceAdapter type=ActiveMQResourceAdapter BrokerXmlConfig = ServerUrl = tcp://host:61616 startupTimeout = 10 seconds /Resource Resource id=senderConnectionFactory type=javax.jms.ConnectionFactory ResourceAdapter = senderResourceAdapter userName = user password = user /Resource /tomee Also I have tried to put the username and password to ACtiveMQResourceAdapter but in both cases I receive the next exception: WARNING: Unable to enlist XAResource org.apache.geronimo.transaction.manager.WrapperNamedXAResource@5849b991, errorCode: -7 javax.transaction.xa.XAException: User name [null] or password is invalid. The external instance is a docker container ( https://registry.hub.docker.com/u/webcenter/activemq/) which says that default user login and password is user. So is it correctly configured? Thanks.
Re: JMS and login/password
Just to be sure can you use url tcp://foo:1245? Le 12 mars 2015 15:34, Alex Soto asot...@gmail.com a écrit : Well I have fixed the problem of the use rpassword but now I have another problem look I have this tomee.xml ?xml version=1.0 encoding=UTF-8? tomee !-- see http://tomee.apache.org/containers-and-resources.html -- !-- activate next line to be able to deploy applications in apps -- !-- Deployments dir=apps / -- Resource id=senderResourceAdapter type=ActiveMQResourceAdapter BrokerXmlConfig = ServerUrl = tcp://zoo1:61616 startupTimeout = 10 seconds /Resource Resource id=senderConnectionFactory type=javax.jms.ConnectionFactory ResourceAdapter = senderResourceAdapter /Resource Resource id=messageQueue type=javax.jms.Queue/ /tomee And in one war I have next MDB: @MessageDriven(mappedName=messageQueue, name=messageQueue) public class ReceiverMessage implements MessageListener { @Resource(name= senderConnectionFactory) private ConnectionFactory connectionFactory; @Override public void onMessage(Message message) { final TextMessage textMessage = (TextMessage) message; String question; try { question = textMessage.getText(); Files.write(Paths.get(./msg.log), question.getBytes()); System.out.println(This is my MDB + question); } catch (JMSException | IOException e) { throw new IllegalArgumentException(e); } } } But when the application is deployed I can see next line: INFO: Auto-deploying ejb messageQueue: EjbDeployment(deployment-id=messageQueue) Mar 12, 2015 3:29:00 PM org.apache.openejb.config.ConfigurationFactory configureService INFO: Configuring Service(id=Default MDB Container, type=Container, provider-id=Default MDB Container) Mar 12, 2015 3:29:00 PM org.apache.openejb.config.AutoConfig createContainer INFO: Auto-creating a container for bean messageQueue: Container(type=MESSAGE, id=Default MDB Container) Mar 12, 2015 3:29:00 PM org.apache.openejb.config.ConfigurationFactory configureService INFO: Configuring Service(id=Default JMS Resource Adapter, type=Resource, provider-id=Default JMS Resource Adapter) Mar 12, 2015 3:29:00 PM org.apache.openejb.config.ConfigurationFactory configureService INFO: Configuring Service(id=Default Unmanaged JDBC Database, type=Resource, provider-id=Default Unmanaged JDBC Database) Mar 12, 2015 3:29:00 PM org.apache.openejb.assembler.classic.Assembler createRecipe INFO: Creating Resource(id=Default Unmanaged JDBC Database) Mar 12, 2015 3:29:00 PM org.apache.tomee.jdbc.TomEEDataSourceCreator$TomEEDataSource readOnly INFO: Disabling testOnBorrow since no validation query is provided Mar 12, 2015 3:29:00 PM org.apache.openejb.assembler.classic.Assembler createRecipe INFO: Creating Resource(id=Default JMS Resource Adapter) Mar 12, 2015 3:29:00 PM org.apache.openejb.assembler.classic.Assembler createResource INFO: Thread pool size for 'Default JMS Resource Adapter' is (30) Mar 12, 2015 3:29:00 PM org.apache.openejb.resource.activemq.ActiveMQ5Factory createBroker INFO: ActiveMQ5Factory creating broker Mar 12, 2015 3:29:01 PM org.apache.openejb.resource.activemq.ActiveMQ5Factory createBroker INFO: Using ActiveMQ startup timeout of 1ms Mar 12, 2015 3:29:01 PM org.apache.openejb.resource.activemq.ActiveMQ5Factory$1 run INFO: Starting ActiveMQ BrokerService Mar 12, 2015 3:29:01 PM org.apache.activemq.broker.BrokerService doStartPersistenceAdapter INFO: Using Persistence Adapter: MemoryPersistenceAdapter Mar 12, 2015 3:29:01 PM org.apache.activemq.broker.BrokerService doStartBroker INFO: Apache ActiveMQ 5.10.0 (localhost, ID:BCNSWLL13ALSOTO-49637-1426170541059-0:1) is starting Mar 12, 2015 3:29:01 PM org.apache.activemq.transport.TransportServerThreadSupport doStart INFO: Listening for connections at: tcp://localhost:61616 So as you can see it ignores the configuration for getting host and autocreates the connection. Is this normal? El dj., 12 març, 2015 a les 15:03, Romain Manni-Bucau ( rmannibu...@gmail.com) va escriure: Why not setting it on the resource adapter as explained on amq site? Le 12 mars 2015 14:54, Alex Soto asot...@gmail.com a écrit : it seems we need to configure logimodule or something like this Caused by: javax.security.auth.login.LoginException: No LoginModules configured for activemq-domain at javax.security.auth.login.LoginContext.init(LoginContext.java:264) at javax.security.auth.login.LoginContext.init(LoginContext.java:417) at org.apache.activemq.security.JaasAuthenticationBroker.addConnection( JaasAuthenticationBroker.java:72) But not sure if configuring tomee.xml parameters it should be enough or not. El dj., 12 març, 2015 a les 14:35, Alex Soto (asot...@gmail.com) va escriure: Hi I am trying to deploy an application on Apache TomEE that uses
Re: JMS and login/password
Yes because in TomEE I have two war files, one that publish the message and the other one that consumes it. Both applications are sharing the same tomee.xml configuration and so same ActiveMQ external instance. The message is published (we can see it in the console) but there is no consumers because the second application is listening for localhost and not the remote host. El dj., 12 març, 2015 a les 15:42, Romain Manni-Bucau ( rmannibu...@gmail.com) va escriure: Just to be sure can you use url tcp://foo:1245? Le 12 mars 2015 15:34, Alex Soto asot...@gmail.com a écrit : Well I have fixed the problem of the use rpassword but now I have another problem look I have this tomee.xml ?xml version=1.0 encoding=UTF-8? tomee !-- see http://tomee.apache.org/containers-and-resources.html -- !-- activate next line to be able to deploy applications in apps -- !-- Deployments dir=apps / -- Resource id=senderResourceAdapter type=ActiveMQResourceAdapter BrokerXmlConfig = ServerUrl = tcp://zoo1:61616 startupTimeout = 10 seconds /Resource Resource id=senderConnectionFactory type=javax.jms.ConnectionFactory ResourceAdapter = senderResourceAdapter /Resource Resource id=messageQueue type=javax.jms.Queue/ /tomee And in one war I have next MDB: @MessageDriven(mappedName=messageQueue, name=messageQueue) public class ReceiverMessage implements MessageListener { @Resource(name= senderConnectionFactory) private ConnectionFactory connectionFactory; @Override public void onMessage(Message message) { final TextMessage textMessage = (TextMessage) message; String question; try { question = textMessage.getText(); Files.write(Paths.get(./msg.log), question.getBytes()); System.out.println(This is my MDB + question); } catch (JMSException | IOException e) { throw new IllegalArgumentException(e); } } } But when the application is deployed I can see next line: INFO: Auto-deploying ejb messageQueue: EjbDeployment(deployment-id=messageQueue) Mar 12, 2015 3:29:00 PM org.apache.openejb.config.ConfigurationFactory configureService INFO: Configuring Service(id=Default MDB Container, type=Container, provider-id=Default MDB Container) Mar 12, 2015 3:29:00 PM org.apache.openejb.config.AutoConfig createContainer INFO: Auto-creating a container for bean messageQueue: Container(type=MESSAGE, id=Default MDB Container) Mar 12, 2015 3:29:00 PM org.apache.openejb.config.ConfigurationFactory configureService INFO: Configuring Service(id=Default JMS Resource Adapter, type=Resource, provider-id=Default JMS Resource Adapter) Mar 12, 2015 3:29:00 PM org.apache.openejb.config.ConfigurationFactory configureService INFO: Configuring Service(id=Default Unmanaged JDBC Database, type=Resource, provider-id=Default Unmanaged JDBC Database) Mar 12, 2015 3:29:00 PM org.apache.openejb.assembler.classic.Assembler createRecipe INFO: Creating Resource(id=Default Unmanaged JDBC Database) Mar 12, 2015 3:29:00 PM org.apache.tomee.jdbc.TomEEDataSourceCreator$TomEEDataSource readOnly INFO: Disabling testOnBorrow since no validation query is provided Mar 12, 2015 3:29:00 PM org.apache.openejb.assembler.classic.Assembler createRecipe INFO: Creating Resource(id=Default JMS Resource Adapter) Mar 12, 2015 3:29:00 PM org.apache.openejb.assembler.classic.Assembler createResource INFO: Thread pool size for 'Default JMS Resource Adapter' is (30) Mar 12, 2015 3:29:00 PM org.apache.openejb.resource.activemq.ActiveMQ5Factory createBroker INFO: ActiveMQ5Factory creating broker Mar 12, 2015 3:29:01 PM org.apache.openejb.resource.activemq.ActiveMQ5Factory createBroker INFO: Using ActiveMQ startup timeout of 1ms Mar 12, 2015 3:29:01 PM org.apache.openejb.resource.activemq.ActiveMQ5Factory$1 run INFO: Starting ActiveMQ BrokerService Mar 12, 2015 3:29:01 PM org.apache.activemq.broker.BrokerService doStartPersistenceAdapter INFO: Using Persistence Adapter: MemoryPersistenceAdapter Mar 12, 2015 3:29:01 PM org.apache.activemq.broker.BrokerService doStartBroker INFO: Apache ActiveMQ 5.10.0 (localhost, ID:BCNSWLL13ALSOTO-49637-1426170541059-0:1) is starting Mar 12, 2015 3:29:01 PM org.apache.activemq.transport.TransportServerThreadSupport doStart INFO: Listening for connections at: tcp://localhost:61616 So as you can see it ignores the configuration for getting host and autocreates the connection. Is this normal? El dj., 12 març, 2015 a les 15:03, Romain Manni-Bucau ( rmannibu...@gmail.com) va escriure: Why not setting it on the resource adapter as explained on amq site? Le 12 mars 2015 14:54, Alex Soto asot...@gmail.com a écrit : it seems we need to configure logimodule or something like this Caused by:
Re: testing strategy wars and cdi
Silly no, smooth no too ;). I love app composer and tomee embedded rule but this last one is snapshot only atm. Le 12 mars 2015 13:14, hwaastad he...@waastad.org a écrit : Hi, just a short question regarding embedded cdi testing. I have a cdi enabled war (web-inf/beans.xml) So using app composer its OK (cdi=true) However when using ejb container, I need beans.xml in src/resources/meta-inf instead to get injection working during tests. beans.xml in test/resources/meta-inf does not work, I can easily filter out the resources/s/meta-inf/beans.xml in maven producing the war so it's not really a problem My question is actually: is it silly to use ejbcontainer when testing cdi in a war project? br hw -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/testing-strategy-wars-and-cdi-tp4674035.html Sent from the TomEE Users mailing list archive at Nabble.com.
JMS and login/password
Hi I am trying to deploy an application on Apache TomEE that uses an external ActiveMQ instance. I have configured in tomee.xml in this way: ?xml version=1.0 encoding=UTF-8? tomee !-- see http://tomee.apache.org/containers-and-resources.html -- !-- activate next line to be able to deploy applications in apps -- !-- Deployments dir=apps / -- Resource id=senderResourceAdapter type=ActiveMQResourceAdapter BrokerXmlConfig = ServerUrl = tcp://host:61616 startupTimeout = 10 seconds /Resource Resource id=senderConnectionFactory type=javax.jms.ConnectionFactory ResourceAdapter = senderResourceAdapter userName = user password = user /Resource /tomee Also I have tried to put the username and password to ACtiveMQResourceAdapter but in both cases I receive the next exception: WARNING: Unable to enlist XAResource org.apache.geronimo.transaction.manager.WrapperNamedXAResource@5849b991, errorCode: -7 javax.transaction.xa.XAException: User name [null] or password is invalid. The external instance is a docker container ( https://registry.hub.docker.com/u/webcenter/activemq/) which says that default user login and password is user. So is it correctly configured? Thanks.
Re: Apache TomEE and symlinks
Hi, I can recall a weird scanning issue but I thought Romain fixed it, but sounds like no. @Romain? JLouis -- Jean-Louis Monteiro http://twitter.com/jlouismonteiro http://www.tomitribe.com On Thu, Mar 12, 2015 at 9:39 PM, jieryn jie...@gmail.com wrote: I have a fresh Apache TomEE 1.7.1 PLUS unpacked. My ROOT.war web application has many @WebServlets in WEB-INF/lib/*jar files. If I start the application they are automatically discovered. If I now symlink the apache-tomee-plus-1.7.1 to be apache-tomee-wtf, and then start up exactly the same way, these @WebServlets are not found. Bizarrely, other WEB-INF/lib/*jar files which contain via web-fragment.xml things like servlet filters and other configuration data (session, tracking, security constraints, etc) are picked up. The symlink does not span mount points or block devices. They are just sitting in the same directory. There are no tricky issues with spaces or unicode or other special characters in any paths. ... This really is frustrating, why is TomEE not finding these @WebServlets? Thanks!
Apache TomEE and symlinks
I have a fresh Apache TomEE 1.7.1 PLUS unpacked. My ROOT.war web application has many @WebServlets in WEB-INF/lib/*jar files. If I start the application they are automatically discovered. If I now symlink the apache-tomee-plus-1.7.1 to be apache-tomee-wtf, and then start up exactly the same way, these @WebServlets are not found. Bizarrely, other WEB-INF/lib/*jar files which contain via web-fragment.xml things like servlet filters and other configuration data (session, tracking, security constraints, etc) are picked up. The symlink does not span mount points or block devices. They are just sitting in the same directory. There are no tricky issues with spaces or unicode or other special characters in any paths. ... This really is frustrating, why is TomEE not finding these @WebServlets? Thanks!
Re: Apache TomEE and symlinks
Yes. Not released yet. Le 12 mars 2015 21:45, Jean-Louis Monteiro jlmonte...@tomitribe.com a écrit : Hi, I can recall a weird scanning issue but I thought Romain fixed it, but sounds like no. @Romain? JLouis -- Jean-Louis Monteiro http://twitter.com/jlouismonteiro http://www.tomitribe.com On Thu, Mar 12, 2015 at 9:39 PM, jieryn jie...@gmail.com wrote: I have a fresh Apache TomEE 1.7.1 PLUS unpacked. My ROOT.war web application has many @WebServlets in WEB-INF/lib/*jar files. If I start the application they are automatically discovered. If I now symlink the apache-tomee-plus-1.7.1 to be apache-tomee-wtf, and then start up exactly the same way, these @WebServlets are not found. Bizarrely, other WEB-INF/lib/*jar files which contain via web-fragment.xml things like servlet filters and other configuration data (session, tracking, security constraints, etc) are picked up. The symlink does not span mount points or block devices. They are just sitting in the same directory. There are no tricky issues with spaces or unicode or other special characters in any paths. ... This really is frustrating, why is TomEE not finding these @WebServlets? Thanks!
Re: testing strategy wars and cdi
Hehe, that is in progress. Also plan to doc it - all testing solution - on tomee website but not before this summer - out of time. If you are not afraid of code: https://github.com/apache/tomee/blob/develop/tomee/tomee-embedded/src/main/java/org/apache/tomee/embedded/junit/TomEEEmbeddedRule.java Le 12 mars 2015 21:11, hwaastad he...@waastad.org a écrit : Well, if you have'nt blogged about it, it does'nt exist :-) br hw -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/testing-strategy-wars-and-cdi-tp4674035p4674047.html Sent from the TomEE Users mailing list archive at Nabble.com.
Re: Apache TomEE and symlinks
allright. Thanks -- Jean-Louis Monteiro http://twitter.com/jlouismonteiro http://www.tomitribe.com On Thu, Mar 12, 2015 at 10:38 PM, Romain Manni-Bucau rmannibu...@gmail.com wrote: Yes. Not released yet. Le 12 mars 2015 21:45, Jean-Louis Monteiro jlmonte...@tomitribe.com a écrit : Hi, I can recall a weird scanning issue but I thought Romain fixed it, but sounds like no. @Romain? JLouis -- Jean-Louis Monteiro http://twitter.com/jlouismonteiro http://www.tomitribe.com On Thu, Mar 12, 2015 at 9:39 PM, jieryn jie...@gmail.com wrote: I have a fresh Apache TomEE 1.7.1 PLUS unpacked. My ROOT.war web application has many @WebServlets in WEB-INF/lib/*jar files. If I start the application they are automatically discovered. If I now symlink the apache-tomee-plus-1.7.1 to be apache-tomee-wtf, and then start up exactly the same way, these @WebServlets are not found. Bizarrely, other WEB-INF/lib/*jar files which contain via web-fragment.xml things like servlet filters and other configuration data (session, tracking, security constraints, etc) are picked up. The symlink does not span mount points or block devices. They are just sitting in the same directory. There are no tricky issues with spaces or unicode or other special characters in any paths. ... This really is frustrating, why is TomEE not finding these @WebServlets? Thanks!
Re: testing strategy wars and cdi
Well, if you have'nt blogged about it, it does'nt exist :-) br hw -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/testing-strategy-wars-and-cdi-tp4674035p4674047.html Sent from the TomEE Users mailing list archive at Nabble.com.
Re: testing strategy wars and cdi
Ps: http://tomee-openejb.979440.n4.nabble.com/some-hacks-for-test-td4673855.html Le 12 mars 2015 22:40, Romain Manni-Bucau rmannibu...@gmail.com a écrit : Hehe, that is in progress. Also plan to doc it - all testing solution - on tomee website but not before this summer - out of time. If you are not afraid of code: https://github.com/apache/tomee/blob/develop/tomee/tomee-embedded/src/main/java/org/apache/tomee/embedded/junit/TomEEEmbeddedRule.java Le 12 mars 2015 21:11, hwaastad he...@waastad.org a écrit : Well, if you have'nt blogged about it, it does'nt exist :-) br hw -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/testing-strategy-wars-and-cdi-tp4674035p4674047.html Sent from the TomEE Users mailing list archive at Nabble.com.
testing strategy wars and cdi
Hi, just a short question regarding embedded cdi testing. I have a cdi enabled war (web-inf/beans.xml) So using app composer its OK (cdi=true) However when using ejb container, I need beans.xml in src/resources/meta-inf instead to get injection working during tests. beans.xml in test/resources/meta-inf does not work, I can easily filter out the resources/s/meta-inf/beans.xml in maven producing the war so it's not really a problem My question is actually: is it silly to use ejbcontainer when testing cdi in a war project? br hw -- View this message in context: http://tomee-openejb.979440.n4.nabble.com/testing-strategy-wars-and-cdi-tp4674035.html Sent from the TomEE Users mailing list archive at Nabble.com.