[jboss-jira] [JBoss JIRA] (AS7-3816) Expansion of variables in ejb-jar.xml

Doug Grove (JIRA) jira-events at lists.jboss.org
Mon Sep 24 08:40:35 EDT 2012


    [ https://issues.jboss.org/browse/AS7-3816?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12720955#comment-12720955 ] 

Doug Grove commented on AS7-3816:
---------------------------------

I just tried this expansion in: JBoss EAP 6.0.0.GA (AS 7.1.2.Final-redhat-1)

In my ejb-jar.xml file, I have:

		<message-driven>
			<ejb-name>WebSphereXML</ejb-name>
			<ejb-class>com.redhat.gss.service.ejb30.mdb.WebSphereXML</ejb-class>
			<messaging-type>javax.jms.MessageListener</messaging-type>
			<activation-config>
				<activation-config-property>
					<activation-config-property-name>hostName</activation-config-property-name>
					<activation-config-property-value>${wmq.host}</activation-config-property-value>
				</activation-config-property>
				<activation-config-property>
					<activation-config-property-name>port</activation-config-property-name>
					<activation-config-property-value>${wmq.port}</activation-config-property-value>
				</activation-config-property>

In my server.log file:


Caused by: javax.resource.spi.ResourceAdapterInternalException: javax.jms.JMSException: MQJMS2005: failed to create MQQueueManager for '${wmq.host}:redhat.queue.manager'
	at com.ibm.mq.connector.ResourceAdapterConnectionPool.allocateConnection(ResourceAdapterConnectionPool.java:297)
	at com.ibm.mq.connector.ResourceAdapterImpl.endpointActivation(ResourceAdapterImpl.java:333)
	at org.jboss.jca.core.rar.EndpointImpl.activate(EndpointImpl.java:164)
	at org.jboss.as.ejb3.component.messagedriven.MessageDrivenComponent.start(MessageDrivenComponent.java:176)
	... 6 more

So '${wmq.host}' was not expanded.
                
> Expansion of variables in ejb-jar.xml
> -------------------------------------
>
>                 Key: AS7-3816
>                 URL: https://issues.jboss.org/browse/AS7-3816
>             Project: Application Server 7
>          Issue Type: Feature Request
>          Components: EJB
>    Affects Versions: 7.1.0.Final, 7.1.1.Final
>            Reporter: Ed Keen
>            Assignee: John Bailey
>              Labels: annotation, as7, ejb-jar.xml, mdb, security
>             Fix For: 7.1.2.Final (EAP)
>
>
> Expansion of variables was supported in ejb-jar.xml in previous versions of JBoss.  This does not appear to be supported in 7.1.  Reference this discussion in the AS forum:  https://community.jboss.org/message/717509

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira


More information about the jboss-jira mailing list