Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 5964739
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 22, 20262026-05-22T19:29:17+00:00 2026-05-22T19:29:17+00:00

This is the situation I’m in: I have a web service that is using

  • 0

This is the situation I’m in:

I have a web service that is using the Coherence grid to store data for faster results. The grid holds specific DTO objects — When new data comes in from the users, I update these DTOs. Now, I need to write specific JMeter tests for this. I can add a EndPoint (Restful WS) to collect these DTOs to verify that the objects are being updated, but that’s kind of mixing the QA and Dev.

Is there a way to connect directly to the Grid using JMeter and query it for my objects? Or even any way to create a stand-alone java app and run it through Jmeter (add specific params for querys) to return the objects..

Thanks guys!
Ninn

EDIT: java class to collect coherence objects

    package disclosed.jmeter;

import org.apache.jmeter.config.Arguments;
import org.apache.jmeter.protocol.java.sampler.AbstractJavaSamplerClient;
import org.apache.jmeter.protocol.java.sampler.JavaSamplerContext;
import org.apache.jmeter.samplers.SampleResult;
import com.tangosol.net.CacheFactory;
import com.tangosol.net.NamedCache;

public class JmeterTest extends AbstractJavaSamplerClient{

    @Override
    public Arguments getDefaultParameters() {
        // TODO Auto-generated method stub
        return null;
    }

    @Override
    public SampleResult runTest(JavaSamplerContext arg0) {
        CacheFactory.getCluster().getMemberSet();
        NamedCache cache = CacheFactory.getCache("myCache");
        System.out.println("The value taken from the cache is: " + cache.get("message"));
        SampleResult result = new SampleResult();
        result.setResponseCode((String) cache.get("message"));
        return result;
    }

    @Override
    public void setupTest(JavaSamplerContext arg0) {
        // TODO Auto-generated method stub

    }

    @Override
    public void teardownTest(JavaSamplerContext arg0) {
        // TODO Auto-generated method stub

    }

}
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-22T19:29:18+00:00Added an answer on May 22, 2026 at 7:29 pm

    Yes, you can query any service from JMeter, either if you have Java library to access it, or by simulating raw TCP/UDP network traffic.

    Best way is to have existing Java library to access service. Then you may use it from BeanShell Sampler, or write custom Sampler, it’s easy.

    Further details strongly depends on library you choose.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this situation: I have to create a dataset that takes all data
I'm finding in this situation: I've a legacy service (written in C#) that just
I have this situation where I need to get some data from a webpage
I have this situation that I need to let users define decisions based on
I have this situation: <root> //first block other tags <data>something</data> //first <data>something</data> <data>something</data> ...others
I have this situation: web application with cca 200 concurent requests (Threads) are in
This situation arises from someone wanting to create their own pages in their web
In this situation I am trying to perform a data import from an XML
In this situation I have two models, Comment and Score. The relationship is defined
I have this situation: { float foo[10]; for (int i = 0; i <

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.