[jboss-user] [JBoss Seam] - Re: transaction failed

2008-01-25 Thread jagin
Hi, I have the same problem. Did you resolve it? Regards Jarek View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4123687#4123687 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4123687 _

[jboss-user] [JBoss Seam] - Debuging hibernate during tests in Embedded JBoss

2008-01-23 Thread jagin
Hi, I want to debug hibernate during my test on embedded Jboss. So I set | | | | in bootstrap/log4j.xml but I got no debug information from hibernate. Why? Is there something else to be set? (I'm using jboss-seam-2.0.0.GA) Regards Jarek View the original post :

[jboss-user] [JBoss Seam] - Re: Uni testing and datasource problem

2008-01-07 Thread jagin
At the first time I tried to do a simple unit testing without SeamTest (the same test as in my first post but without 'extends SeamTest' takeoff on JBoss Seam 2.0.0.GA Reference book page 293-294). But i got error Could not find datasource: java:/DefaultDS because the line emf = Persistence.cre

[jboss-user] [JBoss Seam] - Re: Uni testing and datasource problem

2008-01-07 Thread jagin
"[EMAIL PROTECTED]" wrote : You need to be in a FacesRequest for this to work. But I want to do a simple unit testing. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4117648#4117648 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode

[jboss-user] [JBoss Seam] - Re: How to create layered Seam application

2008-01-07 Thread jagin
Becouse EJB3 is a new topic for me i've started to think that layering is out of date for this technology and start to search something about this on the google. I found some very interesting articles where people have the same dilema about layering an application: | http://www.adam-bien.com

[jboss-user] [JBoss Seam] - Re: How to create layered Seam application

2008-01-06 Thread jagin
Hmm... I'm from Appfuse framework school where we have all this layers (MVC pattern) so that's why I was looking for a like solution in Jboss Seam. It looks like the way of using Jboss Seam is a bit different. Thanks Jarek View the original post : http://www.jboss.com/index.html?module=bb&op=

[jboss-user] [JBoss Seam] - Re: Uni testing and datasource problem

2008-01-06 Thread jagin
"[EMAIL PROTECTED]" wrote : If you are using Embedded JBoss/SeamTest you don't need to create the entity manager yourself. If you are using an SMPC | | getInstance("entityManager"); | | otherwise do a JNDI lookup for it. I tried this: | @Test | public void testFindByUserna

[jboss-user] [JBoss Seam] - Re: Uni testing and datasource problem

2008-01-06 Thread jagin
The last working example is not very good because for every @Test method we have to createEntityManagerFactory. I don't think it's a good idea. So i found a better solution: | public class MyTest extends SeamTest { | private EntityManagerFactory emf; | | @Override | @B

[jboss-user] [JBoss Seam] - Re: Uni testing and datasource problem

2008-01-06 Thread jagin
OK, I resolved this mystery. The unit test should look like this: | public class MyTest extends SeamTest { | | private EntityManagerFactory emf; | | @Test | public void testFindByUsername() { | emf = Persistence.createEntityManagerFactory("ezapp"); |

[jboss-user] [JBoss Seam] - Re: Uni testing and datasource problem

2008-01-06 Thread jagin
Please help me with the problem !! I've been strugling with this for two days (all weekend) and have no idea whats wrong. I'm new to JBoss Seam but not new to java web development but I have no idea what's wrong. It drives me crazy! Can anybody try to generate any simple application with seam-ge

[jboss-user] [JBoss Seam] - Re: How to create layered Seam application

2008-01-06 Thread jagin
"kukeltje" wrote : I'm not an expert (and did not read the document in detail since most was a plain intro to seam), but wasn't (isn't) one of the goals of seam to get rid to this overly layered designs? For simple web application it's ok to have only model and actions but it's get more complic

[jboss-user] [JBoss Seam] - How to create layered Seam application

2008-01-05 Thread jagin
Hi, I found very interesting presentation at http://www.jugpadova.it/files/IntroductionJBossSeam.pdf about how to create Seam application with layers like domain, persistence, application (aka service) and controller. Example can be found here http://www.jugpadova.it/files/IntroJBossSeam_Exam

[jboss-user] [JBoss Seam] - Uni testing and datasource problem

2008-01-05 Thread jagin
Hi to all, I generate simple application with seam-gen. I didn't touch any existing code. I add simple UserDaoSeam class wich I want to test. I have some problem with simple unit testing. I want to do something like in the Seam Reference book on page 293-294. The code of the test is like this: