Bookmark Topic Watch Topic
  • New Topic

Using Hibernate with jboss  RSS feed

Shenaz Assu
Ranch Hand
Posts: 32
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi All,

I'm very new to Hibernate. We have a requirement to use use Hibernate along with Message-driven beans. We are using Jboss as the app server. I have developed a sample stand alone Hibernate application and its working fine. But when i try to access it from my MDB, i'm getting the following exception. I have packaged everything into the ejb-jar and deployed it in the jboss.

Can any one help me out??

3:32:03,828 INFO [SessionFactoryObjectFactory] Not binding factory to JNDI, no JNDI name configured
3:32:03,828 INFO [SessionFactoryImpl] Checking 0 named queries
3:32:03,843 INFO [STDOUT] org.hibernate.HibernateException: No TransactionManagerLookup specified
at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(
at com.Util.TestClient.newCreateEvent(Unknown Source)
at com.Component1.MessageBean.onMessage(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at org.jboss.invocation.Invocation.performCall(
at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(
at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(
at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(
at org.jboss.ejb.plugins.CallValidationInterceptor.invoke(
at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(
at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(
at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(
at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(
at org.jboss.ejb.plugins.LogInterceptor.invoke(
at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(
at org.jboss.ejb.MessageDrivenContainer.internalInvoke(
at org.jboss.ejb.Container.invoke(
at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(
at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(
at org.jboss.jms.asf.StdServerSession.onMessage(
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$
Jaikiran Pai
Posts: 10447
IntelliJ IDE Ubuntu
  • Mark post as helpful
  • send pies
  • Report post to moderator
Let's continue this discussion in your other thread in the JBoss forum.
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!