×
INTELLIGENT WORK FORUMS
FOR COMPUTER PROFESSIONALS

Log In

Come Join Us!

Are you a
Computer / IT professional?
Join Tek-Tips Forums!
  • Talk With Other Members
  • Be Notified Of Responses
    To Your Posts
  • Keyword Search
  • One-Click Access To Your
    Favorite Forums
  • Automated Signatures
    On Your Posts
  • Best Of All, It's Free!
  • Students Click Here

*Tek-Tips's functionality depends on members receiving e-mail. By joining you are opting in to receive e-mail.

Posting Guidelines

Promoting, selling, recruiting, coursework and thesis posting is forbidden.

Students Click Here

problem with eventSendToEgate() in processOutgoing(byte outEvent[])

problem with eventSendToEgate() in processOutgoing(byte outEvent[])

problem with eventSendToEgate() in processOutgoing(byte outEvent[])

(OP)
In my Customizeed Generic eWay, I face problem when sending etd back to Egate System after getting EDT from external source.While using EGate.eventSendToEgate(etdReply.rawInput()) where etdReply is etd instance publishing to IQ.I could  see the ETD value showing is blank in IQ Manager.
code below:
public void processOutgoing(byte outEvent[]) throws CollabConnException, CollabDataException, CollabResendException
        {
                           
               EGate.traceln(EGate.TRACE_EWAY,EGate.TRACE_EVENT_ERROR, "processOutgoing(): Started");

        
            int retVal = 0;
            
            try{
            
                   etdData = new GCCGDBOfferCriteriaRequest();
             etdReply = new GCCGDBOffrCrtrInfoReply();
                   
               }catch(Exception e)
               {
                   EGate.traceln(EGate.TRACE_EWAY,EGate.TRACE_EVENT_ERROR, " Exception occurred during object initialization");
               }
                  
            try
            {

              etdData.unmarshal(outEvent);
              
        
              for (int i=0; i<guestOfrCrtrLst.length; i++)
                {
                    guestOfrCrtrLst = new GstOfrCrtr();
                }
                
              guestOfrCrtrLst[0].Guest_i = Long.parseLong(etdData.getGuestId());
              guestOfrCrtrLst[0].No_Of_Days = Short.parseShort(etdData.getNumDays());
              EGate.traceln(EGate.TRACE_EWAY,EGate.TRACE_EVENT_ERROR, "GuestId:" + etdData.getGuestId () + "Number of days :" + etdData.getNumDays());
    
              try{
                    guestOfrCrtrInfoLst = GcaClientHelper.getInstance().getGstOfrCrtrInfo(guestOfrCrtrLst);

                }catch (Exception e)
                {
                       EGate.traceln(EGate.TRACE_EWAY,EGate.TRACE_EVENT_ERROR, "Exception occurred during CORBA IOR file calling" + e);
                }
                
                for (int i=0; i<guestOfrCrtrInfoLst.length; i++)
                {
                 
                 
                                    
                    etdReply.setGuestId(Long.toString(guestOfrCrtrInfoLst.Guest_i));
                    etdReply.setMaritalStatus(new String(guestOfrCrtrInfoLst.MarStatus_f));
                    etdReply.setTgtPrchHistoryFlag(new String(guestOfrCrtrInfoLst.Tgts_Prch_f));
                    etdReply.setMfldPrchHistoryFlag(new String(guestOfrCrtrInfoLst.Mfld_Prch_f));
                    etdReply.setMvnPrchHistoryFlag(new String(guestOfrCrtrInfoLst.Mvyn_Prch_f));

                    EGate.traceln(EGate.TRACE_EWAY,EGate.TRACE_EVENT_ERROR,etdReply.getGuestId());
                    EGate.traceln(EGate.TRACE_EWAY,EGate.TRACE_EVENT_ERROR,etdReply.getMaritalStatus());
                    EGate.traceln(EGate.TRACE_EWAY,EGate.TRACE_EVENT_ERROR,etdReply.getMfldPrchHistoryFlag());
                    EGate.traceln(EGate.TRACE_EWAY,EGate.TRACE_EVENT_ERROR,etdReply.getMvnPrchHistoryFlag());
                    EGate.traceln(EGate.TRACE_EWAY,EGate.TRACE_EVENT_ERROR,etdReply.getTgtPrchHistoryFlag());
                


                }
                 
              if (etdReply == null) {
                  EGate.traceln(EGate.TRACE_EWAY,EGate.TRACE_EVENT_ERROR, "Object is null");
              } else {
                  EGate.traceln(EGate.TRACE_EWAY,EGate.TRACE_EVENT_ERROR, "Object is not null");
                  
                                
                  try {
                      
                       EGate.eventSendToEgate(etdReply.rawInput());
                       
                       EGate.traceln(EGate.TRACE_EWAY,EGate.TRACE_EVENT_ERROR, "SEND");    
                   // Here I could send data but appear as blank when I view this in Egate Monitor
                   
                       
                  } catch(Exception ex) {
                      EGate.traceln(EGate.TRACE_EWAY,EGate.TRACE_EVENT_ERROR, "Getting Exceptions "+ ex.fillInStackTrace());
                      
                  }
                          
              }
                
           
            }
            catch(Exception e)
            {
                   EGate.traceln(EGate.TRACE_EWAY,EGate.TRACE_EVENT_ERROR,"Exception occurred in the processOutgoing() method "+e.fillInStackTrace());   
               
            }
            
        }
        

RE: problem with eventSendToEgate() in processOutgoing(byte outEvent[])

Instead of this:
EGate.eventSendToEgate(etdReply.rawInput());

Try this:
EGate.eventSendToEgate(etdReply.marshal());

RE: problem with eventSendToEgate() in processOutgoing(byte outEvent[])

(OP)
Hi sbattina,
Thanks for the info. We tried with marshal() also.
But we  got the solution by using  jmarshal("ASCII") method


Regrads
Ramesh

Red Flag This Post

Please let us know here why this post is inappropriate. Reasons such as off-topic, duplicates, flames, illegal, vulgar, or students posting their homework.

Red Flag Submitted

Thank you for helping keep Tek-Tips Forums free from inappropriate posts.
The Tek-Tips staff will check this out and take appropriate action.

Reply To This Thread

Posting in the Tek-Tips forums is a member-only feature.

Click Here to join Tek-Tips and talk with other members! Already a Member? Login

Close Box

Join Tek-Tips® Today!

Join your peers on the Internet's largest technical computer professional community.
It's easy to join and it's free.

Here's Why Members Love Tek-Tips Forums:

Register now while it's still free!

Already a member? Close this window and log in.

Join Us             Close