Hi friends!
 
 
A long time ago I have trying to execute a application java that fill a entry 
of object came from Mainframe to ARS...
 
My resume code is almost like this:
 
I have an "insert( )" method...
 
public String insert( )
{
   try
   {
       com.remedy.arsys.api.Entry entry = null;
       com.remedy.arsys.api.EntryFactory entryMan = 
com.remedy.arsys.api.EntryFactory.getFactory();
       entry = (com.remedy.arsys.api.Entry) entryMan.newInstance();
       entry.setContext(login());            // login at AR Server
 
       // Get the name Schema
       NameID name = new NameID("MyForm");
 
       entry.setSchemaID(name);
       entry.activate();
 
       com.remedy.arsys.api.EntryItem[] entryItems = new 
EntryItem[ARRAY.length];
       entryItems[0] = new EntryItem(new FieldID((new 
Long(ARRAY[0])).longValue()), new Value(this.getFirstName()));
       entryItems[1] = new EntryItem(new FieldID((new 
Long(ARRAY[1])).longValue()), new Value(this.getLastName()));
       entryItems[2] = new EntryItem(new FieldID((new 
Long(ARRAY[2])).longValue()), new Value(this.getDescription()));
 
       // set the entry items...
       entry.setEntryItems(entryItems);
 
       entry.create();         // doesn't execute this method... why ??? goes 
to "finnaly" block
   
       entryMan.releaseInstance(entry);
   }
   catch ( Exception e )
   {
       e.printStackTrace();
   }
   finally
   {
       if ( mm != null )
           logout();

       return sEntryId;
  }
}
 
 
I'm debugging the application and all the Data are comming correctly ... but 
when it arrives at entry.create() the application finish.
 
 
Can somebody help me?
 
 
Thanx...
 
 
Tadeu Augusto Dutra Pinto
-----------------------------------------------------------------
IT Web Services ATM 
Cinq Technologies
http://www.cinq.com.br 
[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]> 
Fone: 41 3018-2833 - Cinq
Fone: 41 3340-5736 - HSBC Bank Brasil
-----------------------------------------------------------------
Confiabilidade, Inovação e Qualidade em T.I.

_______________________________________________________________________________
UNSUBSCRIBE or access ARSlist Archives at www.arslist.org ARSlist:"Where the 
Answers Are"

Reply via email to