Topic
  • 2 replies
  • Latest Post - ‏2013-08-21T00:30:49Z by Maruthi.Shanmugam
Maruthi.Shanmugam
Maruthi.Shanmugam
3 Posts

Pinned topic Connecting to Liberty WXS server from Websphere Application server

‏2013-08-15T18:46:00Z |

Hi ,

I use wsogclient.jar to connect to the WXS liberty grid server 8.6.

Connection get established successfully and while inserting the data into the grid from the client it throws

CWOBJ0006W: An exception occurred: com.ibm.websphere.objectgrid.TargetNotAvailableException: cannot find an available target for ObjectGrid=backProfileGrid:mapSet1, check your server status

Deployment policy

<deploymentPolicy xmlns:xsi="http://www.w3.org./2001/XMLSchema-instance"
    xmlns="http://ibm.com/ws/objectgrid/deploymentPolicy">
    <objectgridDeployment objectgridName="backProfileGrid">
        <mapSet name="mapSet1" numberOfPartitions="10" minSyncReplicas="1"
            maxSyncReplicas="2" maxAsyncReplicas="1" numInitialContainers="10"
            autoReplaceLostShards="false" developmentMode="true"
            replicaReadEnabled="false" placementStrategy="PER_CONTAINER" >
            <map ref="backProfileMap" />
        </mapSet>
    </objectgridDeployment>

</deploymentPolicy>

 

objectgrid.xml

<objectGridConfig xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 xsi:schemaLocation="http://ibm.com/ws/objectgrid/config ../objectGrid.xsd"
 xmlns="http://ibm.com/ws/objectgrid/config">

    <objectGrids>
        <objectGrid name="backProfileGrid" securityEnabled="false" txTimeout="1" >
            <backingMap name="backProfileMap"/>
        </objectGrid>
    </objectGrids>
</objectGridConfig>

 

Can you please help with the same.

  • lisaw
    lisaw
    101 Posts

    Re: Connecting to Liberty WXS server from Websphere Application server

    ‏2013-08-20T17:54:10Z  

    I don't think your partitions are up and running based on that error.  Use xscmd -c showMapSizes or xscmd -c showPlacement -container containerName to validate the partitions are up and running so that you can insert.

    xscmd is located WAS_INSTALL/bin/xscmd or LIBERTY_INSTALL/bin/xscmd

  • Maruthi.Shanmugam
    Maruthi.Shanmugam
    3 Posts

    Re: Connecting to Liberty WXS server from Websphere Application server

    ‏2013-08-21T00:30:49Z  
    • lisaw
    • ‏2013-08-20T17:54:10Z

    I don't think your partitions are up and running based on that error.  Use xscmd -c showMapSizes or xscmd -c showPlacement -container containerName to validate the partitions are up and running so that you can insert.

    xscmd is located WAS_INSTALL/bin/xscmd or LIBERTY_INSTALL/bin/xscmd

    HI Lisa,

    Thanks for the reply. The partition is indeed up and running. But it seems there is a mismatch betweer the wsogclient.jar that I use from the was to connect to WXS liberty server.

    If i use the wxs client that comes with the WXS liberty server it works fine, but the issue is it throws some startup errors in WAS when i add this client as part of the application.

    Any suggestions?