Return-Path: X-Original-To: apmail-camel-users-archive@www.apache.org Delivered-To: apmail-camel-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DD921DA65 for ; Tue, 21 Aug 2012 14:30:55 +0000 (UTC) Received: (qmail 90657 invoked by uid 500); 21 Aug 2012 14:30:55 -0000 Delivered-To: apmail-camel-users-archive@camel.apache.org Received: (qmail 90627 invoked by uid 500); 21 Aug 2012 14:30:55 -0000 Mailing-List: contact users-help@camel.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@camel.apache.org Delivered-To: mailing list users@camel.apache.org Received: (qmail 90619 invoked by uid 99); 21 Aug 2012 14:30:55 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2012 14:30:55 +0000 X-ASF-Spam-Status: No, hits=2.3 required=5.0 tests=SPF_SOFTFAIL,URI_HEX X-Spam-Check-By: apache.org Received-SPF: softfail (nike.apache.org: transitioning domain of mconner@brookdaleliving.com does not designate 216.139.236.26 as permitted sender) Received: from [216.139.236.26] (HELO sam.nabble.com) (216.139.236.26) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Aug 2012 14:30:49 +0000 Received: from [192.168.236.26] (helo=sam.nabble.com) by sam.nabble.com with esmtp (Exim 4.72) (envelope-from ) id 1T3pTQ-0002wF-B5 for users@camel.apache.org; Tue, 21 Aug 2012 07:30:28 -0700 Date: Tue, 21 Aug 2012 07:30:28 -0700 (PDT) From: mconner To: users@camel.apache.org Message-ID: <1345559428325-5717772.post@n5.nabble.com> Subject: HL7 and Custom Models MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit I'm trying to use the HL7 component in Camel, but I have a custom model. Outside of camel, I can do this with: new PipeParser(ModelClassFactory theFactory) However, I don't see any direct way to configure that in Camel. In org.apache.camel.component.hl7.HL7Converter (camel-hl7-2.2.0), the parser is hard-coded, and I don't see a simple way to configure it.: static Message parse(String body, boolean validate) throws HL7Exception { // replace \n with \r as HL7 uses 0x0d = \r as segment terminators and HAPI only parses with \r body = body.replace('\n', '\r'); Parser parser = new PipeParser(); if (!validate) { parser.setValidationContext(new NoValidation()); } return parser.parse(body); } Is there a way to do this? -- View this message in context: http://camel.465427.n5.nabble.com/HL7-and-Custom-Models-tp5717772.html Sent from the Camel - Users mailing list archive at Nabble.com.