Edit wiki

2009-03-04 Thread Nicolas Bouillon
Hi,

I would like to have rights to edit the wiki. I would like to add some
example for mina filters.

My Confluence username is my email address, and my JIRA username is bouil.

Regards
Nicolas.


[jira] Created: (CAMEL-1362) Close Mina session from server side

2009-02-20 Thread Nicolas Bouillon (JIRA)
Close Mina session from server side
---

 Key: CAMEL-1362
 URL: https://issues.apache.org/activemq/browse/CAMEL-1362
 Project: Apache Camel
  Issue Type: Improvement
  Components: camel-mina
Affects Versions: 1.5.0
Reporter: Nicolas Bouillon


Mina endpoint as a server could be closed as the initiative of the server.

Read life scenario (FTP example) :
client opens connection to server
C:login foo
S:welcome foo
C:logout
S:bye
server closes the connection

For now, in org.apache.camel.Processor, the only ways to close connection is to 
call 
((MinaExchange) exchange).getSession().close();
but if a exchange out body has been specified, it raises an exception, because 
the session is already closed.

or to do 
exchange.getOut().setBody(null); // raises a WARNING :  Can not write body 
since its null, closing session

Then, there is no way to send a "BYE" message just before closing the 
connection of the client.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Created: (CAMEL-1414) JMSMessage vanishes attachments

2009-03-03 Thread Nicolas Bouillon (JIRA)
JMSMessage vanishes attachments
---

 Key: CAMEL-1414
 URL: https://issues.apache.org/activemq/browse/CAMEL-1414
 Project: Apache Camel
  Issue Type: Bug
  Components: camel-jms
Affects Versions: 2.0.0
Reporter: Nicolas Bouillon


When using this kind of route




and trying to enrich the message in the mailProcessor with

exchange.getIn().addAttachment("attachement.txt",
new DataHandler("Hello world", "text/plain"));

The received mail doesn't contains any attachment.

If the input "from" is a "direct" instead of activemq, it works fine.

Inspecting source code,  MessageSupport.copyFrom(Message that) does
getAttachments().putAll(that.getAttachments());
but the child class JmsMessage doesn't.



-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (CAMEL-1414) JMSMessage vanishes attachments

2009-03-03 Thread Nicolas Bouillon (JIRA)

 [ 
https://issues.apache.org/activemq/browse/CAMEL-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Bouillon updated CAMEL-1414:


Attachment: JmsMessageCopyAttachments.diff

Attached patch against components/camel-jms/

> JMSMessage vanishes attachments
> ---
>
> Key: CAMEL-1414
> URL: https://issues.apache.org/activemq/browse/CAMEL-1414
> Project: Apache Camel
>  Issue Type: Bug
>  Components: camel-jms
>Affects Versions: 2.0.0
>Reporter: Nicolas Bouillon
> Attachments: JmsMessageCopyAttachments.diff
>
>
> When using this kind of route
> 
> 
> 
> and trying to enrich the message in the mailProcessor with
> exchange.getIn().addAttachment("attachement.txt",
> new DataHandler("Hello world", "text/plain"));
> The received mail doesn't contains any attachment.
> If the input "from" is a "direct" instead of activemq, it works fine.
> Inspecting source code,  MessageSupport.copyFrom(Message that) does
> getAttachments().putAll(that.getAttachments());
> but the child class JmsMessage doesn't.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (CAMEL-1414) JMSMessage vanishes attachments

2009-03-03 Thread Nicolas Bouillon (JIRA)

 [ 
https://issues.apache.org/activemq/browse/CAMEL-1414?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Bouillon updated CAMEL-1414:


Patch Info: [Patch Available]

> JMSMessage vanishes attachments
> ---
>
> Key: CAMEL-1414
> URL: https://issues.apache.org/activemq/browse/CAMEL-1414
> Project: Apache Camel
>  Issue Type: Bug
>  Components: camel-jms
>Affects Versions: 2.0.0
>Reporter: Nicolas Bouillon
> Attachments: JmsMessageCopyAttachments.diff
>
>
> When using this kind of route
> 
> 
> 
> and trying to enrich the message in the mailProcessor with
> exchange.getIn().addAttachment("attachement.txt",
> new DataHandler("Hello world", "text/plain"));
> The received mail doesn't contains any attachment.
> If the input "from" is a "direct" instead of activemq, it works fine.
> Inspecting source code,  MessageSupport.copyFrom(Message that) does
> getAttachments().putAll(that.getAttachments());
> but the child class JmsMessage doesn't.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Created: (CAMEL-1418) Allow usage of any IoFilter in camel-mina, not only ProtocolCodecFilter

2009-03-04 Thread Nicolas Bouillon (JIRA)
Allow usage of any IoFilter in camel-mina, not only ProtocolCodecFilter
---

 Key: CAMEL-1418
 URL: https://issues.apache.org/activemq/browse/CAMEL-1418
 Project: Apache Camel
  Issue Type: New Feature
  Components: camel-mina
Affects Versions: 2.0.0
Reporter: Nicolas Bouillon


This should be possible to use any kind of IoFilter in a Mina endpoint.

See http://mina.apache.org/iofilter.html for more information on Mina filters.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (CAMEL-1418) Allow usage of any IoFilter in camel-mina, not only ProtocolCodecFilter

2009-03-04 Thread Nicolas Bouillon (JIRA)

 [ 
https://issues.apache.org/activemq/browse/CAMEL-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Bouillon updated CAMEL-1418:


Attachment: UseFilters.patch

Patch against camel-mina component

Added an endpoint param "filters" of type List

The filters are added at the end of the filter chain, after the 
ProtocolCodecFilter ("codec" param) or the  
org.apache.mina.filter.LoggingFilter ("minaLogger" param).

If the user want to change the order, he can create its own ProtocolCodecFilter 
instance and put in in the chain at the place of its choice.

> Allow usage of any IoFilter in camel-mina, not only ProtocolCodecFilter
> ---
>
> Key: CAMEL-1418
> URL: https://issues.apache.org/activemq/browse/CAMEL-1418
> Project: Apache Camel
>  Issue Type: New Feature
>  Components: camel-mina
>    Affects Versions: 2.0.0
>Reporter: Nicolas Bouillon
> Attachments: UseFilters.patch
>
>
> This should be possible to use any kind of IoFilter in a Mina endpoint.
> See http://mina.apache.org/iofilter.html for more information on Mina filters.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (CAMEL-1418) Allow usage of any IoFilter in camel-mina, not only ProtocolCodecFilter

2009-03-04 Thread Nicolas Bouillon (JIRA)

 [ 
https://issues.apache.org/activemq/browse/CAMEL-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Bouillon updated CAMEL-1418:


Patch Info: [Patch Available]

> Allow usage of any IoFilter in camel-mina, not only ProtocolCodecFilter
> ---
>
> Key: CAMEL-1418
> URL: https://issues.apache.org/activemq/browse/CAMEL-1418
> Project: Apache Camel
>  Issue Type: New Feature
>  Components: camel-mina
>Affects Versions: 2.0.0
>Reporter: Nicolas Bouillon
> Attachments: UseFilters.patch
>
>
> This should be possible to use any kind of IoFilter in a Mina endpoint.
> See http://mina.apache.org/iofilter.html for more information on Mina filters.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (CAMEL-1418) Allow usage of any IoFilter in camel-mina, not only ProtocolCodecFilter

2009-03-04 Thread Nicolas Bouillon (JIRA)

 [ 
https://issues.apache.org/activemq/browse/CAMEL-1418?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Bouillon updated CAMEL-1418:


Attachment: TestCase.patch

Test case for filter.
Patch against : components/camel-mina/src/test/java

> Allow usage of any IoFilter in camel-mina, not only ProtocolCodecFilter
> ---
>
> Key: CAMEL-1418
> URL: https://issues.apache.org/activemq/browse/CAMEL-1418
> Project: Apache Camel
>  Issue Type: New Feature
>  Components: camel-mina
>Affects Versions: 2.0.0
>Reporter: Nicolas Bouillon
> Attachments: TestCase.patch, UseFilters.patch
>
>
> This should be possible to use any kind of IoFilter in a Mina endpoint.
> See http://mina.apache.org/iofilter.html for more information on Mina filters.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Created: (CAMEL-1438) Mina Component : make lazySessionCreation true by default

2009-03-09 Thread Nicolas Bouillon (JIRA)
Mina Component : make lazySessionCreation true by default
-

 Key: CAMEL-1438
 URL: https://issues.apache.org/activemq/browse/CAMEL-1438
 Project: Apache Camel
  Issue Type: Improvement
  Components: camel-mina
Affects Versions: 2.0.0
Reporter: Nicolas Bouillon


lazySessionCreation = false by default makes the creation of the context fail 
if the remote party is not available.

lazySessionCreation = true by default may be better ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (CAMEL-1438) Mina Component : make lazySessionCreation true by default

2009-03-09 Thread Nicolas Bouillon (JIRA)

 [ 
https://issues.apache.org/activemq/browse/CAMEL-1438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Bouillon updated CAMEL-1438:


Attachment: lazy.patch

add patch. change default value of the private field lazySessionCreation to 
"true".

> Mina Component : make lazySessionCreation true by default
> -
>
> Key: CAMEL-1438
> URL: https://issues.apache.org/activemq/browse/CAMEL-1438
> Project: Apache Camel
>  Issue Type: Improvement
>  Components: camel-mina
>Affects Versions: 2.0.0
>Reporter: Nicolas Bouillon
> Attachments: lazy.patch
>
>
> lazySessionCreation = false by default makes the creation of the context fail 
> if the remote party is not available.
> lazySessionCreation = true by default may be better ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.



[jira] Updated: (CAMEL-1438) Mina Component : make lazySessionCreation true by default

2009-03-09 Thread Nicolas Bouillon (JIRA)

 [ 
https://issues.apache.org/activemq/browse/CAMEL-1438?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Nicolas Bouillon updated CAMEL-1438:


Patch Info: [Patch Available]

> Mina Component : make lazySessionCreation true by default
> -
>
> Key: CAMEL-1438
> URL: https://issues.apache.org/activemq/browse/CAMEL-1438
> Project: Apache Camel
>  Issue Type: Improvement
>  Components: camel-mina
>Affects Versions: 2.0.0
>Reporter: Nicolas Bouillon
> Attachments: lazy.patch
>
>
> lazySessionCreation = false by default makes the creation of the context fail 
> if the remote party is not available.
> lazySessionCreation = true by default may be better ?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.