Bitcoin Forum

Bitcoin => Project Development => Topic started by: Emerge on August 08, 2015, 12:47:35 PM



Title: Bitcoin with JSP
Post by: Emerge on August 08, 2015, 12:47:35 PM
I'd like to know if there are any libraries I can use for JSP and Bitcoin? Working on a project and I was hoping for work to be light

Regards,
Jm Erestain


Title: Re: Bitcoin with JSP
Post by: noel57 on August 08, 2015, 01:38:27 PM
I'd like to know if there are any libraries I can use for JSP and Bitcoin? Working on a project and I was hoping for work to be light

Regards,
Jm Erestain
Is this website helpful http://bitcoinjs.org you can see the thread here https://bitcointalk.org/index.php?topic=1126361.0


Title: Re: Bitcoin with JSP
Post by: hexafraction on August 08, 2015, 07:43:07 PM

Is this website helpful http://bitcoinjs.org you can see the thread here https://bitcointalk.org/index.php?topic=1126361.0

JSP and JS are completely unrelated. JS (javascript) runs on the client side in browsers and on the server side in NodeJS and one of the Java scripting JSRs. JSP, or Java server pages, are based on a language called Java (not the same as Javascript).

However, consider bitcoinj (https://bitcoinj.github.io/). If you have hosting that doesn't overly restrict you and you can open arbitrary network connections (both outbound and inbound) and store files to the filesystem, you should be able to use it. It will actually perform block and txn verification, and can operate in SPV mode (no need to download entire blockchain, but slightly less secure). I have some experience with it, so I can help if needed.

However, I would advise not trying to do bitcoinj stuff in JSPs. Use a ServletContextListener to start bitcoinj's network and verification threads to perform tasks asynchronously.


Title: Re: Bitcoin with JSP
Post by: Emerge on August 09, 2015, 12:46:33 AM

Is this website helpful http://bitcoinjs.org you can see the thread here https://bitcointalk.org/index.php?topic=1126361.0

JSP and JS are completely unrelated. JS (javascript) runs on the client side in browsers and on the server side in NodeJS and one of the Java scripting JSRs. JSP, or Java server pages, are based on a language called Java (not the same as Javascript).

However, consider bitcoinj (https://bitcoinj.github.io/). If you have hosting that doesn't overly restrict you and you can open arbitrary network connections (both outbound and inbound) and store files to the filesystem, you should be able to use it. It will actually perform block and txn verification, and can operate in SPV mode (no need to download entire blockchain, but slightly less secure). I have some experience with it, so I can help if needed.

However, I would advise not trying to do bitcoinj stuff in JSPs. Use a ServletContextListener to start bitcoinj's network and verification threads to perform tasks asynchronously.

Thanks man, this was the answer I was looking for.
I'll contact you maybe if ever I need some help.

Thanks,
Jm Erestain


Title: Re: Bitcoin with JSP
Post by: ed_teech on August 09, 2015, 05:58:38 AM
Use a Java library and use business-level logic. Calling bitcoin related functionality in the UI layer with JSP seems absolutely wrong.


Title: Re: Bitcoin with JSP
Post by: noel57 on August 09, 2015, 10:22:35 AM


Thanks man, this was the answer I was looking for.
I'll contact you maybe if ever I need some help.

Thanks,
Jm Erestain
[/quote]
Though I was thinking that jsp and js are the same however congratulations for getting what you need as fast as possible.