Hi all; this is the full stackTrace that i have:

  | 2004-12-21 09:21:36,867 DEBUG [org.jboss.ejb.EjbModule] startService, 
starting container: ConsumerBean
  | 2004-12-21 09:21:36,867 DEBUG [org.jboss.system.ServiceController] starting 
service jboss.j2ee:jndiName=local/ConsumerBean,service=EJB
  | 2004-12-21 09:21:36,867 DEBUG [org.jboss.ejb.MessageDrivenContainer] 
Starting jboss.j2ee:jndiName=local/ConsumerBean,service=EJB
  | 2004-12-21 09:21:36,867 DEBUG [org.jboss.ejb.MessageDrivenContainer] Begin 
java:comp/env for EJB: ConsumerBean
  | 2004-12-21 09:21:36,867 DEBUG [org.jboss.ejb.MessageDrivenContainer] TCL: 
[EMAIL PROTECTED]
  | 2004-12-21 09:21:36,867 DEBUG [org.jboss.ejb.MessageDrivenContainer] End 
java:comp/env for EJB: ConsumerBean
  | 2004-12-21 09:21:36,867 DEBUG 
[org.jboss.ejb.plugins.local.BaseLocalProxyFactory] ConsumerBean cannot be 
Bound, doesn't have local and local home interfaces
  | 2004-12-21 09:21:36,867 DEBUG [org.jboss.system.ServiceController] starting 
service 
jboss.j2ee:binding=RemoteTopic,jndiName=local/ConsumerBean,plugin=invoker,service=EJB
  | 2004-12-21 09:21:36,867 DEBUG 
[org.jboss.ejb.plugins.jms.JMSContainerInvoker] Starting 
jboss.j2ee:binding=RemoteTopic,jndiName=local/ConsumerBean,plugin=invoker,service=EJB
  | 2004-12-21 09:21:36,867 DEBUG 
[org.jboss.ejb.plugins.jms.JMSContainerInvoker] Initializing
  | 2004-12-21 09:21:36,867 DEBUG 
[org.jboss.ejb.plugins.jms.JMSContainerInvoker] Looking up provider adapter: 
java:/RemoteJMSProvider
  | 2004-12-21 09:21:36,867 DEBUG 
[org.jboss.ejb.plugins.jms.JMSContainerInvoker] Provider adapter: [EMAIL 
PROTECTED]
  | 2004-12-21 09:21:36,877 DEBUG [org.jboss.ejb.plugins.jms.DLQHandler] 
Creating DLQHandler
  | 2004-12-21 09:21:37,047 ERROR [org.jboss.ejb.plugins.jms.DLQHandler] 
Initialization failed DLQHandler
  | javax.jms.JMSException: Error creating the dlq connection: null
  |     at 
org.jboss.ejb.plugins.jms.DLQHandler.createService(DLQHandler.java:171)
  |     at 
org.jboss.system.ServiceMBeanSupport.jbossInternalCreate(ServiceMBeanSupport.java:237)
  |     at 
org.jboss.system.ServiceMBeanSupport.create(ServiceMBeanSupport.java:164)
  |     at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.innerCreate(JMSContainerInvoker.java:542)
  |     at 
org.jboss.ejb.plugins.jms.JMSContainerInvoker.startService(JMSContainerInvoker.java:764)
  |     at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
  |     at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
  |     at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:324)
  |     at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |     at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  |     at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
  |     at $Proxy39.start(Unknown Source)
  |     at org.jboss.system.ServiceController.start(ServiceController.java:367)
  |     at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:324)
  |     at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |     at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  |     at 
org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:170)
  |     at 
org.jboss.ejb.MessageDrivenContainer.startService(MessageDrivenContainer.java:234)
  |     at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
  |     at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
  |     at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:324)
  |     at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |     at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  |     at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
  |     at $Proxy18.start(Unknown Source)
  |     at org.jboss.system.ServiceController.start(ServiceController.java:367)
  |     at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:324)
  |     at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |     at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  |     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  |     at $Proxy35.start(Unknown Source)
  |     at org.jboss.ejb.EjbModule.startService(EjbModule.java:367)
  |     at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
  |     at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
  |     at sun.reflect.GeneratedMethodAccessor46.invoke(Unknown Source)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:324)
  |     at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |     at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  |     at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
  |     at $Proxy18.start(Unknown Source)
  |     at org.jboss.system.ServiceController.start(ServiceController.java:367)
  |     at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:324)
  |     at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |     at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  |     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  |     at $Proxy14.start(Unknown Source)
  |     at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:570)
  |     at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
  |     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
  |     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
  |     at sun.reflect.GeneratedMethodAccessor17.invoke(Unknown Source)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:324)
  |     at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |     at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  |     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  |     at $Proxy7.deploy(Unknown Source)
  |     at 
org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanner.java:304)
  |     at 
org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner.java:478)
  |     at 
org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan(AbstractDeploymentScanner.java:201)
  |     at 
org.jboss.deployment.scanner.AbstractDeploymentScanner.startService(AbstractDeploymentScanner.java:274)
  |     at 
org.jboss.system.ServiceMBeanSupport.jbossInternalStart(ServiceMBeanSupport.java:271)
  |     at 
org.jboss.system.ServiceMBeanSupport.jbossInternalLifecycle(ServiceMBeanSupport.java:221)
  |     at sun.reflect.GeneratedMethodAccessor3.invoke(Unknown Source)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:324)
  |     at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |     at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  |     at 
org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceController.java:837)
  |     at $Proxy0.start(Unknown Source)
  |     at org.jboss.system.ServiceController.start(ServiceController.java:367)
  |     at sun.reflect.GeneratedMethodAccessor7.invoke(Unknown Source)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:324)
  |     at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |     at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  |     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  |     at $Proxy4.start(Unknown Source)
  |     at org.jboss.deployment.SARDeployer.start(SARDeployer.java:251)
  |     at org.jboss.deployment.MainDeployer.start(MainDeployer.java:836)
  |     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:645)
  |     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:608)
  |     at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:592)
  |     at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
  |     at 
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
  |     at 
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
  |     at java.lang.reflect.Method.invoke(Method.java:324)
  |     at 
org.jboss.mx.server.ReflectedDispatcher.dispatch(ReflectedDispatcher.java:60)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:61)
  |     at org.jboss.mx.server.Invocation.dispatch(Invocation.java:53)
  |     at org.jboss.mx.server.Invocation.invoke(Invocation.java:86)
  |     at 
org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:185)
  |     at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:473)
  |     at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:176)
  |     at $Proxy5.deploy(Unknown Source)
  |     at org.jboss.system.server.ServerImpl.doStart(ServerImpl.java:407)
  |     at org.jboss.system.server.ServerImpl.start(ServerImpl.java:311)
  |     at org.jboss.Main.boot(Main.java:145)
  |     at org.jboss.Main$1.run(Main.java:399)
  |     at java.lang.Thread.run(Thread.java:534)
  | 2004-12-21 09:21:37,638 DEBUG 
[org.jboss.ejb.plugins.jms.JMSContainerInvoker] Started 
jboss.j2ee:binding=RemoteTopic,jndiName=local/ConsumerBean,plugin=invoker,service=EJB
  | 2004-12-21 09:21:37,638 DEBUG 
[org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: 
javax.management.Notification[source=jboss.system:service=ServiceController,type=
 
org.jboss.system.ServiceMBean.start,sequenceNumber=196,timeStamp=1103617297638,message=null,userData=jboss.j2ee:binding=RemoteTopic,jndiName=local/ConsumerBean,plugin=invoker,service=EJB]
  | 2004-12-21 09:21:37,638 DEBUG [org.jboss.system.ServiceController] Starting 
dependent components for: 
jboss.j2ee:binding=RemoteTopic,jndiName=local/ConsumerBean,plugin=invoker,service=EJB
 dependent components: []
  | 2004-12-21 09:21:37,638 DEBUG [org.jboss.system.ServiceController] starting 
service jboss.j2ee:jndiName=local/ConsumerBean,plugin=pool,service=EJB
  | 2004-12-21 09:21:37,638 DEBUG 
[org.jboss.ejb.plugins.MessageDrivenInstancePool] Starting 
jboss.j2ee:jndiName=local/ConsumerBean,plugin=pool,service=EJB
  | 2004-12-21 09:21:37,638 DEBUG 
[org.jboss.ejb.plugins.MessageDrivenInstancePool] Started 
jboss.j2ee:jndiName=local/ConsumerBean,plugin=pool,service=EJB
  | 2004-12-21 09:21:37,638 DEBUG 
[org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: 
javax.management.Notification[source=jboss.system:service=ServiceController,type=
 
org.jboss.system.ServiceMBean.start,sequenceNumber=197,timeStamp=1103617297638,message=null,userData=jboss.j2ee:jndiName=local/ConsumerBean,plugin=pool,service=EJB]
  | 2004-12-21 09:21:37,638 DEBUG [org.jboss.system.ServiceController] Starting 
dependent components for: 
jboss.j2ee:jndiName=local/ConsumerBean,plugin=pool,service=EJB dependent 
components: []
  | 2004-12-21 09:21:37,638 DEBUG 
[org.jboss.resource.connectionmanager.CachedConnectionInterceptor] start called 
in CachedConnectionInterceptor
  | 2004-12-21 09:21:37,638 DEBUG [org.jboss.ejb.MessageDrivenContainer] 
Started jboss.j2ee:jndiName=local/ConsumerBean,service=EJB
  | 2004-12-21 09:21:37,638 DEBUG 
[org.jboss.management.j2ee.LocalJBossServerDomain] handleNotification: 
javax.management.Notification[source=jboss.system:service=ServiceController,type=
 
org.jboss.system.ServiceMBean.start,sequenceNumber=198,timeStamp=1103617297638,message=null,userData=jboss.j2ee:jndiName=local/ConsumerBean,service=EJB]
  | 2004-12-21 09:21:37,638 DEBUG [org.jboss.system.ServiceController] Starting 
dependent components for: jboss.j2ee:jndiName=local/ConsumerBean,service=EJB 
dependent componen


The MDB is listening on a remote topic.
this is my MDB code:

package it.eng.nikko.infobean.mdb;
  | 
  | //Ejb
  | import javax.ejb.MessageDrivenBean;
  | import javax.ejb.MessageDrivenContext;
  | 
  | //Jms
  | import javax.jms.MessageListener;
  | import javax.jms.Message;
  | import javax.jms.ObjectMessage;
  | import javax.jms.JMSException;
  | 
  | //Java
  | import java.io.File;
  | import java.io.IOException;
  | import java.io.FileOutputStream;
  | import java.io.FileNotFoundException;
  | import java.util.Collection;
  | import java.util.Iterator;
  | import java.net.InetAddress;
  | import java.net.UnknownHostException;
  | 
  | //Log4j
  | import org.apache.log4j.Logger;
  | 
  | //Nikko
  | import it.eng.nikko.infobean.mdb.publisher.util.SerializableMessages;
  | import it.eng.nikko.infobean.mdb.exception.NikkoMessageException;
  | import it.eng.nikko.infobean.util.HibernateUtil;
  | import it.eng.nikko.config.model.Configuration;
  | import it.eng.nikko.defs.Definitions;
  | 
  | //Hibernate
  | import net.sf.hibernate.HibernateException;
  | 
  | public class IbConsumerBean
  |     implements MessageDrivenBean, MessageListener {
  |   MessageDrivenContext messageDrivenContext;
  |   private static final String MODULE = IbConsumerBean.class.getName();
  |   private static final Logger log = Logger.getLogger(MODULE);
  |   public void ejbCreate() {
  |   }
  | 
  |   public void ejbRemove() {
  |   }
  | 
  |   public void onMessage(Message message) {
  | 
  |     try {
  |       if ( (message instanceof ObjectMessage) &&
  |           (!isCA(InetAddress.getLocalHost().getHostAddress()))) {
  | 
  |         ObjectMessage theMessage = ( (ObjectMessage) (message));
  | 
  |         try {
  |           SerializableMessages infoBean = ( (SerializableMessages) (
  |               theMessage.getObject()));
  |           if (log.isDebugEnabled()) {
  | 
  |             log.debug("Received message for info bean: " +
  |                       infoBean.getIbName());
  |           }
  |           createFiles(infoBean.getIbName(), infoBean.getCollection());
  | 
  |           if (log.isDebugEnabled()) {
  | 
  |             log.debug("Reloading Hirnate configuration");
  |           }
  |           HibernateUtil.aggiornaConfigurazione();
  | 
  |         }
  |         catch (JMSException ex) {
  | 
  |           log.error(ex);
  |         }
  |         catch (NikkoMessageException ex) {
  | 
  |           log.error(ex);
  |         }
  |         catch (HibernateException ex) {
  | 
  |           log.error(ex);
  |         }
  | 
  |       }
  |       else {
  | 
  |         if (log.isDebugEnabled()) {
  | 
  |           log.debug(
  |               "Received a message diferent from ObjectMessage. Class: [" +
  |               message.getClass() + "]");
  |         }
  |       }
  |     }
  |     catch (UnknownHostException ex1) {
  | 
  |       log.error(ex1);
  |     }
  |   }
  | 
  |   public void setMessageDrivenContext(MessageDrivenContext
  |                                       messageDrivenContext) {
  |     this.messageDrivenContext = messageDrivenContext;
  |   }
  | 
  |   private void createFiles(String ibName, Collection files) {
  | 
  |     try {
  |       if (log.isDebugEnabled()) {
  | 
  |         log.debug("Collection dimension is: " + files.size());
  |       }
  |       int j = 0;
  |       for (Iterator i = files.iterator(); i.hasNext(); ) {
  | 
  |         writeFile( (byte[]) (i.next()), System.getProperty("realPath"),
  |                   ibName, j);
  |         j++;
  |       }
  |     }
  |     catch (FileNotFoundException ex) {
  | 
  |       ex.printStackTrace();
  |     }
  |     catch (IOException ex) {
  | 
  |       ex.printStackTrace();
  |     }
  | 
  |   }
  | 
  |   private void writeFile(byte[] toWrite, String contextPath, String 
className,
  |                          int i) throws FileNotFoundException,
  |       IOException {
  | 
  |     if (log.isDebugEnabled()) {
  | 
  |       log.debug("i Ã: " + i);
  |     }
  |     String nomeFile = "";
  |     String remaingPath = "";
  |     switch (i) {
  | 
  |       case 0:
  |         nomeFile = className + ".class";
  |         remaingPath = "storeinterface/infobeans_classes/";
  |         break;
  |       case 1:
  |         nomeFile = className + ".hbm.xml";
  |         remaingPath = "storeinterface/hbm/";
  |         break;
  |       case 2:
  |         nomeFile = className + ".jx";
  |         remaingPath = "storeinterface/forms/";
  |         break;
  |       case 3:
  |         nomeFile = className + ".xml";
  |         remaingPath = "storeinterface/forms/";
  |         break;
  |       case 4:
  |         nomeFile = "hibernate.cfg.xml";
  |         break;
  |       default:
  |         throw new FileNotFoundException("File " + i + " not found......");
  |     }
  |     String filePath = contextPath + remaingPath;
  |     if (log.isDebugEnabled()) {
  | 
  |       log.debug("Writing file into: " + filePath);
  |     }
  |     File directory = new File(filePath);
  | 
  |     if (!directory.exists()) {
  | 
  |       log.info("Creating directory: " + filePath);
  |       directory.mkdirs();
  |       log.info("Directory created");
  |     }
  |     if (log.isDebugEnabled()) {
  | 
  |       log.debug("Writing " + nomeFile + " [a buffered file] in: " +
  |                 filePath);
  |     }
  |     FileOutputStream writer = new FileOutputStream(new File(filePath +
  |         nomeFile));
  |     writer.write(toWrite);
  |     writer.close();
  |     log.info("Done");
  |   }
  | 
  |   private boolean isCA(String value) {
  | 
  |     if (log.isDebugEnabled()) {
  | 
  |       log.debug("Passed IPAddress: " + value +
  |                 " Content Author IP Address: " +
  |                 Configuration.getIpAddress(Definitions.CONTENT_ADMIN_ID));
  |     }
  |     return Configuration.getIpAddress(Definitions.CONTENT_ADMIN_ID).
  |         equalsIgnoreCase(value);
  |   }
  | }

This is my ejb-jar.xml:

<?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise 
JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd";>
  | <ejb-jar>
  |   <enterprise-beans>
  |     <message-driven>
  |       <ejb-name>ConsumerBean</ejb-name>
  |       <ejb-class>it.eng.nikko.infobean.mdb.IbConsumerBean</ejb-class>
  |       <transaction-type>Container</transaction-type>
  |       <message-driven-destination>
  |         <destination-type>javax.jms.Topic</destination-type>
  |         <subscription-durability>Durable</subscription-durability>
  |       </message-driven-destination>
  |     </message-driven>
  |     <entity>
  |       <ejb-name>NikkoConfigurationBean</ejb-name>
  |       
<home>it.eng.nikko.config.ejbs.entity.NikkoDaoConfigurationBeanRemoteHome</home>
  |       
<remote>it.eng.nikko.config.ejbs.entity.NikkoDaoConfigurationBeanRemote</remote>
  |       
<ejb-class>it.eng.nikko.config.ejbs.entity.NikkoDaoConfigurationBean</ejb-class>
  |       <persistence-type>Bean</persistence-type>
  |       <prim-key-class>it.eng.nikko.config.dao.pk.ConfigPK</prim-key-class>
  |       <reentrant>False</reentrant>
  |     </entity>
  |   </enterprise-beans>
  | </ejb-jar>

this is my jboss.xml:

<?xml version="1.0" encoding="UTF-8"?>
  | <!DOCTYPE jboss PUBLIC "-//JBoss//DTD JBOSS 3.2//EN" 
"http://www.jboss.org/j2ee/dtd/jboss_3_2.dtd";>
  | <jboss>
  |   <enterprise-beans>
  |     <message-driven>
  |       <ejb-name>ConsumerBean</ejb-name>
  |       
<destination-jndi-name>topic/it.eng.nikko.ibTopic</destination-jndi-name>
  |       <mdb-client-id>it.eng.client</mdb-client-id>
  |       <mdb-subscription-id>it.eng.subscriptionId</mdb-subscription-id>
  |       <invoker-bindings>
  |         <invoker>
  |           
<invoker-proxy-binding-name>RemoteTopic</invoker-proxy-binding-name>
  |         </invoker>
  |       </invoker-bindings>
  |     </message-driven>
  |     <entity>
  |       <ejb-name>NikkoConfigurationBean</ejb-name>
  |       <jndi-name>NikkoConfigurationBean</jndi-name>
  |     </entity>
  |   </enterprise-beans>
  |   <invoker-proxy-bindings>
  |     <invoker-proxy-binding>
  |       <name>RemoteTopic</name>
  |       <invoker-mbean>remote</invoker-mbean>
  |       
<proxy-factory>org.jboss.ejb.plugins.jms.JMSContainerInvoker</proxy-factory>
  |       <proxy-factory-config>
  |         <JMSProviderAdapterJNDI>RemoteJMSProvider</JMSProviderAdapterJNDI>
  |         
<ServerSessionPoolFactoryJNDI>StdJMSPool</ServerSessionPoolFactoryJNDI>
  |         <MinimumSize>1</MinimumSize>
  |         <KeepAliveMillis>30000</KeepAliveMillis>
  |         <MaxMessages>1000</MaxMessages>
  |         <MDBConfig>
  |           <ReconnectIntervalSec>10</ReconnectIntervalSec>
  |           <DLQConfig>
  |             <DestinationQueue>queue/DLQ</DestinationQueue>
  |             <MaxTimesRedelivered>10</MaxTimesRedelivered>
  |             <TimeToLive>0</TimeToLive>
  |           </DLQConfig>
  |         </MDBConfig>
  |       </proxy-factory-config>
  |     </invoker-proxy-binding>
  |   </invoker-proxy-bindings>
  | </jboss>


this is my jms-ds.xml file that i have modified by inserting the RemoteProvider 
following the wiki tips:

<?xml version="1.0" encoding="UTF-8"?>
  | 
  | <connection-factories>
  | 
  | <!-- Remote connection -->
  | <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
  |      
name="jboss.mq:service=JMSProviderLoader,name=RemoteJMSProvider,server=ContentAuthor">
  |     <attribute name="ProviderName">RemoteJMSProvider</attribute>
  |     <attribute name="ProviderAdapterClass">
  |       org.jboss.jms.jndi.JNDIProviderAdapter
  |     </attribute>
  |     <!-- The queue connection factory -->
  |     <attribute name="QueueFactoryRef">XAConnectionFactory</attribute>
  |     <!-- The topic factory -->
  |     <attribute name="TopicFactoryRef">XAConnectionFactory</attribute>
  |     <!-- Connect to HAJNDI on the host whatever -->
  |     <attribute name="Properties">
  |        java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  |        java.naming.factory.url.pkgs=org.jnp.interfaces
  |        java.naming.provider.url=xxx.xxx.xx.xxx:1099
  |     </attribute>
  | 
  |   </mbean>
  |  
  |   <!-- ==================================================================== 
-->
  |   <!-- JMS Stuff                                                            
-->
  |   <!-- ==================================================================== 
-->
  | 
  |   <!-- The JMS provider loader -->
  |   <mbean code="org.jboss.jms.jndi.JMSProviderLoader"
  |      name="jboss.mq:service=JMSProviderLoader,name=JMSProvider">
  |     <attribute name="ProviderName">DefaultJMSProvider</attribute>
  |     <attribute name="ProviderAdapterClass">
  |       org.jboss.jms.jndi.JNDIProviderAdapter
  |     </attribute>
  |     <!-- The queue connection factory -->
  |     <attribute name="QueueFactoryRef">java:/XAConnectionFactory</attribute>
  |     <!-- The topic factory -->
  |     <attribute name="TopicFactoryRef">java:/XAConnectionFactory</attribute>
  |     <!-- Uncomment to use HAJNDI to access JMS
  |     <attribute name="Properties">
  |        java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
  |        java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
  |        java.naming.provider.url=localhost:1100
  |     </attribute>
  |     -->
  |   </mbean>
  | 
  |   <!-- The server session pool for Message Driven Beans -->
  |   <mbean code="org.jboss.jms.asf.ServerSessionPoolLoader"
  |      name="jboss.mq:service=ServerSessionPoolMBean,name=StdJMSPool">
  |     <depends 
optional-attribute-name="XidFactory">jboss:service=XidFactory</depends>
  |     <attribute name="PoolName">StdJMSPool</attribute>
  |     <attribute name="PoolFactoryClass">
  |       org.jboss.jms.asf.StdServerSessionPoolFactory
  |     </attribute>
  |   </mbean>
  | 
  |   <!-- JMS XA Resource adapter, use this to get transacted JMS in beans -->
  |   <tx-connection-factory>
  |     <jndi-name>JmsXA</jndi-name>
  |     <xa-transaction/>
  |     <adapter-display-name>JMS Adapter</adapter-display-name>
  |     <config-property name="SessionDefaultType" 
type="java.lang.String">javax.jms.Topic</config-property>
  |     <config-property name="JmsProviderAdapterJNDI" 
type="java.lang.String">java:/DefaultJMSProvider</config-property>
  |     <max-pool-size>20</max-pool-size>
  |     
<security-domain-and-application>JmsXARealm</security-domain-and-application>
  |   </tx-connection-factory>
  | 
  | </connection-factories>

Now the problem is this one:
If i try to use this MDB by setting in jms-ds.xml an IP address that points to 
a new PC on that there is Solaris 9 i have the error showed before. If i put 
another address that point on another pc on what there is or Windows XP 
professional SP2 or home edition SP2 or another pc where there is Linux red-hat 
7 advanced server i have no error.

anonymous wrote : 
  | Sent by [EMAIL PROTECTED]
  | All these posts and we still haven't seen your mdb configuration or any 
logging. 

Sorry but I thought that the stacktrace i have posted was sufficient now i have 
posted this one; i have changed my log4j.xml file by adding:

   <appender name="JMS" class="org.apache.log4j.net.JMSAppender">
  |      <errorHandler class="org.jboss.logging.util.OnlyOnceErrorHandler"/>
  |      <param name="Threshold" value="ERROR"/>
  |      <param name="TopicConnectionFactoryBindingName" 
value="java:/ConnectionFactory"/>
  |      <param name="TopicBindingName" value="topic/MyErrorsTopic"/>
  |    </appender>

I repeat that if i use other pc all works, the error borns only with this new 
pc where there is Sun Solaris 9.

I have searche in the FAQ, but i have found nothing that helped me to solve 
this problem.


View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3859399#3859399

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3859399


-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://productguide.itmanagersjournal.com/
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to