Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: ClamAV: devel

libclamav.jar

 

 

ClamAV devel RSS feed   Index | Next | Previous | View Threaded


fbivaud at sopragroup

Nov 16, 2007, 5:22 AM

Post #1 of 5 (2289 views)
Permalink
libclamav.jar

Hello,

Do you know if a JAVA API is available for example libclamav.jar witch work with the daemon?

Or do you have a solution for work with clamav daemon from Weblogic application server servlet for scan uploaded files?

Problem is the memory duplication caused by fork process when JAVA runs the clamav program, that's why we try to use the multithread daemon.

Thanks

François Bivaud
fbivaud [at] sopragroup
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


sherpya at netfarm

Nov 16, 2007, 5:54 AM

Post #2 of 5 (2172 views)
Permalink
Re: libclamav.jar [In reply to]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bivaud François wrote:
> Hello,
>
> Do you know if a JAVA API is available for example libclamav.jar witch work with the daemon?
>
> Or do you have a solution for work with clamav daemon from Weblogic application server servlet for scan uploaded files?
>
> Problem is the memory duplication caused by fork process when JAVA runs the clamav program, that's why we try to use the multithread daemon.
>
> Thanks
>
what about jni and link directly libclamav?

Regards
- --
Gianluigi Tiesi <sherpya [at] netfarm>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHPaEM3UE5cRfnO04RAnphAKCC+qzAD4W/ze/mmynCFIXoV6kInwCfdSfp
E64G0C3+ytMHcM1P2gY+fdU=
=0TE4
-----END PGP SIGNATURE-----
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


fbivaud at sopragroup

Nov 16, 2007, 7:34 AM

Post #3 of 5 (2179 views)
Permalink
Re: libclamav.jar [In reply to]

Thanks, we implement this way and we verify the memory usage.

That's just complicated because we develop under win32 and exploit under linux suze.

But us application don't need portable.

Thanks

François

-----Message d'origine-----
De : clamav-devel-bounces [at] lists [mailto:clamav-devel-bounces [at] lists] De la part de Gianluigi Tiesi
Envoyé : vendredi 16 novembre 2007 14:54
À : ClamAV Development
Cc : Perrault Julien; Mornet Michael
Objet : Re: [Clamav-devel] libclamav.jar

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Bivaud François wrote:
> Hello,
>
> Do you know if a JAVA API is available for example libclamav.jar witch work with the daemon?
>
> Or do you have a solution for work with clamav daemon from Weblogic application server servlet for scan uploaded files?
>
> Problem is the memory duplication caused by fork process when JAVA runs the clamav program, that's why we try to use the multithread daemon.
>
> Thanks
>
what about jni and link directly libclamav?

Regards
- --
Gianluigi Tiesi <sherpya [at] netfarm>
EDP Project Leader
Netfarm S.r.l. - http://www.netfarm.it/
Free Software: http://oss.netfarm.it/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (MingW32)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHPaEM3UE5cRfnO04RAnphAKCC+qzAD4W/ze/mmynCFIXoV6kInwCfdSfp
E64G0C3+ytMHcM1P2gY+fdU=
=0TE4
-----END PGP SIGNATURE-----
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


edwintorok at gmail

Nov 16, 2007, 10:14 AM

Post #4 of 5 (2167 views)
Permalink
Re: libclamav.jar [In reply to]

Bivaud François wrote:
> Thanks, we implement this way and we verify the memory usage.
>
> That's just complicated because we develop under win32 and exploit
under linux suze.
>
> But us application don't need portable.
>

You can connect to clamd using a TCP socket, and send it simple commands
to scan your file.
It supports scanning local files, or files streamed through another socket.

See the documentation (clamdoc.pdf) for details.

--Edwin
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net


fbivaud at sopragroup

Nov 20, 2007, 7:30 AM

Post #5 of 5 (2164 views)
Permalink
Re: libclamav.jar [In reply to]

Hi!

Course connect to clamd using TCP socket is more simple.

Join us ClamAVUtils implementation.

We need open one socket by upload servlet thread scan for use clamd multithreading (sendCommand) without synchronize problem.

Thanks for your help.

François

-----Message d'origine-----
De : clamav-devel-bounces [at] lists [mailto:clamav-devel-bounces [at] lists] De la part de Török Edwin
Envoyé : vendredi 16 novembre 2007 19:14
À : ClamAV Development
Objet : Re: [Clamav-devel] libclamav.jar

Bivaud François wrote:
> Thanks, we implement this way and we verify the memory usage.
>
> That's just complicated because we develop under win32 and exploit
under linux suze.
>
> But us application don't need portable.
>

You can connect to clamd using a TCP socket, and send it simple commands
to scan your file.
It supports scanning local files, or files streamed through another socket.

See the documentation (clamdoc.pdf) for details.

--Edwin
_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html
Please submit your patches to our Bugzilla: http://bugs.clamav.net
Attachments: ClamavUtils.java (10.8 KB)

ClamAV devel RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.