[jboss-cvs] JBossAS SVN: r67777 - in trunk/testsuite/src: main/org/jboss/test/jca/inflowmdb and 1 other directories.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Mon Dec 3 11:39:19 EST 2007
Author: adrian at jboss.org
Date: 2007-12-03 11:39:19 -0500 (Mon, 03 Dec 2007)
New Revision: 67777
Modified:
trunk/testsuite/src/main/org/jboss/test/jca/inflow/TestMessageListener.java
trunk/testsuite/src/main/org/jboss/test/jca/inflow/TestResourceAdapterInflow.java
trunk/testsuite/src/main/org/jboss/test/jca/inflowmdb/TestMDBMessageListener.java
trunk/testsuite/src/resources/jca/inflowmdb/META-INF/ejb-jar.xml
Log:
[JBAS-4981] - Port test from jboss-4.2
Modified: trunk/testsuite/src/main/org/jboss/test/jca/inflow/TestMessageListener.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jca/inflow/TestMessageListener.java 2007-12-03 16:38:37 UTC (rev 67776)
+++ trunk/testsuite/src/main/org/jboss/test/jca/inflow/TestMessageListener.java 2007-12-03 16:39:19 UTC (rev 67777)
@@ -1,24 +1,24 @@
/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.jboss.test.jca.inflow;
/**
@@ -30,4 +30,5 @@
public interface TestMessageListener
{
void deliverMessage(TestMessage message);
+ void deliverMessageNoTransaction(TestMessage message);
}
Modified: trunk/testsuite/src/main/org/jboss/test/jca/inflow/TestResourceAdapterInflow.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jca/inflow/TestResourceAdapterInflow.java 2007-12-03 16:38:37 UTC (rev 67776)
+++ trunk/testsuite/src/main/org/jboss/test/jca/inflow/TestResourceAdapterInflow.java 2007-12-03 16:39:19 UTC (rev 67777)
@@ -1,24 +1,24 @@
/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.jboss.test.jca.inflow;
import javax.resource.spi.endpoint.MessageEndpoint;
@@ -62,5 +62,9 @@
((TestMessageListener) endpoint).deliverMessage(message);
if (message.acknowledged == false)
throw new Exception("MDB did not acknowledge the message");
+ message = new TestMessage();
+ ((TestMessageListener) endpoint).deliverMessageNoTransaction(message);
+ if (message.acknowledged == false)
+ throw new Exception("MDB did not acknowledge the message");
}
}
Modified: trunk/testsuite/src/main/org/jboss/test/jca/inflowmdb/TestMDBMessageListener.java
===================================================================
--- trunk/testsuite/src/main/org/jboss/test/jca/inflowmdb/TestMDBMessageListener.java 2007-12-03 16:38:37 UTC (rev 67776)
+++ trunk/testsuite/src/main/org/jboss/test/jca/inflowmdb/TestMDBMessageListener.java 2007-12-03 16:39:19 UTC (rev 67777)
@@ -1,24 +1,24 @@
/*
- * JBoss, Home of Professional Open Source
- * Copyright 2005, JBoss Inc., and individual contributors as indicated
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
- */
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
package org.jboss.test.jca.inflowmdb;
import javax.ejb.EJBException;
@@ -42,6 +42,11 @@
{
message.acknowledge();
}
+
+ public void deliverMessageNoTransaction(TestMessage message)
+ {
+ deliverMessage(message);
+ }
public void ejbCreate()
{
Modified: trunk/testsuite/src/resources/jca/inflowmdb/META-INF/ejb-jar.xml
===================================================================
--- trunk/testsuite/src/resources/jca/inflowmdb/META-INF/ejb-jar.xml 2007-12-03 16:38:37 UTC (rev 67776)
+++ trunk/testsuite/src/resources/jca/inflowmdb/META-INF/ejb-jar.xml 2007-12-03 16:39:19 UTC (rev 67777)
@@ -38,7 +38,7 @@
key3=value3
</activation-config-property-value>
</activation-config-property>
- </activation-config>
+ </activation-config>
</message-driven>
</enterprise-beans>
@@ -52,6 +52,13 @@
</method>
<trans-attribute>Required</trans-attribute>
</container-transaction>
+ <container-transaction>
+ <method>
+ <ejb-name>TestMDB</ejb-name>
+ <method-name>deliverMessageNoTransaction</method-name>
+ </method>
+ <trans-attribute>NotSupported</trans-attribute>
+ </container-transaction>
</assembly-descriptor>
More information about the jboss-cvs-commits
mailing list