Examples of DealData


Examples of openjms.examples.client.fx.dealmanager.DealData

   */
  public DealController(DealNotifierIfc client, 
                          TopicConnectionFactory factory)
  {
    client_ = client;
    dealData_ = new DealData(this, factory);
    // Only one product supported.
    dealData_.setDealType("Spot");
    rates_ = new HashMap();
    rates_.put(new String("AUD"), new Double("1.7145"));
    rates_.put(new String("EUR"), new Double("1.0921"));
View Full Code Here

Examples of openjms.examples.client.fx.dealmanager.DealData

  public void onMessage(Message message)
    {
    try
    {
      ObjectMessage m = (ObjectMessage)message;
      DealData  data = (DealData)m.getObject();
      Object[] tdata = new Object[dealTable_.getNumColumns()];
      int i = 0;
     
      tdata[i++] = data.getDealType();
      tdata[i++] = data.getValueDate();
      tdata[i++] = data.getTradingDate();
      tdata[i++] = data.getCurrency1();
      tdata[i++] = data.getBuySell1();
      tdata[i++] = data.getAmount1();
      tdata[i++] = data.getCurrency2();
      tdata[i++] = data.getBuySell2();
      tdata[i++] = data.getAmount2();
      tdata[i++] = data.getSpotRate();
      tdata[i++] = data.getMarketRate();
      dealTable_.addRow(tdata);
    }
    catch (Exception exception)
        {
            exception.printStackTrace();
View Full Code Here

Examples of openjms.examples.client.fx.dealmanager.DealData

  public void onMessage(Message message)
    {
    try
    {
      ObjectMessage m = (ObjectMessage)message;
      DealData  data = (DealData)m.getObject();
      String newTopic = "OpenJMSDemo.USD-" + data.getCurrency2()
        + "-SPOT";

      // Extract the message and forward, else the ack will fail
      // since destination gets changed.
      if (forward(newTopic, data))
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.