[JBoss-user] [Messaging, JMS JBossMQ] - Re: EJB Create on MDB

2005-08-04 Thread schrouf
Post your ejbCreate() source code 

Regards
Ulf

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3888354#3888354

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888354


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: EJB Create on MDB

2005-08-04 Thread schrouf
Drop last post (realized posted source a little bit too late)

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3888355#3888355

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888355


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: EJB Create on MDB

2005-08-04 Thread jaikiran
Try out the following:

/**
  |  *
  |  * @throws EJBException
  |  */
  | public void ejbCreate() throws EJBException {
  | 
  | }

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3888363#3888363

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888363


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: EJB Create on MDB

2005-08-04 Thread Nandhu
Still the same problem...

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3888419#3888419

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888419


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: EJB Create on MDB

2005-08-04 Thread jaikiran
Hi, 
 I think the probelm may be because of some jar file present in the classpath, 
which contains your old .class file of the MDB. Delete the .class file of the 
MDB from your jar file and restart the jboss. If you get the same exception, 
then there is a wrong .class file in your classpath for this MDB.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3888421#3888421

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888421


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: EJB Create on MDB

2005-08-04 Thread Nandhu
That worked , thanks a lot.

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3888438#3888438

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888438


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: EJB Create on MDB

2005-08-03 Thread darranl
The ejbCreate method of a message driven bean is not allowed to throw the 
CreateException.

The error message you have posted is because you have deployed a message driven 
bean that is declared as throwing the CreateException from the ejbCreate method.

What message is displayed if you deploy your message driven bean when the 
CreateException is removed?

If it is the same message have you double checked that the jar is being 
recreated correctly?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3888271#3888271

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888271


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: EJB Create on MDB

2005-08-03 Thread [EMAIL PROTECTED]
I've sort of added this question to the FAQ:
http://wiki.jboss.org/wiki/Wiki.jsp?page=WhyDoesntCreateExceptionRollbackTheTransaction

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3888277#3888277

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888277


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: EJB Create on MDB

2005-08-03 Thread Nandhu
I did change my method without throwing createException , still same result. Is 
there anything to do with Spec 2.1 ?

View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3888280#3888280

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888280


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Messaging, JMS JBossMQ] - Re: EJB Create on MDB

2005-08-03 Thread Nandhu
All
Here is the code snippet


package com.birch.mdb;

import java.io.ByteArrayOutputStream;

import javax.ejb.EJBException;
import javax.ejb.MessageDrivenBean;
import javax.ejb.MessageDrivenContext;
import javax.jms.Message;
import javax.jms.MessageListener;
import javax.xml.transform.Transformer;
import javax.xml.transform.TransformerFactory;
import javax.xml.transform.dom.DOMSource;
import javax.xml.transform.stream.StreamResult;

import org.jboss.logging.Logger;
import org.w3c.dom.Document;

import com.birch.adapters.file.XMLMessageListener;

import javax.ejb.CreateException;


public class EchoXMLMessageListener implements 
MessageDrivenBean,XMLMessageListener
{


private static final Logger log = 
Logger.getLogger(EchoXMLMessageListener.class);

private MessageDrivenContext ctx;

private Transformer transformer;

public EchoXMLMessageListener()
{


}

public void setMessageDrivenContext(MessageDrivenContext ctx)   throws 
EJBException 
{
this.ctx = ctx;

}

public void ejbRemove() throws EJBException 
{

}

public void processXML(Document document) throws Exception 
{
TransformerFactory tf = TransformerFactory.newInstance();
try 
{
transformer = tf.newTransformer();
} catch (Exception e)
{
log.error(Exception Occured in Create,e);
throw e;
}

DOMSource source = new DOMSource(document);
ByteArrayOutputStream baos = new ByteArrayOutputStream();
StreamResult result = new StreamResult(baos);
transformer.transform(source, result);
log.info(baos.toString());
}

/**
 * Default create method
 * 
 */
public void ejbCreate() 
{

}

}


View the original post : 
http://www.jboss.org/index.html?module=bbop=viewtopicp=3888282#3888282

Reply to the post : 
http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3888282


---
SF.Net email is Sponsored by the Better Software Conference  EXPO
September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices
Agile  Plan-Driven Development * Managing Projects  Teams * Testing  QA
Security * Process Improvement  Measurement * http://www.sqe.com/bsce5sf
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user