[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread [EMAIL PROTECTED]
Solution is to include the jndi properties in hibernate.cfg.xml (prefixed with hibernate.jndi.) View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994075#3994075 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994075 __

[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread [EMAIL PROTECTED]
Sure. [EMAIL PROTECTED] View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994059#3994059 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994059 ___ jboss-user mailing list jboss-u

[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread lle
again, it got truncated. Gavin, Can I send it to your email instead? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994058#3994058 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994058 __

[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread [EMAIL PROTECTED]
Um, that got truncated, it seems... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994052#3994052 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994052 ___ jboss-user mailing

[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread [EMAIL PROTECTED]
OK, that much looks good. Now post a debug-level Seam log. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994042#3994042 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994042

[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread lle
Sorry, forgot to mention that in my jboss-beans.xml, i got this: | | com.mysql.jdbc.Driver | jdbc:mysql://localhost:3306/ga_db | root | sadmin | java:/hibernateDatasource-mysql | 0 | 10 | 1000 | 10 | |

[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread [EMAIL PROTECTED]
And what is in jboss-beans.xml? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994038#3994038 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994038 ___ jboss-user mailing list

[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread lle
This is what I got in my components.xml (based on the hibernate2 example) | | | | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994037#3994037 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=399403

[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread [EMAIL PROTECTED]
So in your environment, what is bootstrapping the datasource? View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994028#3994028 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994028 _

[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread lle
I tried and it still didn't work. Same exception occurs. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994026#3994026 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994026 _

[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread [EMAIL PROTECTED]
Try @Startup(depends="org.jboss.seam.core.microcontainer") View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3994018#3994018 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3994018 ___

[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-14 Thread lle
Thanks Gavin. I tried using SessionFactory.openSession() approach by having my application scope bean to read hibernate.cfg.xml file to build the SessionFactory. However, I got the following exception when startup Tomcat: | Caused by: org.hibernate.HibernateException: Could not find datasource

[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-13 Thread [EMAIL PROTECTED]
No, not really, but you can always call EntityManagerFactory.createEntityManager(), or SessionFactory.openSession() manually. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993682#3993682 Reply to the post : http://www.jboss.com/index.html?module=bb&op=post

[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-13 Thread lle
Hi, If i don't use ejb3, is there anything equivalent to @PersistenceContext? Thanks. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993680#3993680 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993680 ___

[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-13 Thread krica
OK, that's clear enough :) Thanks! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993326#3993326 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3993326 ___ jboss-user mailing

[jboss-user] [JBoss Seam] - Re: Can't get Seam managed persistance working in an app sco

2006-12-13 Thread petemuir
Seam components aren't available for bijection in in the @Create method of an @Startup application scoped object. You're doing the right thing using @PersistenceContext here. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3993304#3993304 Reply to the post :