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
__
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
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
__
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
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
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
|
|
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
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
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
_
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
_
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
___
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
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
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
___
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
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 :
16 matches
Mail list logo