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 7598841
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T22:30:37+00:00 2026-05-30T22:30:37+00:00

I am trying to create a framework in Java which would support chained/pipelined queries

  • 0

I am trying to create a framework in Java which would support chained/pipelined queries wherein the Output of one query would be transformed to be used as input of another queries. Something like PyCascading These queries will be made at runtime. I looked upon some frameworks and came upon Apache Camel
& Spring Integration as they provide concept of Chaining and routing(Enterprise Integration Patterns). I found Apache Camel better than Spring Integration(IMHO).


Should I go for Apache Camel for my framework or is there a better way I can achieve this?

My Query Syntax would be

Query query1 = "select customer.id from customer where customer.name = 'ABC'";
Query query2 = "select account.id from account where account.custid in {$1}";
// $1 will be the input of second query
from(query1).inputto(query2).printOutput();
  • 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-30T22:30:39+00:00Added an answer on May 30, 2026 at 10:30 pm

    This is possible using camel-jdbc and a few basic Camel features (like simple) to allow you to inline the result parsing…

    The [CAMEL-JDBC] result is returned in the OUT body as an ArrayList[HashMap[String,Object]]
    The List object contains the list of rows and the Map
    objects contain each row with the String key as the column name.

    This result can then be used to dynamically construct subsequent queries…

    from("direct:start")
      .setBody(constant("select customer.id as ID from customer where customer.name = 'ABC'"))
      .to("jdbc:myDataSource")
    
      //now, use simple/ognl to extract the first result and the 'ID' from the Map in the body
      .setBody(simple("select account.id from account where account.custid in ${body[0][ID]}"))
      .to("jdbc:myDataSource")
    
      .log("ACCOUNT IDS = ${body}");
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm trying to create a 'skeleton' framework of sorts for a basic java app.
I'm trying to create a Zend Framework project using PHP 5.3.2 and Zend Framework
I'm trying to create a small Javascript framework that I can use in my
I'm now trying to create a xml-rpc server with the CodeIgniter Framework. <?php $this->load->library('xmlrpc');
I'm trying to create a REST service in zend framework. I'm using zend server.
I'm trying to create a rails web app that does not use ActiveRecord framework
I'm playing with the ASP.NET MVC Framework, trying to create a simple site. My
I'm trying create a bot which automatically likes Facebook posts. Using Mechanize I can
I'm trying to create a test fixture using Fitnesse framework, and I want to
I am trying to use the Spring Framework IoC Container to create an instance

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.