Gert,
When the file occurs in the particular folder of an ftp server at the
time only I want to trigger my ftp poller component. Once it’s triggered
it polls the file from the ftp server to my local folder. After getting
the file into my local folder remaining process is begins. Is it is
possible to control the ftppoller component till upto the file occurs
into that folder in the ftp server.
I already had done the ftppolling component. What are the
changes I want to do in it?
Please give me your suggestions how to solve
this one.
Thank you.
Thanks&Regards
Brahma Naidu
-----Original Message-----
From: Gert Vanthienen [mailto:[EMAIL PROTECTED]
Sent: Friday, June 15, 2007 9:11 PM
To: [email protected]
Cc: Aelem, Bramha Naidu (Cognizant)
Subject: Re: Reg:ServiceMix-FTP
Bramha,
Using the following command, you can add a SU project to the example you
already have
mvn archetype:create -DarchetypeGroupId=org.apache.servicemix.tooling
-DarchetypeArtifactId=servicemix-service-unit
-DarchetypeVersion=3.1-incubating -DartifactId=brahma-file-su
-DremoteRepositories=http://people.apache.org/repo/m2-incubating-repository/
Next, you add a dependency to the pom.xml that has been generated for
the JBI component that you want to use, for example:
<dependency>
<groupId>org.apache.servicemix</groupId>
<artifactId>servicemix-file</artifactId>
<version>${servicemix-version}</version>
</dependency>
Then, you create your xbean.xml file with the configuration. Finally,
you add a dependency for the SU you just created to the SA.
Hope this helps,
Gert
P.S. Have you already seen
http://incubator.apache.org/servicemix/what-is-a-jbi-su-and-how-do-i-create-one.html?
[EMAIL PROTECTED] wrote:
Gert,
From your earlier mail I check the version of Servicemix.Is it is
3.1 but I am using 3.2 installable's in jboss. So I replace them in to
3.1 and run it. Now it's working fine.
Thanks a lot for your suggestion.
Could you please send the file maven commands for
*_bramha-file-su._*I will try it in my machine.
I want to build my own *_file-su_ *components.
Thanks&Regards
Brahma Naidu
-----Original Message-----
From: Gert Vanthienen [mailto:[EMAIL PROTECTED]
Sent: Friday, June 15, 2007 8:00 PM
To: Aelem, Bramha Naidu (Cognizant)
Subject: Re: Reg:ServiceMix-FTP
Bramha,
Any chance you might tell me what the solution is? We always want to
learn something to help other users...
Gert
[EMAIL PROTECTED] wrote:
> Gert,
>
> I solve it.
>
> Thanks&Regards
> Brahma Naidu.
>
> -----Original Message-----
> From: Gert Vanthienen [mailto:[EMAIL PROTECTED]
> Sent: Friday, June 15, 2007 7:55 PM
> To: Aelem, Bramha Naidu (Cognizant)
> Subject: Re: Reg:ServiceMix-FTP
>
> Bramha,
>
> Sure you are. What else would you be creating ServiceMix SUs, SAs, ...
> for?
> You are using ServiceMix, embedded in JBoss, which is fine but doesn't
> change anything to my previous questions.
>
> What version are you using? Have you installed components from other
> versions of ServiceMix? Have you replaced JAR files in ServiceMix?
>
> Gert
>
> [EMAIL PROTECTED] wrote:
>
>> Gert,
>>
>> I am not deploying the SA in servicemix. I am deploying it in the
>>
> JBOSS.
>
>> Regards
>> Brahma Naidu
>>
>> -----Original Message-----
>> From: Gert Vanthienen [mailto:[EMAIL PROTECTED]
>> Sent: Friday, June 15, 2007 7:46 PM
>> To: [email protected]
>> Cc: Aelem, Bramha Naidu (Cognizant)
>> Subject: Re: Reg:ServiceMix-FTP
>>
>> Bramha,
>>
>> What version of ServiceMix are you using? Also: make sure that the
>> version of the JBI components you deploy is the same as the version of
>>
>
>
>> ServiceMix. This, to me, appears as if you have installed a 3.2 JBI
>> component in the 3.1 container or something similar...
>>
>> You can also get the same problem if you upgrade some JARs in
>>
> ServiceMix
>
>> by simply replacing them instead of by installing a entirely new
>>
> version
>
>> of ServiceMix.
>>
>> Gert
>>
>> [EMAIL PROTECTED] wrote:
>>
>>
>>> Gert,
>>>
>>>
>>>
>>> From your guidance I build it,
>>>
>>>
>>>
>>> But now I am facing an error.
>>>
>>>
>>>
>>> *Error:*
>>>
>>> * *
>>>
>>> *19:32:49,357 ERROR [STDERR] Exception in thread
>>> "pool-component.servicemix-ftp-thread-15"*
>>>
>>> *19:32:49,357 ERROR [STDERR] java.lang.NoSuchMethodError:
>>> org.apache.servicemix.locks.LockManager.getLock(Ljava/lang/String;)
>>> Ljava/util/concurrent/locks/Lock;*
>>>
>>> *19:32:49,357 ERROR [STDERR] at
>>>
>>>
>>>
> org.apache.servicemix.ftp.FtpPollerEndpoint$1.run(FtpPollerEndpoint.java
>
>> :242)*
>>
>>
>>> *19:32:49,372 ERROR [STDERR] at
>>>
>>>
>>>
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
>
>> .runTask(ThreadPoolExecutor.java:665)*
>>
>>
>>> *19:32:49,372 ERROR [STDERR] at
>>>
>>>
>>>
> edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker
>
>> .run(ThreadPoolExecutor.java:690)*
>>
>>
>>> *19:32:49,372 ERROR [STDERR] at
>>>
>>>
>> java.lang.Thread.run(Thread.java:595)*
>>
>>
>>> *19:32:52,419 ERROR [STDERR] Exception in thread
>>> "pool-component.servicemix-ftp-thread-17"*
>>>
>>> * *
>>>
>>> Please help me.
>>>
>>>
>>>
>>> Thanks&Regards
>>>
>>> Brahma Naidu
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>>
>>> -----Original Message-----
>>> From: Gert Vanthienen [mailto:[EMAIL PROTECTED]
>>> Sent: Friday, June 15, 2007 7:24 PM
>>> To: [email protected]
>>> Cc: Aelem, Bramha Naidu (Cognizant)
>>> Subject: Re: Reg:ServiceMix-FTP
>>>
>>>
>>>
>>> Bramha,
>>>
>>>
>>>
>>> To do this, you create a SA, with two SU:
>>>
>>> - one servicemix-ftp SU, with a poller
>>>
>>> - one servicemix-file SU, with a sender
>>>
>>>
>>>
>>> Very similar to the earlier example I sent you, just replace the
>>>
>>>
>> target
>>
>>
>>> JBI components on the SUs and provide the correct xbean.xml
>>> configurations.
>>>
>>>
>>>
>>> Gert
>>>
>>>
>>>
>>>
>>>
>>> [EMAIL PROTECTED] wrote:
>>>
>>>
>>>
>>>> Gert,
>>>>
>>>> I want to poll a file from server to my local folder with
>>>>
>>>> servicemix-ftp. Could you please guide to me how to proceed.
>>>>
>>>> Thanks&Regards
>>>>
>>>> Brahma Naidu
>>>>
>>>> This e-mail and any files transmitted with it are for the sole use
>>>>
>>>>
>> of
>>
>>
>>>> the intended recipient(s) and may contain confidential and
>>>>
>>>>
>> privileged
>>
>>
>>>> information.
>>>>
>>>> If you are not the intended recipient, please contact the sender by
>>>>
>>>> reply e-mail and destroy all copies of the original message.
>>>>
>>>> Any unauthorized review, use, disclosure, dissemination, forwarding,
>>>>
>>>> printing or copying of this email or any action taken in reliance on
>>>>
>>>> this e-mail is strictly
>>>>
>>>> prohibited and may be unlawful.
>>>>
>>>>
>>> This e-mail and any files transmitted with it are for the sole use of
>>>
>
>
>>> the intended recipient(s) and may contain confidential and privileged
>>>
>
>
>>> information.
>>> If you are not the intended recipient, please contact the sender by
>>> reply e-mail and destroy all copies of the original message.
>>> Any unauthorized review, use, disclosure, dissemination, forwarding,
>>> printing or copying of this email or any action taken in reliance on
>>> this e-mail is strictly
>>> prohibited and may be unlawful.
>>>
>>>
>>>
>> This e-mail and any files transmitted with it are for the sole use of
>>
> the intended recipient(s) and may contain confidential and privileged
> information.
>
>> If you are not the intended recipient, please contact the sender by
>>
> reply e-mail and destroy all copies of the original message.
>
>> Any unauthorized review, use, disclosure, dissemination, forwarding,
>>
> printing or copying of this email or any action taken in reliance on
> this e-mail is strictly
>
>> prohibited and may be unlawful.
>>
>>
>>
>>
>
>
> This e-mail and any files transmitted with it are for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.
> If you are not the intended recipient, please contact the sender by
reply e-mail and destroy all copies of the original message.
> Any unauthorized review, use, disclosure, dissemination, forwarding,
printing or copying of this email or any action taken in reliance on
this e-mail is strictly
> prohibited and may be unlawful.
>
>
>
This e-mail and any files transmitted with it are for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.
If you are not the intended recipient, please contact the sender by
reply e-mail and destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding,
printing or copying of this email or any action taken in reliance on
this e-mail is strictly
prohibited and may be unlawful.
This e-mail and any files transmitted with it are for the sole use of
the intended recipient(s) and may contain confidential and privileged
information.
If you are not the intended recipient, please contact the sender by
reply e-mail and destroy all copies of the original message.
Any unauthorized review, use, disclosure, dissemination, forwarding,
printing or copying of this email or any action taken in reliance on
this e-mail is strictly
prohibited and may be unlawful.