<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3516830379230085629</id><updated>2011-11-30T10:00:47.012+01:00</updated><title type='text'>Java Notepad</title><subtitle type='html'></subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://javanotepad.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3516830379230085629/posts/default?max-results=100'/><link rel='alternate' type='text/html' href='http://javanotepad.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><author><name>Puche</name><uri>http://www.blogger.com/profile/14406061190185738856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://pucherico.googlepages.com/myself.png'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>8</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>100</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3516830379230085629.post-2024787674114653083</id><published>2007-10-29T23:09:00.000+01:00</published><updated>2007-10-30T09:05:58.527+01:00</updated><title type='text'>My problems putting RichFaces to work</title><summary type='text'>There are many open source JSF component libraries in the market. So I had to choose one among them for my JSF projects. After some exhaustive exploration, I chose Ajax4jsf and RichFaces (now both projects are merged) as my component library because of the ajax-enabled components and also because I think it has enough JSF components to work with.I read the RichFaces Developer Guide, and followed </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3516830379230085629/posts/default/2024787674114653083'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3516830379230085629/posts/default/2024787674114653083'/><link rel='alternate' type='text/html' href='http://javanotepad.blogspot.com/2007/10/my-problems-putting-richfaces-to-work.html' title='My problems putting RichFaces to work'/><author><name>Puche</name><uri>http://www.blogger.com/profile/14406061190185738856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://pucherico.googlepages.com/myself.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-3516830379230085629.post-3964538730031963388</id><published>2007-09-30T21:37:00.000+02:00</published><updated>2007-10-01T08:58:33.009+02:00</updated><title type='text'>instanceof doesn't work with Generics!</title><summary type='text'>The information of generic types are not accessible at runtime. Contrary to what happens in other languages such us C++, this can be seen as a limitation that we, Java programmers, must bear with.Simple scenarioAs a sample scenario to show up the problem, we´ll write a simple generic Pair class containing a pair of objects of the same given parameter type T.If you try to write a code such as this</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3516830379230085629/posts/default/3964538730031963388'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3516830379230085629/posts/default/3964538730031963388'/><link rel='alternate' type='text/html' href='http://javanotepad.blogspot.com/2007/09/instanceof-doesnt-work-with-generics.html' title='instanceof doesn&apos;t work with Generics!'/><author><name>Puche</name><uri>http://www.blogger.com/profile/14406061190185738856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://pucherico.googlepages.com/myself.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-3516830379230085629.post-2522940039062040501</id><published>2007-08-02T14:47:00.000+02:00</published><updated>2007-11-05T13:15:33.819+01:00</updated><title type='text'>Managing JPA EntityManager lifecycle</title><summary type='text'>Managing EntityManager lifecycle when using JPA in a non enterprise environment (e.g. Tomcat) is a custom task you must take care of by yourself for you don't have the IoC (Dependence Injection) of a Java EE 5 to manage the EntityManager lifecycle. It happened the same when we discussed the EntityManagerFactory lifecycle in a previous post. Therefore, in this situation, you should consider the </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3516830379230085629/posts/default/2522940039062040501'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3516830379230085629/posts/default/2522940039062040501'/><link rel='alternate' type='text/html' href='http://javanotepad.blogspot.com/2007/08/managing-jpa-entitymanager-lifecycle.html' title='Managing JPA EntityManager lifecycle'/><author><name>Puche</name><uri>http://www.blogger.com/profile/14406061190185738856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://pucherico.googlepages.com/myself.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-3516830379230085629.post-7450344881337174446</id><published>2007-07-26T22:04:00.000+02:00</published><updated>2007-07-26T23:31:05.747+02:00</updated><title type='text'>Working with a non JTA DataSource in Toplink Essentials</title><summary type='text'>As it is commonly known, Toplink Essentials, as a JPA engine, can be used both inside a Java EE 5 application server and outside an EJB container in a Java Standard Edition (Java SE) 5 application.However, if you are working with JPA outside an EJB container, you would have known that by default you can't define a data source to work with in your persistence.xml archive. You just need to define </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3516830379230085629/posts/default/7450344881337174446'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3516830379230085629/posts/default/7450344881337174446'/><link rel='alternate' type='text/html' href='http://javanotepad.blogspot.com/2007/07/working-with-non-jta-datasource-in.html' title='Working with a non JTA DataSource in Toplink Essentials'/><author><name>Puche</name><uri>http://www.blogger.com/profile/14406061190185738856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://pucherico.googlepages.com/myself.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-3516830379230085629.post-4775410230345279612</id><published>2007-06-28T22:32:00.000+02:00</published><updated>2007-06-29T12:54:11.079+02:00</updated><title type='text'>How to close a JPA EntityManger in web applications</title><summary type='text'>When working with resources it's always important to ensure they are closed when not longer needed. Working with JPA there are two kind of resources we can take care of: EntityManager and transactions.Context  As of Java EE, you can use IoC to inject an EntityManager so the Container is the one who manage the whole life cycle of EntityManagers. The context we are referring here is when no such a </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3516830379230085629/posts/default/4775410230345279612'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3516830379230085629/posts/default/4775410230345279612'/><link rel='alternate' type='text/html' href='http://javanotepad.blogspot.com/2007/06/how-to-close-jpa-entitymanger-in-web.html' title='How to close a JPA EntityManger in web applications'/><author><name>Puche</name><uri>http://www.blogger.com/profile/14406061190185738856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://pucherico.googlepages.com/myself.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-3516830379230085629.post-6663921780048783924</id><published>2007-05-21T08:49:00.000+02:00</published><updated>2007-06-29T13:13:43.447+02:00</updated><title type='text'>Bug in Hibernate implementation of JPA: Persisting an entity</title><summary type='text'>I've found a bug in the Hibernate implementation of JPA when persisting an entity.  I'm working with JPA using two different JPA implementations: Hibernate EM and Toplink Essential, and I've found certain interesting conditions (I'm to describe) upon which Hibernate throws an unexpected exception that I think it shouldn't.  The observation The exception I obtained was this:</summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3516830379230085629/posts/default/6663921780048783924'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3516830379230085629/posts/default/6663921780048783924'/><link rel='alternate' type='text/html' href='http://javanotepad.blogspot.com/2007/05/ive-found-bug-in-hibernate.html' title='Bug in Hibernate implementation of JPA: Persisting an entity'/><author><name>Puche</name><uri>http://www.blogger.com/profile/14406061190185738856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://pucherico.googlepages.com/myself.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-3516830379230085629.post-1005953585237780958</id><published>2007-05-04T08:47:00.000+02:00</published><updated>2007-07-24T14:34:15.933+02:00</updated><title type='text'>JPA EntityManagerFactory in web applications</title><summary type='text'>           Coding Java Persistence web applications that run outside a Java EE Server   (e.g. Apache Tomcat) is slightly different from JPA applications inside an   Application Server. The main difference has to do with the responsibility to   manage the EntityManagerFactory   lifecycle. Because there is no Dependence Injection outside the Java EE   Server, this responsibility fall   directly on </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3516830379230085629/posts/default/1005953585237780958'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3516830379230085629/posts/default/1005953585237780958'/><link rel='alternate' type='text/html' href='http://javanotepad.blogspot.com/2007/05/jpa-entitymanagerfactory-in-web.html' title='JPA EntityManagerFactory in web applications'/><author><name>Puche</name><uri>http://www.blogger.com/profile/14406061190185738856</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='32' height='24' src='http://pucherico.googlepages.com/myself.png'/></author></entry><entry><id>tag:blogger.com,1999:blog-3516830379230085629.post-2370258294916723188</id><published>2007-04-13T13:23:00.000+02:00</published><updated>2007-06-29T12:53:05.078+02:00</updated><title type='text'>Publishing JSF application from behind a proxy</title><summary type='text'>  Problem Sometimes application servers are located behind a web proxy, so that the contents that they publish is available from a general URL space. For example, the web server www.acme.es acts as a proxy for the web application server srv3.acme.es, so that every web page which is published like http://srv3.acme.es/* are accessible from http://www.acme.es/srv3/*. The problem is that links </summary><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3516830379230085629/posts/default/2370258294916723188'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3516830379230085629/posts/default/2370258294916723188'/><link rel='alternate' type='text/html' href='http://javanotepad.blogspot.com/2007/04/problem-sometimes-application-servers.html' title='Publishing JSF application from behind a proxy'/><author><name>Gran Raúl</name><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author></entry></feed>
