• GingaCodeMonkey
  • NEWBIE
  • 0 Points
  • Member since 2011

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 1
    Questions
  • 3
    Replies

Hi all,

 

I have been tasked with finding out if the wsc-22.jar and the generated partner.jar are thread-safe.

We are building an application in Java that will be having multiple threads accessing the partner connection variable and sending queries/updates/creates to SalesForce.

I have found the documentation on the limits, so the limits of 10 query cursors and for concurrent requests (calls) with a duration of 20 seconds or longer:

However nothing really on if the code is thread-safe.

 

Any help in finding an answer to this would be greatly appreciated.

 

Regards,

 

Adrian

Hi all,

 

I have been tasked with finding out if the wsc-22.jar and the generated partner.jar are thread-safe.

We are building an application in Java that will be having multiple threads accessing the partner connection variable and sending queries/updates/creates to SalesForce.

I have found the documentation on the limits, so the limits of 10 query cursors and for concurrent requests (calls) with a duration of 20 seconds or longer:

However nothing really on if the code is thread-safe.

 

Any help in finding an answer to this would be greatly appreciated.

 

Regards,

 

Adrian

Hello Everyone,

 

I am trying to update accounts page layout with a custom link.  I managed to create a custom link which is great.  Now I am able to retrieve the page layout through retrieve call.  Which gives a zip file,  is there a way I could update the layout through the Metadata API?  So far I have tried this,

 

     Layout co = new Layout();

        co.setFullName("Account-Trial2");

        

        LayoutSection layoutSection = new LayoutSection();

        layoutSection.setStyle(LayoutSectionStyle.CustomLinks);

        layoutSection.setCustomLabel(true);

        layoutSection.setLabel("Custom Links");

        LayoutColumn layoutColumn = new LayoutColumn();

        LayoutItem[] layoutItemList = new LayoutItem[1];

        LayoutItem layoutItem = new LayoutItem();

        layoutItem.setCustomLink("Infosmart_Results");

        layoutItemList[0] = layoutItem;

        layoutColumn.setLayoutItems(layoutItemList);

        LayoutColumn[] layoutColumnList = new LayoutColumn[1];

        layoutColumnList[0] = layoutColumn;

        layoutSection.setLayoutColumns(layoutColumnList);

        LayoutSection[] layoutSectionList = new LayoutSection[1];

        layoutSectionList[0] = layoutSection;

        co.setLayoutSections(layoutSectionList);

        

        UpdateMetadata updateMetadata = new UpdateMetadata();

        updateMetadata.setMetadata(co);

        updateMetadata.setCurrentName("Trial");   // co.getFullName(); 

 

This code leads to the following exception

 

Error status code: FIELD_INTEGRITY_EXCEPTION

Error message: Layout must contain an item for required layout field: Name

The object state is Error

 

What am I missing here.  Any help will be greatly appreciated.

 

Regards

Ananth Chellathurai

Blog 

 

 

Hi,
   Right now I am using Developer edition (trial) and i want to create custom field (Text Area) in Accounts section using a web service call. Can anyone help me in this. Thanks







Raj S
  • October 12, 2008
  • Like
  • 0