Hi
you can surely not use the writer but OutputStream directly or
OutputStreamWriter will use a buffer to not touch the stream each time
you write a byte - for performances. That's why you needed to call
flush (tomcat, tomee, or plain main ;))
Romain Manni-Bucau
Twitter: @rmannibucau
Blog:
Right. No magic solution.
I've seen the content type pattern, but it has many drawbacks so I would
not go with this one.
--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com
On Sun, Oct 19, 2014 at 1:48 PM, Alex Soto asot...@gmail.com wrote:
Yes this is what I
Hi,
I have been playing a bit so maybe you prefer using URI?
For example in case of version on URI I can use the subresource approach:
@Path(/{version: [v]\\d+[[.]\\d+]?}/)
public AppApiSubResource getVersionedSubResource(@PathParam(version)
String fullVersion) {
String version =
Yep, exactly
--
Jean-Louis Monteiro
http://twitter.com/jlouismonteiro
http://www.tomitribe.com
On Mon, Oct 20, 2014 at 10:12 AM, Alex Soto asot...@gmail.com wrote:
Hi,
I have been playing a bit so maybe you prefer using URI?
For example in case of version on URI I can use the subresource
most of real impl uses path (/v1) but i like header solution. allows
to handle default correctly without rewrite magic and to add it for v2
once forgotten for v1 :)
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Yes I like the header approach as well, but then I see no way to implement
it directly using subresources.
2014-10-20 10:14 GMT+02:00 Romain Manni-Bucau rmannibu...@tomitribe.com:
most of real impl uses path (/v1) but i like header solution. allows
to handle default correctly without rewrite
You can read the header in the router, route then delegates the impl
to the next? Also means you can just use rest endpoint to select the
right impl using same pattern but with a single JAXRS level surely
(and routing is done to service level).
Romain Manni-Bucau
@rmannibucau
yes but then @Consumes and @Produces not containing the version part:
@Path(/resource)
@Consumes({application/xml, application/json})
@Produces({application/xml, application/json})
public AppApiSubResource getVersionedSubResource() {
String version = getVersionFromHeader();
return
sure, only the header does it
Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau
2014-10-20 10:34 GMT+02:00 Alex Soto asot...@gmail.com:
yes but then @Consumes and @Produces not containing the version part:
yes sorry when I said content I mean the Content field of Header.
2014-10-20 10:36 GMT+02:00 Romain Manni-Bucau rmannibu...@gmail.com:
sure, only the header does it
Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau
right, you use your own header since there is no standard for
versioning (and actually versioning means a lot of things depending
the company ;))
Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
http://rmannibucau.wordpress.com
https://github.com/rmannibucau
2014-10-20 10:38 GMT+02:00
Cool, thanks.
2014-10-20 10:41 GMT+02:00 Romain Manni-Bucau rmannibu...@gmail.com:
right, you use your own header since there is no standard for
versioning (and actually versioning means a lot of things depending
the company ;))
Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
Hi,
When I'm using OpenEJB for testing (EJBContainerRule/OpenEjbRunner) and want to
test my @Stateless web-service security (@RolesAllowed), I have to include an
openejb-jar.xml next to ejb-jar.xml containing an
auth-methodBASIC/auth-method so that users and groups are read from
Hi
using a system property should work as well with all embedded runners.
Just ensure it is set before the rule starts.
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
Thanks!
From: rmannibu...@tomitribe.com
Date: Mon, 20 Oct 2014 11:01:37 +0200
Subject: Re: openejb-jar.xml and testing
To: users@tomee.apache.org
Hi
using a system property should work as well with all embedded runners.
Just ensure it is set
Hi
I was previously using Tomee 1.5.2 for our WebApp and was able to successful
use a legacy version of quartz alongside whatever version Tomee 1.5.2 was using.
I have downloaded Tomee 1.7.1 Plus and was pleasantly surprised our app just
ran out of the box, my joy was short lived when I tried
Hi
we don't have org.quartz packages anymore, which version do you use?
quartz 1.5 has the setter.
Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau
2014-10-20 11:16 GMT+02:00
How it works the tomee plugin?
If i write : tomee:run ,
Maven download a complete new tomee into the fir of my project ?
Also if i would get the tomee embedded ?
--
View this message in context:
From the repository maven not exist the tomee plus embedded.
--
View this message in context:
http://tomee-openejb.979440.n4.nabble.com/pom-for-tomee-embedded-plus-or-plume-with-Arquillan-for-test-tp4672424p4672485.html
Sent from the TomEE Users mailing list archive at Nabble.com.
not sure what you did but it is actually pretty easy:
1) you use tomee remote arquillian adapter - change the classifier in
arquillian.xml
2) you use tomee-embedded - bring the dependencies you need to get
the setup you want (as any projet ;)). Plus = add tomee-webservices,
tomee-jaxrs,
Yeah, you're right Romain, I didn't remember that in plain Tomcat I was doing
writer.close(); and close() flushes automatically the stream.
--
View this message in context:
openejb-jar xmlns=http://www.openejb.org/openejb-jar/1.1; xmlns:xsi=
http://www.w3.org/2001/XMLSchema-instance;
xsi:schemaLocation=http://www.openejb.org/openejb-jar/1.1
pojo-deployment class-name=jaxrs-application
properties
cxf.jaxrs.providers = json
Thanks, now its working.
But now all of my object's are serialize as array, do i have to map each
pojo and set the attributes that i need to serializeAsArray ?
public class MyObject{
int id; String name;
}
public MyObject getInfo(){
return new MyObject();
}
Now my json return value es:
well I stopped trying to get what I want with jettison since years.
The usage of jaxb tree to get json is quite broken in several places
so my advice would be to use either johnzon jaxrs provider or jackson.
Romain Manni-Bucau
@rmannibucau
http://www.tomitribe.com
BTW is johnzon already integrated in trunk of TomEE?
2014-10-20 16:48 GMT+02:00 Romain Manni-Bucau rmannibu...@gmail.com:
well I stopped trying to get what I want with jettison since years.
The usage of jaxb tree to get json is quite broken in several places
so my advice would be to use
2014-10-20 16:49 GMT+02:00 Alex Soto asot...@gmail.com:
BTW is johnzon already integrated in trunk of TomEE?
yep
2014-10-20 16:48 GMT+02:00 Romain Manni-Bucau rmannibu...@gmail.com:
well I stopped trying to get what I want with jettison since years.
The usage of jaxb tree to get json is
1. If i use jackson do i have the same serializeAsArray trouble? (I thought
i was using jackson, see my first mail in this conversation)
2. How do i define my Jacksonprovider, i try to do what is suggested here:
@waastad by the way, can you share your own provider?
2014-10-20 10:21 GMT-05:00 José Luis Cetina maxtorz...@gmail.com:
1. If i use jackson do i have the same serializeAsArray trouble? (I thought
i was using jackson, see my first mail in this conversation)
2. How do i define my
2014-10-20 17:21 GMT+02:00 José Luis Cetina maxtorz...@gmail.com:
1. If i use jackson do i have the same serializeAsArray trouble? (I thought
i was using jackson, see my first mail in this conversation)
Johnzon and Jackson are what you expect mot of the time.
2. How do i define my
Hi
I'd like to create quartz timers not using TimerServiceAPI
Is it possible to be done using the new shaded quartz classes or should I
add another quartz jar to the project?
If I have to add the quartz jar, is it safe?
TIA
Leo
Hi Romain
We use 1.1.6, which is why we don’t have the setter.
Regards,
Adam Steen | Software Developer
Risk Management Technologies | Tel: +61 8 9322 1711
-Original Message-
From: Romain Manni-Bucau [mailto:rmannibu...@tomitribe.com]
Sent: Monday, 20 October 2014 5:26 PM
To:
Hi
I figure out quartz is trying to load the quartz.properties file from
apache-tomee-plus-1.7.1/lib/quartz-openejb-shade-2.2.1.jar!/quartz.properties,
as that’s the first properties file on the class path.
I have solved the problem, but just renaming the quartz.properties we use to
32 matches
Mail list logo