[jboss-cvs] JBossAS SVN: r66224 - trunk/server/src/main/org/jboss/ejb/plugins/inflow.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Wed Oct 17 15:20:24 EDT 2007
Author: scott.stark at jboss.org
Date: 2007-10-17 15:20:24 -0400 (Wed, 17 Oct 2007)
New Revision: 66224
Modified:
trunk/server/src/main/org/jboss/ejb/plugins/inflow/JBossMessageEndpointFactory.java
Log:
Another default hack
Modified: trunk/server/src/main/org/jboss/ejb/plugins/inflow/JBossMessageEndpointFactory.java
===================================================================
--- trunk/server/src/main/org/jboss/ejb/plugins/inflow/JBossMessageEndpointFactory.java 2007-10-17 18:09:37 UTC (rev 66223)
+++ trunk/server/src/main/org/jboss/ejb/plugins/inflow/JBossMessageEndpointFactory.java 2007-10-17 19:20:24 UTC (rev 66224)
@@ -62,6 +62,7 @@
* @author <a href="mailto:adrian at jboss.com">Adrian Brock</a> .
* @version <tt>$Revision$</tt>
*/
+ at SuppressWarnings("deprecation")
public class JBossMessageEndpointFactory extends ServiceMBeanSupport
implements EJBProxyFactory, MessageEndpointFactory, JBossMessageEndpointFactoryMBean
{
@@ -286,6 +287,8 @@
protected void resolveMessageListener() throws DeploymentException
{
String messagingType = metaData.getMessagingType();
+ if(messagingType == null || messagingType.length() == 0)
+ messagingType = metaData.DEFAULT_MESSAGING_TYPE;
try
{
messagingTypeClass = GetTCLAction.getContextClassLoader().loadClass(messagingType);
@@ -315,6 +318,9 @@
protected void resolveResourceAdapter() throws DeploymentException
{
resourceAdapterName = resolveResourceAdapterName();
+ // TODO: where was this default coming from before?
+ if(resourceAdapterName == null || resourceAdapterName.length() == 0)
+ resourceAdapterName = "jms-ra.rar";
try
{
resourceAdapterObjectName = new ObjectName("jboss.jca:service=RARDeployment,name='" + resourceAdapterName + "'");
More information about the jboss-cvs-commits
mailing list