Show TOC Start of Content Area

Procedure documentation Defining the JMS Destination for the Bean  Locate the document in its SAP Library structure

Procedure

...

       1.      Open the ProjectChangeReceiver bean in the Java editor.

       2.      To define the message driven bean properties that refer to configuring its environment, add the respective configuration properties to the activationConfig element of the @MessageDriven annotation:

@MessageDriven(activationConfig = {

      @ActivationConfigProperty(propertyName = "destinationType", propertyValue = "javax.jms.Queue"),

      @ActivationConfigProperty(propertyName = "destination", propertyValue = "prjChangeQueue"),

})

       3.      To complete the definition of the JMS destination used by the ProjectChangeReceiver you need to configure the jms-resource.xml. Open for editing the jms-resource.xml underEDMProjectEARDemo/EarContent/META-INF and copy the following code:

<?xml version="1.0" encoding="UTF-8"?>

<jms-resources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="jms-resources.xsd">

 

<connection-factory>

      <name>EDMQueueConnectionFactory</name>

      <sap-local-factory-type>

         <type>javax.jms.ConnectionFactory</type>

         <virtual-provider>default</virtual-provider>

      </sap-local-factory-type>

   </connection-factory>

  

<destination>

      <name>prjChangeQueue</name>

      <type>javax.jms.Queue</type>

      <sap-local-destination-type>

         <virtual-provider>default</virtual-provider>

      </sap-local-destination-type>

   </destination>

</jms-resources>

 

End of Content Area