Re: [Resin-interest] java unicode problem in cross-plateform situation
You may want to double check if you really have UTF-8 in your environment in all circumstances. Here you also depend on the character set of the source file, which is unnecessary. And your code could be simpler. char[] urlset3a = {0xc0,\u00c1, // either numeric literals or unicode escapes char[] urlset3b = {'a','a' String s = ; for (int i=0; iwrote: > Hello > I wrote a piece of code to remove diacritics : > > String urlset3a[]={"À","Á" > String urlset3b[]={"a","a" > for (idx=0;idx { > String lit=null; > try{lit=new String(urlset3a[idx].getBytes(),"UTF-8");}catch(Exception > ex){} > if (lit!=null) > sb_replace(ret,lit,urlset3b[idx]); > } > > This code works perfectly on macosx and on linux when compiled on the > plateform it is run on. > > javac com/adl/java/utils/Stringutils.java > java com.adl.java.utils.Stringutils "aÄaé° ç%Щx" > URL:aaae-cx > > But when I compile this class on macosx and if I copy and use this > .class on linux, the accents and special characters are no more replaced > correctly (same in the other way) : > > Mac class used on linux : > java com.adl.java.utils.Stringutils "aÄaé° ç%Щx" > aäaé°-çx > > Linux class used on mac : > java com.adl.java.utils.Stringutils "aÄaé° ç%Щx" > URL:a?a??-?x > > My LANG env var is fr_FR.UTF-8 on both plateforms. java version > "1.5.0_17" on linux and "1.5.0_22" on mac > > > Does anybody know why and how to correct this ? (this class is in a jar > that is copied to the server and not compiled by resin) > Thanks > -- > Riccardo Cohen > Architecte du Logiciel > http://www.architectedulogiciel.fr > +33 (0)6.09.83.64.49 > Membre du réseau http://www.reflexe-conseil-centre.org > > > > > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest > ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Messaging Config
I was looking at the lastest 4.0.3 docs and it seems to indicate that I should do this for my configuration: ... delivery >From the docs here: http://caucho.com/resin/admin/candi.xtp#Custom%20Services But there is no JmsListener class, and resin complains like this: 10-01-15 13:18:56.666] {main} WEB-INF/resin-web.xml:37: 'QName[resin:{urn:java:com.caucho.resin}JmsListener]' cannot be instantiated because it does not map to a known class. I wanted to replace the old style way with the new candi config. Here is the old (working) style. #{delivery} This stuff seems pretty confusing and the docs seem to be misleading and wrong. In addition there seems to be some missing pieces in making the connections, even if the docs were correct. What is the suggestion config here? Is there a more consise syntax that I should be using? Thanks in advance, Scott ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] Resin: configuration for a jms client]
Daniel López wrote: > Hi there, > > Nobody uses Resin's JMS from external applications? Do people use > other JMS solutions inside Resin? > I'll stick with OpenJMS for now, but as we already have Resin nodes > installed, I thought it would have been intesting to use them and > remove one service. > > The scarce documentation and apparent lack of usage is making me think > twice :). The 4.0.x JMS is very new, since we rewrote it to use BAM and the underlying model. I do think we need another pass through that implementation before we declare it production ready. -- Scott > > D. > > > > Subject: > [Resin-interest] Resin: configuration for a jms client > From: > Daniel López > Date: > Tue, 12 Jan 2010 14:37:09 +0100 > To: > General Discussion for the Resin application server > > > To: > General Discussion for the Resin application server > > > > While we are talking about JMS configuration, how can one access the JMS > queues on a Resin server from an external client? > > I've seen the documentation regarding accessing the queues defined in > the same server, from JSPs, using dependency injection etc. but I have > been unable to find how to access the queues from another JVM. > > I'm guessing one would need to configure access to the JMS queues > through hessian/burlap? And then what would be the appropriate > JNDI_PROVIDER_URL and INITIAL_CONTEXT_FACTORY formats? > > Thanks, > D. > > > > > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest > > > > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest > ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] the response time
I don't understand why people still put their container behind apache. Unless you are using mod_rewrite or something like that, you don't need to do that. It isn't like apache somehow 'protects' resin from evil doers. If you need a load balancer, get a load balancer. jon On Fri, Jan 15, 2010 at 2:39 AM, long wang wrote: > Hi, there, > > I integrate resin with apache. My resin's version is 3.0.19 and apache is > 2.0.59. I configured both of them to record the response time in > microseconds(log format %D). > > But I found the time recorded by resin is much larger than apache. > Sometimes it's hundreds of times larger. > > Does anyone know the reason? > > Regards, > Ken > > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest > > ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
Re: [Resin-interest] the response time
long wang wrote: > Hi, there, > > I integrate resin with apache. My resin's version is 3.0.19 and apache > is 2.0.59. I configured both of them to record the response time in > microseconds(log format %D). > > But I found the time recorded by resin is much larger than apache. > Sometimes it's hundreds of times larger. > > Does anyone know the reason? Resin's response time measurement isn't exact. For performance reasons, it's only accurate to about 500ms. In Resin 4.0.x, we've updated the time algorithm to increase the accuracy, but Resin still doesn't measure the exact time. For real performance/profiling, you'd want to look at something like the /resin-admin profiler or some 3rd-party profiling tool. -- Scott > > Regards, > Ken > > > ___ > resin-interest mailing list > resin-interest@caucho.com > http://maillist.caucho.com/mailman/listinfo/resin-interest > ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] Resin: configuration for a jms client]
Hi there, Nobody uses Resin's JMS from external applications? Do people use other JMS solutions inside Resin? I'll stick with OpenJMS for now, but as we already have Resin nodes installed, I thought it would have been intesting to use them and remove one service. The scarce documentation and apparent lack of usage is making me think twice :). D. --- Begin Message --- While we are talking about JMS configuration, how can one access the JMS queues on a Resin server from an external client? I've seen the documentation regarding accessing the queues defined in the same server, from JSPs, using dependency injection etc. but I have been unable to find how to access the queues from another JVM. I'm guessing one would need to configure access to the JMS queues through hessian/burlap? And then what would be the appropriate JNDI_PROVIDER_URL and INITIAL_CONTEXT_FACTORY formats? Thanks, D. ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest --- End Message --- ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] the response time
Hi, there, I integrate resin with apache. My resin's version is 3.0.19 and apache is 2.0.59. I configured both of them to record the response time in microseconds(log format %D). But I found the time recorded by resin is much larger than apache. Sometimes it's hundreds of times larger. Does anyone know the reason? Regards, Ken ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest
[Resin-interest] java unicode problem in cross-plateform situation
Hello I wrote a piece of code to remove diacritics : String urlset3a[]={"À","Á" String urlset3b[]={"a","a" for (idx=0;idxhttp://www.architectedulogiciel.fr +33 (0)6.09.83.64.49 Membre du réseau http://www.reflexe-conseil-centre.org ___ resin-interest mailing list resin-interest@caucho.com http://maillist.caucho.com/mailman/listinfo/resin-interest