redelivery of MDB with BMT

2013-11-25 Thread ZhongGuan
Hi, I have a MDB using BMT. I want to keep the message in Queue By throw a RuntimeException. But it does not work, I monitor the ActiveMq, the message has been Dequeued? another question, How can I monitor the internal ActiveMQ in TomEE by webconsole or Jconsole? thanks. -- View this

Re: redelivery of MDB with BMT

2013-11-25 Thread Leonardo K. Shikida
to use jconsole, ensure that system.properties has openejb.jmx.active = true and use jmx:rmi:///jndi/rmi://localhost:1099/jmxrmi (no user or password) see http://activemq.apache.org/jmx.html [] Leo On Mon, Nov 25, 2013 at 7:47 AM, ZhongGuan guanzh.em...@gmail.com wrote: Hi, I have a MDB

tomee-maven-plugin and failsafe

2013-11-25 Thread hwaastad
Hi, I read the post: http://rmannibucau.wordpress.com/2013/09/25/tomee-maven-plugin-and-integration-tests-without-arquillian/ and wanted to try this one out. However, stopping the tomee always fail running mvn clean verify: [ERROR] Failed to execute goal

Re: tomee-maven-plugin and failsafe

2013-11-25 Thread Romain Manni-Bucau
Hi did you try adding classpaths/classpaths in your config? Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2013/11/25 hwaastad he...@waastad.org: Hi, I read the post:

Re: Caused by: org.quartz.SchedulerException: JobStore class 'org.quartz.simpl.RAMJobStore' props could not be configured. [See nested exception: java.lang.NoSuchMethodException: No setter for propert

2013-11-25 Thread Romain Manni-Bucau
driverDelegateInitString is only set if org.quartz.jobStore.class is set. However you are right and we need to be more precise: https://issues.apache.org/jira/browse/TOMEE-1089 Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn:

Re: tomee-maven-plugin and failsafe

2013-11-25 Thread Helge Waastad
I did'ntbut when I did it suddenly worked! Thank's alot. br hw ma., 25.11.2013 kl. 14.23 +0100, skrev Romain Manni-Bucau: Hi did you try adding classpaths/classpaths in your config? Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn:

Re: redelivery of MDB with BMT

2013-11-25 Thread AndyG
Would you like to share some code to help you solve this problem. Andy -- View this message in context: http://openejb.979440.n4.nabble.com/redelivery-of-MDB-with-BMT-tp4666382p4666387.html Sent from the OpenEJB User mailing list archive at Nabble.com.

Re: tomee-maven-plugin and failsafe

2013-11-25 Thread Romain Manni-Bucau
(that's a workaround, I fixed the root cause on trunk ;) Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2013/11/25 Helge Waastad he...@waastad.org: I did'ntbut when I

Re: Caused by: org.quartz.SchedulerException: JobStore class 'org.quartz.simpl.RAMJobStore' props could not be configured. [See nested exception: java.lang.NoSuchMethodException: No setter for propert

2013-11-25 Thread Leonardo K. Shikida
this is my application.properties # # Configure Main Scheduler Properties # org.quartz.scheduler.instanceName = myScheduler

Re: Caused by: org.quartz.SchedulerException: JobStore class 'org.quartz.simpl.RAMJobStore' props could not be configured. [See nested exception: java.lang.NoSuchMethodException: No setter for propert

2013-11-25 Thread Romain Manni-Bucau
remove org.quartz.jobStore.class = org.quartz.simpl.RAMJobStore Romain Manni-Bucau Twitter: @rmannibucau Blog: http://rmannibucau.wordpress.com/ LinkedIn: http://fr.linkedin.com/in/rmannibucau Github: https://github.com/rmannibucau 2013/11/25 Leonardo K. Shikida shik...@gmail.com: this is my

Re: redelivery of MDB with BMT

2013-11-25 Thread ZhongGuan
Thanks Leo, I will try it later. In fact, If I use the external ActiveMQ at local.I can see the url in Jconsole. But if I use internal ActiveMQ in TomEE at local , I can not find the Url in Jconsole. -- View this message in context:

Re: redelivery of MDB with BMT

2013-11-25 Thread Romain Manni-Bucau
Did you set usejmx to true? http://tomee.apache.org/activemqresourceadapter-config.html Le 25 nov. 2013 17:56, ZhongGuan guanzh.em...@gmail.com a écrit : Thanks Leo, I will try it later. In fact, If I use the external ActiveMQ at local.I can see the url in Jconsole. But if I use internal

Re: redelivery of MDB with BMT

2013-11-25 Thread Leonardo K. Shikida
I use tomee's embedded activemq at localhost. It does not appear at jconsole in the local process section. Instead, I have to enter this address manually in the remote process section. so I choose the radiobox remote process and fill it with service:jmx:rmi://localhost:1099/jmxrmi, user and

Re: redelivery of MDB with BMT

2013-11-25 Thread Romain Manni-Bucau
I dont get you, embed amq is in tomee jvm and jmx is active with usejmx option Le 25 nov. 2013 18:06, Leonardo K. Shikida shik...@gmail.com a écrit : I use tomee's embedded activemq at localhost. It does not appear at jconsole in the local process section. Instead, I have to enter this

Re: redelivery of MDB with BMT

2013-11-25 Thread ZhongGuan
Hi I wrote a simple example just now using MDB BMT and throw RuntimeException, it worked. I mean container does not acknowledge the message. I will check my code again later. sorry about this question. thanks Andy. -- View this message in context:

No message body writer has been found for response class

2013-11-25 Thread José Luis Cetina
Hi, im doing my first restful, im using tomee 1.6.0 jax-rs. I get this message when in my webpage: No message body writer has been found for response class User. @GET @Path(/user) @Produces({application/xml, application/json}) public User getUser(){ User usr = new User();

Re: No message body writer has been found for response class

2013-11-25 Thread Thiago Veronezi
Did you annotate the User class? https://github.com/tveronezi/photodb/blob/master/src/main/java/photodb/data/dto/UserInfo.java []s, Thiago. On Mon, Nov 25, 2013 at 1:26 PM, José Luis Cetina maxtorz...@gmail.comwrote: Hi, im doing my first restful, im using tomee 1.6.0 jax-rs. I get this

Re: No message body writer has been found for response class

2013-11-25 Thread José Luis Cetina
Noup, i did it an works. What about if my object is an entity object? can i mix jpa annotations like @entity @column @joincolumn @onetone etc whit this annotations? 2013/11/25 Thiago Veronezi thi...@veronezi.org Did you annotate the User class?

Re: No message body writer has been found for response class

2013-11-25 Thread Thiago Veronezi
I guess so, but I'm not sure how the managed entities would behave. imho, it's better to create DTOs to hold only the information you want to pass through the wire. []s, Thiago. On Mon, Nov 25, 2013 at 1:38 PM, José Luis Cetina maxtorz...@gmail.comwrote: Noup, i did it an works. What

Re: No message body writer has been found for response class

2013-11-25 Thread José Luis Cetina
OK. understood. Thanks 2013/11/25 Thiago Veronezi thi...@veronezi.org I guess so, but I'm not sure how the managed entities would behave. imho, it's better to create DTOs to hold only the information you want to pass through the wire. []s, Thiago. On Mon, Nov 25, 2013 at 1:38 PM, José

Re: No message body writer has been found for response class

2013-11-25 Thread John D. Ament
in most app servers you end up with lazy loading issues, especially for onetomany's or manytomany's. On Mon, Nov 25, 2013 at 1:44 PM, Thiago Veronezi thi...@veronezi.org wrote: I guess so, but I'm not sure how the managed entities would behave. imho, it's better to create DTOs to hold only the

Re: Using VM args in Tomee Arquillian adapter

2013-11-25 Thread Romain Manni-Bucau
If your local repo is not in default location set openejb.m2.home property. The diff with 1.5 is we got rid of openejb-prpvisionning by default. Adding it back will make it work the same way but can lead to conflicts with some other deps Le 25 nov. 2013 22:24, Wolfgang Winter w.win...@logitags.com

Re: No message body writer has been found for response class

2013-11-25 Thread Howard W. Smith, Jr.
Yeah, and Jose triggered a discussion about that on this list within the last 1 to 3 months. remember that? :) On Mon, Nov 25, 2013 at 1:46 PM, John D. Ament john.d.am...@gmail.comwrote: in most app servers you end up with lazy loading issues, especially for onetomany's or manytomany's.

Re: No message body writer has been found for response class

2013-11-25 Thread José Luis Cetina
Yeap. And openJPA still with that issue!!! the list attributes of any entity could not be modified because they are immutable even if the entity is detached, but thats another conversation! 2013/11/25 Howard W. Smith, Jr. smithh032...@gmail.com Yeah, and Jose triggered a discussion about that

tomee maven plugin

2013-11-25 Thread José Luis Cetina
Hi currently in using the apache tomee maven plugin 1.6.0-SNAPSHOT with webprofile classifier, im doing my first step's with jax-rs, then i change the classifier but maven could not find the tomee plugin with jaxrs classifier plugin groupIdorg.apache.openejb.maven/groupId

Re: tomee maven plugin

2013-11-25 Thread jieryn
Try again with the recently released Apache TomEE 1.6.0? On Mon, Nov 25, 2013 at 9:01 PM, José Luis Cetina maxtorz...@gmail.com wrote: Any advice?

Re: tomee maven plugin

2013-11-25 Thread José Luis Cetina
Yep, it works now with 1.6.0 release, by the way i didnt know that 1.6.0 was released a few days ago 2013/11/25 jieryn jie...@gmail.com Try again with the recently released Apache TomEE 1.6.0? On Mon, Nov 25, 2013 at 9:01 PM, José Luis Cetina maxtorz...@gmail.com wrote: Any advice? --

Re: redelivery of MDB with BMT

2013-11-25 Thread ZhongGuan
I test it in another environment, also a very simple example of MDB using BMT and throw RuntimeException. But it does not work. :( Here is My MDB code @MessageDriven(activationConfig = { @ActivationConfigProperty(propertyName = destination, propertyValue = FooQueue),

Re: redelivery of MDB with BMT

2013-11-25 Thread Romain Manni-Bucau
Hi Did you check the dlq? What's your prefetch policy? Le 26 nov. 2013 06:43, ZhongGuan guanzh.em...@gmail.com a écrit : I test it in another environment, also a very simple example of MDB using BMT and throw RuntimeException. But it does not work. :( Here is My MDB code