Newbie: is doable this application?

2011-12-09 Thread mgiammarco
Hello, I would like to use camel to realize this (apparently) simple web application: - a CONCURRENT MULTIUSER web application with a simple search page like google; - results MUST appears asynchronously as soon as they can; - I need to query several databases (SQL,HTTP,WEBSERVICES,TELNET) concurr

Re: Newbie: is doable this application?

2011-12-10 Thread mgiammarco
First, thanks for your detailed reply! Christian Schneider wrote > > you could use jms to achieve async behaviour and serialization. > > - You can limit the number of consumer threads to 1 and also the number > of threads for the executor thread pool to 1 to make sure each source > only proce

Re: Newbie: is doable this application?

2011-12-14 Thread mgiammarco
Preben.Asmussen wrote > > > Maybe you could create a Lucene or Solr index from the resources, and then > use that for your user search. > See http://lucene.apache.org/java/docs/index.html > > > Thank you for suggestion, unfortunately some of this data bases are "pay per use" so at most I can

Re: Camel and portal scraping tools

2011-12-25 Thread mgiammarco
I am interested too! What approach have you utilized? Thanks, Mario -- View this message in context: http://camel.465427.n5.nabble.com/Camel-and-portal-scraping-tools-tp4461838p5100188.html Sent from the Camel - Users mailing list archive at Nabble.com.

NEWBIE: automatic queues creation

2011-12-28 Thread mgiammarco
A newbie question: when I create a context with jms queues, web services and other things, does Camel creates them or I have to create queues and other things manually (with spring for example)? Thanks, Mario -- View this message in context: http://camel.465427.n5.nabble.com/NEWBIE-automatic-que

Please explain better in-out

2011-12-28 Thread mgiammarco
Hello, Imagine that I have several clients that put messages on a jms queue managed by Camel. Now this queue is connected to a complex route that generates many messages as replies. Now I would like that each client (obviously) receives only its replies. I suppose I have to do it with in-out reques

Re: Please explain better in-out

2011-12-29 Thread mgiammarco
Thanks for reply. So: 1) is in-out only synchronous? 2) does it works even the reply is composed of multiple messages? 3) how does in-out work when an external application puts a message on my queue? Thanks, Mario -- View this message in context: http://camel.465427.n5.nabble.com/Please-explai

Re: Please explain better in-out

2011-12-29 Thread mgiammarco
2011/12/29 Willem.Jiang [via Camel] < ml-node+s465427n5107178...@n5.nabble.com> > > On Thu Dec 29 15:38:42 2011, mgiammarco wrote: > > 2) does it works even the reply is composed of multiple messages? > If you can aggregate the multiple message into one message. > >

Message level authentication

2011-12-31 Thread mgiammarco
Hello, if I have multiple clients that put messages in a queue managed by Camel AND each client can receive as a reply many messages how can I do it with Camel? I mean suppose that I create an "out" queue where all replies go. How can I be sure that a client can get ONLY its messages? Does Camel

Re: Message level authentication

2012-01-01 Thread mgiammarco
Thanks for reply in the first day of the year (and BUON ANNO!). I will consider this thing but I am worried about two things: - security: can one client "steal messages from others?" - automation: it seems to me that it is a manual way. Is there an "official way" to do it? For example to put a to

Re: Message level authentication

2012-01-01 Thread mgiammarco
. > > Christian > > Am 01.01.2012 11:45, schrieb Filippo Balicchia: > > > Hello, > > Why don't use message selector from client point of view ? > > > > --Filippo > > > > Il 31 dicembre 2011 19:57, mgiammarco<[hidden > > email]<http:/

Re: Message level authentication

2012-01-01 Thread mgiammarco
reply message with a key only the client knows. e.g. >> public/private key scheme. >> >> Christian >> >> Am 01.01.2012 11:45, schrieb Filippo Balicchia: >> >> > Hello, >> > Why don't use message selector from client point of view ? >

Re: Embedded web console

2012-01-03 Thread mgiammarco
I have tried camel-archetype-web and camel-archetype-webconsole (it seems newer) but I am not able to see the console. In my project too I cannot see console... -- View this message in context: http://camel.465427.n5.nabble.com/Embedded-web-console-tp478885p5117887.html Sent from the Camel - Use

Re: Embedded web console

2012-01-04 Thread mgiammarco
Same thing for me! And I tried also to deploy projects created with maven archetype webconsole without luck. -- View this message in context: http://camel.465427.n5.nabble.com/Embedded-web-console-tp478885p5119175.html Sent from the Camel - Users mailing list archive at Nabble.com.

Re: Please explain better in-out

2012-01-04 Thread mgiammarco
Ok probably I have explained myself wrong. I need that camel consumes messages from the outside. I am testing it with: from("activemq:queryServer?exchangePattern=InOut") .to("log:it.giammar.pratobackend?showHeaders=true") .to("bean:s

Create temp queue with stomp to send messages to camel

2012-01-04 Thread mgiammarco
Hello, I have an activemq queue. I need to send messages to it with stomp. I have tried gozirra and activemq stomp client libs. I would like to receive a reply to my message so I try to put in replyto /temp-queue/ to create a temporary queue but I fail. What can I do? Thanks, Mario -- View this

My context has no createProducerTemplate

2012-01-05 Thread mgiammarco
Hello, I am trying a really simple example from camel web site. The example creates a CamelContext and then it does context.createProducerTemplate(); Unfortunately the code does not compile because context has no such method. I am getting crazy, please help me! Mario -- View this message in c

Re: My context has no createProducerTemplate

2012-01-05 Thread mgiammarco
n? > Which version of Camel do you use? > Can you share your code with us? > > [1] http://camel.apache.org/support.html > > Best, > Christian > > On Thu, Jan 5, 2012 at 9:08 PM, mgiammarco <[hidden > email]<http://user/SendEmail.jtp?type=node&node=512403

Xstream marshals to byte array and not String

2012-01-08 Thread mgiammarco
Hello, I am using a stomp client (that usese only Strings) to send a bean to Camel using ActiveMQ. It marshal the message to a String using xstream. Camel receives it as String, it unmarshals (using xstream) it as the correct Java Bean. Camel process (it is a request-reply queue) and at the end I

Re: Embedded Web Console in Tomcat

2012-01-08 Thread mgiammarco
Hello, any news about this? I have the same problem: I need web console under tomcat. Is there any workaround? Can I deploy the console in a separate war? Thanks, Mario -- View this message in context: http://camel.465427.n5.nabble.com/Embedded-Web-Console-in-Tomcat-tp4894690p5129233.html Sent f

Re: Xstream marshals to byte array and not String

2012-01-08 Thread mgiammarco
Ok I have tried again and I failed again. This is my route: from("activemq:queryServer?exchangePattern=InOut") .setExchangePattern(ExchangePattern.InOut) .to("log:it.giammar.pratobackend?showHeaders=true").unmarshal()

Re: Xstream marshals to byte array and not String

2012-01-08 Thread mgiammarco
Thanks I have tried your workaround and it does the conversion. Unfortunately something worse is happening: with this route and a String input my stomp client receives a reply: from("activemq:queryServer?exchangePattern=InOut") .setExchangePattern(ExchangePattern.I

Re: Xstream marshals to byte array and not String

2012-01-09 Thread mgiammarco
I mean does the request reply continue to work if the last step of the route is not a .to() but a .xstream() ? It seems not for me -- View this message in context: http://camel.465427.n5.nabble.com/Xstream-marshals-to-byte-array-and-not-String-tp5129211p5131281.html Sent from the Camel - Users ma

Re: Xstream marshals to byte array and not String

2012-01-09 Thread mgiammarco
Nobody can help me? Why after I put xstream marshal/unmarshal request-reply has stopped working? 2012/1/9 mgiammarco [via Camel] > I mean does the request reply continue to work if the last step of the > route is not a .to() but a .xstream() ? It seems not

Re: Xstream marshals to byte array and not String

2012-01-10 Thread mgiammarco
Ok I have tried but unfortunately reply is missing. Conversion to String works: [ #1 - JmsConsumer[queryServer]] pratobackend INFO Exchange[ExchangePattern:InOut, Headers:{JMSCorrelationID=null, breadcrumbId=ID:virtual1.mariosoft.mio-54532-1326218763414-4:1:-1:1:1, JMSPriority=4

Re: Single request with multiple replies over TCP

2012-01-18 Thread mgiammarco
I have the same problem. I send a message and I expect several ASYNC replies. Unfortunately I get only ONE reply using either an activemq client with camel and a java stomp client. -- View this message in context: http://camel.465427.n5.nabble.com/Single-request-with-multiple-replies-over-TCP-tp5

How can Shiro be used with camel to limit access to a route?

2012-02-28 Thread mgiammarco
Hello, I am reading several times shiro documentation and camel docs, but I do not understand a thing. The problem I have seems simple: I need that a message is processed by a component if the authenticated user is in a specified group. So I setup shiro, is use .policy() in my dsl but what do I p

Re: How can Shiro be used with camel to limit access to a route?

2012-02-29 Thread mgiammarco
First thanks for your replies. Infact I have read documentation but now I go deeper in detail to see if I understand well. Imagine that I have five destinations where I send my message with multicast(). Now before each destination I put a policy(). But I have five authorization groups (one for ea

Re: How can Shiro be used with camel to limit access to a route?

2012-02-29 Thread mgiammarco
I add another problem, probably more serious. In my client I insert a shiro security token with process(). I can see in the log of the headers of the message: SHIRO_SECURITY_TOKEN and the string with username and password encoded. Unfortunately when I send it via activemq to the server/broker I l

Re: How can Shiro be used with camel to limit access to a route?

2012-03-01 Thread mgiammarco
Hi, I have already looked at shirosecurityinjector source code to find the name of the header it adds to the message. Here it is: public ByteSource encrypt() throws Exception { ByteArrayOutputStream stream = new ByteArrayOutputStream(); ObjectOutput serialStream = new ObjectOutput

Re: How can Shiro be used with camel to limit access to a route?

2012-03-08 Thread mgiammarco
Can you please show me the shiro.ini config of your example because it is the most difficult thing to understand for me. -- View this message in context: http://camel.465427.n5.nabble.com/How-can-Shiro-be-used-with-camel-to-limit-access-to-a-route-tp5521623p5548182.html Sent from the Camel - User

Re: How can Shiro be used with camel to limit access to a route?

2012-03-08 Thread mgiammarco
I have sent a message to the activemq server with shiro token header using the stomp protocol and the header is correctly present in the camel routing of my server. -- View this message in context: http://camel.465427.n5.nabble.com/How-can-Shiro-be-used-with-camel-to-limit-access-to-a-route-tp55

Re: How can Shiro be used with camel to limit access to a route?

2012-03-09 Thread mgiammarco
Thank but I see I cannot explain myself. The example you show is also shown in the camel apache web site. I cannot understand the syntax of that file expecially: - can the "role" be linked to an ldap/ad group? - when I am ringo in sec-level1 what does it mean that can I access "zone1" readonly?

Re: Embedded Web Console in Tomcat

2012-03-10 Thread mgiammarco
Hello, 2.9.1 is out and I am not yet able to use web console. I badly need it to debug because jconsole/visualvm are uncomfortable to use. Please tell me if there are any news about this. Thanks, Mario -- View this message in context: http://camel.465427.n5.nabble.com/Embedded-Web-Console-in-To

Is anyone really using shiro framework with camel?

2012-03-17 Thread mgiammarco
Hello, I need to do a simple thing with shiro: - users in group "foo" can travel in route "x"; - users in group "bar" can travel in route "y"; Yes I have read the docs. Yes I feel stupid. No I do not need to now that I can add a .policy statement to my route. I need a real example of the .ini fi

RecipientList without aggregation

2012-03-28 Thread mgiammarco
Hello, I am getting confused because there are so many ways to do this thing. I need that, in my route message X get copied n times to n different beans. I need to choose which beans as recipientlist patterns says. Now I need that each bean is parallel processed. But I do NOT need absolutely mess

Re: RecipientList without aggregation

2012-03-31 Thread mgiammarco
RubyTuesdayDONO wrote > > Mario, > > if you know in advance which beans will be consuming from the endpoint, > you > could define them statically using Multicast, without the dynamism of > Recipient-List. > Thank you for your suggestions but the new requirements from my customer implies a dy

Re: RecipientList without aggregation

2012-03-31 Thread mgiammarco
Claus Ibsen-2 wrote > > Hi > > Sometimes you can also just use a bean method, and from there use the > ProducerTemplate to send your messages wherever you want, and you can > send multiple messages to X different endpoints etc. And you don't > have to wait for replies as you can send the message

Re: How can Shiro be used with camel to limit access to a route?

2012-04-05 Thread mgiammarco
Ok I have found the bug: ShiroSecurityTokenInjector creates a bytearray and puts it in the message header. The bytearray do not pass through openwire... But the bytearray content is a string text with only ascii chars! So I manually put it as an header of string type. -- View this message in co

Re: How can Shiro be used with camel to limit access to a route?

2012-04-06 Thread mgiammarco
2012/4/6, Claus Ibsen-2 [via Camel] : > > > On Thu, Apr 5, 2012 at 8:54 PM, mgiammarco wrote: >> Ok I have found the bug: >> >> ShiroSecurityTokenInjector creates a bytearray and puts it in the message >> header. >> >> The bytearray do not pass thro

[URGENT] map roles and permissions to use with camel-shiro and ldap

2012-05-19 Thread mgiammarco
Hello, I am using shiro with camel. I can authenticate an user with activedirectory (ldap) but I am not able to map user groups in roles to user permissions. And camel needs absolutely permissions to work. Here is my config.ini: [main] authcStrategy = org.apache.shiro.authc.pam.FirstSuccessfulStr