Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Your services-config.xml should contain a line:</p> <pre><code>&lt;service-include file-path="remoting-config.xml" /&gt; </code></pre> <p>Or something similar. When you add the Spring <code>&lt;flex:message-broker/&gt;</code> to your <code>applicationContext.xml</code> it automatically loads the the config from <code>/WEB-INF/flex/services-config.xml</code>. This will in turn load the <code>remoting-config.xml</code> file you specified (in this case it looks in the same path as <code>services-config.xml</code>). Spring also has hooks to override the default file location if you want.</p> <p>You can then expose remoting destinations either with xml or annoations. In your xml file you can use the <code>&lt;flex:remoting-destination&gt;</code> element to specify which Spring beans you would like to expose. For example:</p> <pre><code>&lt;bean id="productService" class="flex.samples.product.ProductServiceImpl" /&gt; &lt;flex:remoting-destination ref="productService" /&gt; </code></pre> <p>You can also specify at a method level what operations to include/exclude and what channels are available for that remoting destination.</p> <p>If you've setup your <code>applicationContext.xml</code>to use <code>&lt;context:annotation-config/&gt;</code> you can then just select what to expose via annotations. For example:</p> <pre><code>@Service("productService") @RemotingDestination(channels={"my-amf","my-secure-amf"}) public class ProductServiceImpl implements ProductService { etc... </code></pre> <p>*Caveat - I haven't used this a whole lot myself so if I'm wrong about something please correct me.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload