Re: can i use ijetty as a server and host restlet service on android?
Hi Keith, I haven't tried to integrate Restlet with iJetty on Android and don't know if it works. Feel free to enter a RFE for this in our issue tracker. As an alternative, you can try our internal HTTP server, part of org.restlet.jar which works on the Android edition as well. Best regards, Jerome 2010/4/27 keith keithlee...@gmail.com hi: i have a problem while using ijetty as a server on android to host restlet service, the helloworld example. i try to access it from my laptop and the android emulator web browser but both of them do not work. the ijetty says that the service is unavailable. but if i deploy the service in tomcat in my pc, then i can access it from my android emulator. so i wonder wether i can use ijetty as a server on android to host restlet service or not. and if i can, what steps should i follow. thanks a lot. keith -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/can-i-use-ijetty-as-a-server-and-host-restlet-service-on-android-tp4966008p4966008.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2596411 -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2597799
Re: Restlet and DAO
Hi Nico, Here is the process: - create a subclass of ConnectorService - override the afterSend(Representation) method - test the representation instance against your base MyRepresentation class - cast it to your MyRepresentation class and invoke your commit/rollaback logic I would however recommend to use the ServerResource#onSent callback mechanism instead as it will be easier to use, especially if you rely on automatic bean - representation conversion and Restlet annotations. Best regards, Jerome 2010/4/28 Nico Van Cleemput nico.vancleem...@gmail.com Hi Jerome Thanks for your pointers. If it isn't obvious, I'm quite new to this framework (and actually I'm just an amateur who is also new to web applications ;-)). I also need to apologize, because after searching a bit more I noticed that there was already a similar question in this list about a year ago. I do have a follow-up question. Is there somewhere some example code on how this could be achieved? More specific I'm struggling with the following: if I create my DAO and start the transaction in doInit() of UniformResource, then how do I get a reference to it in ConnectorService, so I can commit or rollback in afterSend? Just let me finish by giving you some more praise. ;-) The framework looks really good, but at the moment it still a bit opaque. I'm looking forward your In Action book and hope that you describe somewhere the steps that are taken from when a request enters the frameworks to when the response leaves, because I still have the feeling I'm missing a lot of the details. (or if you already have a blogpost or something like that describing that in detail, you may always point me in the right direction ;)) Kind regards, Nico jlouvel wrote: Hi Nico, UniformResource has two methods, doInit() and doRelease() that can be used for this. However, be careful with your transaction strategy if your representations need access to the DAO at writing time (after afterHandle() is called, in the connector).You can used ServerResource#onSent callback for this or the ConnectorService#afterSend method. Best regards, Jerome Louvel -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/Restlet-and-DAO-tp4962381p4972782.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2597753 -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2597819
RE: Re: SSL modifications since 2.0 RC 1 ?
Hey Bruno, Cheers, that clarified lots of SSL things for me and allowed me to fix the RC 3 client as you suggested. I'm still a bit confused about OS X Safari refusing connections, though - and wondering whether the same issue affects properly signed certificates (as opposed to self-signed ones). Do you have any idea what could cause this ? Is this something I should file a bug report for - after all, while Safari doesn't have that huge a market share, the fact that Restlet can't seem to serve HTTPS requests to it seems rather critical to me... Thanks again ! Nicolas -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2597872
Re: Restlet and DAO
Hi Jerome Thanks for breaking it down in babysteps for me. ;-) Cheers, Nico -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/Restlet-and-DAO-tp4962381p4973512.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2597893
Re: can i use ijetty as a server and host restlet service on android?
Hi Jerome: Thanks for your reply. So do you mean that i don't have to use any other server on android? And after i develop a restlet web service with eclipse, how can i deploy it onto android? Do i have to export the web project into WAR file or something else? And is there a tutorial especially for android restlet? Sorry for so much questions, i am a new one using restlet. Thanks a lot Jerome. Best regards Keith -- View this message in context: http://restlet-discuss.1400322.n2.nabble.com/can-i-use-ijetty-as-a-server-and-host-restlet-service-on-android-tp4966008p4973798.html Sent from the Restlet Discuss mailing list archive at Nabble.com. -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2597951
RE: Re: SSL modifications since 2.0 RC 1 ?
This might be an important bit of information. After running a few more tests, I realised that Safari would: - fail ignoring certificates if the server is running on OS X. - succeed in ignoring certificates if the server is running on Debian Lenny (5.0) This might be an OS X only issue after all. Nicolas -- http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447dsMessageId=2597997