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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 18, 20262026-06-18T08:18:09+00:00 2026-06-18T08:18:09+00:00

I have something where I basically always want to lose the first record in

  • 0

I have something where I basically always want to lose the first record in a list. It will always be of the form List<String> – and I don’t care about the ‘header’ – which will always be the first element in the list and don’t want it sent to my endpoint

[ “header”, “message1”, “message2” … ]

.from( A )  // this sends Lists of StringBuffers. The first in the list will be header 
.split().body() // now I have each
.to( B )

I would ideally like to lose the first message in the exchange and am thinking about the correct query to construct for it.

Something like ( this doesn’t work – removeMessage isn’t an camel option )

from( A )
.removeMessage( 0 ) // remove first message - this doesn't actually exist
.split().body().
.to( B )

I am looking at creating a filter which removes based on the CamelSplitIndex attribute on the exchange, but have at this point stopped and am wondering ‘am I going about this the right way?’

  • 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-06-18T08:18:10+00:00Added an answer on June 18, 2026 at 8:18 am

    I did it pretty much as I suggested, and similar to what the other guy suggested, but without using the Simple expression language, which (ironically) seems simpler to me

    .split().body()
    .filter( header( “CamelSplitIndex” ).isNotEqual( 0 ) )

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

Sidebar

Related Questions

This is something I have always wondered about, and looked up a few times
So basically I have something like this <div class=iframe-holder> <span></span> <iframe src=iframe.html width=200 height=200
In my domain I have something called Project which basically holds a lot of
So I wanted to have something like in this image . Basically you have
I have a stored procedure which basically does something like select top 1 expiryDate,
I would just like your feedback on something. Basically I have a value called
I'm at my wits end, and it's probably something really simple. Basically I've have
I have a UICollectionViewFlowLayout that basically does what I want, except for one thing
hihi i have a question that i want to ask about c# and window
I have a method which i'd like to refactor Basically i want to split

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.