0 Replies Latest reply on Jul 25, 2002 12:39 PM by adhar

    Problems while migrating from JBoss2.4 to JBoss3.0 - Please

    adhar

      Hi here are the contents of some of my xml files,

      ejb-jar.xml
      -----------

      <message-driven>
      <ejb-name>AuditPusher</ejb-name>
      <ejb-class>com.mitra.audit.ejb.pusher.AuditPusher</ejb-class>
      <message-selector/>
      <transaction-type>Container</transaction-type>
      <acknowledge-mode>Auto-acknowledge</acknowledge-mode>
      <message-driven-destination>
      <destination-type>javax.jms.Queue</destination-type>
      </message-driven-destination>
      <resource-ref>
      DataSource used by message-driven beans
      <res-ref-name>jdbc/BackEndDatabase</res-ref-name>
      <res-type>javax.sql.DataSource</res-type>
      <res-auth>Container</res-auth>
      </resource-ref>
      </message-driven>


      jboss.xml
      ---------

      <resource-manager>
      <res-jndi-name>java:/AuditPool</res-jndi-name>
      <res-name>jdbc/BackEndDatabase</res-name>
      </resource-manager>



      jboss.jcml
      ----------


      AuditPool
      org.jboss.pool.jdbc.xa.wrapper.XADataSourceImpl
      jdbc:JSQLConnect://localhost/database=audit&user=sa&password=sa&sqlversion=7

      10



      I know that in JBoss 3.0 there is no jboss.jcml
      Also going through various topics in the forum, I figured out that I need to have mssql-service.xml in the deploy since I am using the MS-SQL database.
      I tried out various combinations but nothing seemed to work.
      Could you please suggest where can I specify the settings of jcml file and how?
      I even tried putting the same mbean chunks from the jcml file into mssql-service.xml, jboss-service.xml etc. but it doesnt work.

      Im my code I have this method,

      static private Connection getConnection() throws Exception
      {
      InitialContext initcntx = new InitialContext();
      DataSource ds = (DataSource) initcntx.lookup("java:comp/env/jdbc/BackEndDatabase");
      return ds.getConnection();
      }

      Following is the error that I get,

      10:59:59,719 INFO [STDOUT] Could not process audit message: javax.naming.NameNotFoundException: AuditPool not bound
      10:59:59,719 ERROR [STDERR] javax.naming.NameNotFoundException: AuditPool not bound
      10:59:59,719 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:495)
      10:59:59,719 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:503)
      10:59:59,719 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:509)
      10:59:59,729 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:282)
      10:59:59,729 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:445)
      10:59:59,729 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429)
      10:59:59,729 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:350)
      10:59:59,729 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:522)
      10:59:59,729 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:558)
      10:59:59,729 ERROR [STDERR] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:429)
      10:59:59,729 ERROR [STDERR] at javax.naming.InitialContext.lookup(InitialContext.java:350)
      10:59:59,729 ERROR [STDERR] at com.mitra.audit.ejb.pusher.AuditPusher.getConnection(AuditPusher.java:357)
      10:59:59,729 ERROR [STDERR] at com.mitra.audit.ejb.pusher.AuditPusher.cacheMessage(AuditPusher.java:213)
      10:59:59,729 ERROR [STDERR] at com.mitra.audit.ejb.pusher.AuditPusher.onMessage(AuditPusher.java:141)
      10:59:59,729 ERROR [STDERR] at java.lang.reflect.Method.invoke(Native Method)
      10:59:59,729 ERROR [STDERR] at org.jboss.ejb.MessageDrivenContainer$ContainerInterceptor.invoke(MessageDrivenContainer.java:391)
      10:59:59,729 ERROR [STDERR] at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186)
      10:59:59,739 ERROR [STDERR] at org.jboss.ejb.plugins.MessageDrivenInstanceInterceptor.invoke(MessageDrivenInstanceInterceptor.java:88)
      10:59:59,739 ERROR [STDERR] at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:96)
      10:59:59,739 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:142)
      10:59:59,749 ERROR [STDERR] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:61)
      10:59:59,769 INFO [STDOUT] 2002/Jul/25 10:59:59 EDT fd1112 1.1.1.2 audit Patient Discharged HIS 4444026 500015
      10:59:59,769 ERROR [STDERR] at org.jboss.ejb.plugins.RunAsSecurityInterceptor.invoke(RunAsSecurityInterceptor.java:100)
      10:59:59,769 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:166)
      10:59:59,779 ERROR [STDERR] at org.jboss.ejb.MessageDrivenContainer.invoke(MessageDrivenContainer.java:302)
      10:59:59,779 ERROR [STDERR] at org.jboss.ejb.plugins.jms.JMSContainerInvoker.invoke(JMSContainerInvoker.java:625)
      10:59:59,779 ERROR [STDERR] at org.jboss.ejb.plugins.jms.JMSContainerInvoker$MessageListenerImpl.onMessage(JMSContainerInvoker.java:973)
      10:59:59,779 ERROR [STDERR] at org.jboss.jms.asf.StdServerSession.onMessage(StdServerSession.java:234)
      10:59:59,779 ERROR [STDERR] at org.jboss.mq.SpyMessageConsumer.sessionConsumerProcessMessage(SpyMessageConsumer.java:561)
      10:59:59,779 ERROR [STDERR] at org.jboss.mq.SpyMessageConsumer.addMessage(SpyMessageConsumer.java:377)
      10:59:59,779 ERROR [STDERR] at org.jboss.mq.SpySession.run(SpySession.java:252)
      10:59:59,779 ERROR [STDERR] at org.jboss.jms.asf.StdServerSession.run(StdServerSession.java:173)
      10:59:59,779 ERROR [STDERR] at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:655)
      10:59:59,779 ERROR [STDERR] at java.lang.Thread.run(Thread.java:484)



      Please help.


      Thankyou very much.