Calling Java class from VB.net

  • Thread starter Thread starter simon
  • Start date Start date
S

simon

hello,
may have a need shortly to call a java class from a vb.net web app.
basically the java class would serve as an email creation/sending
function.
i realize this all could be done in .net, but i'm just curious as to
what needs to be set up to make a call such as this.
i realize you can call a java function from sql server and was
wondering if wrapping the call to java from a proc would be an easy
way to go. preferably i'd like to make the call directly from a vb
class

searching the web for this topic did not turn up much information
"call java from vb.net"

did find this response from one site regarding ASP calling Java:
the only way you could call a java object is if it is compiled to a
class and resides in C:<Windows>\Java\Trustlib.

Then you can do :

set javaObject = GetObject("java:YourClass")
strResult = javaObject.YourMethod()
Response.Write(strResult)
set javaObject = nothing

also found where you can purchase a 3rd party tool, JNBridge - but
looking for a free coding solution, not purchased.

the java classes i would end up calling would only be returning a
value of success or fail, everything else would be handled in the java
class and database.

thoughts on this topic would be appreciated, as always! thanks
 
thanks for the reply. i will definitely look into this configuration.
was also very curious if there was a way directly call it
thanks
 
You can use Web Services, but if you need higher performance than an
interoperability bridge is the way to go (although not free). Intrinsyc
Software has 2 products which do this - one deploys on the .NET side,
the other on the Java side (so you can use whichever product best fits
your environment).

Access Java from .NET using J-Integra for .NET
http://j-integra.intrinsyc.com/support/net/doc/#examples/csharp_java/quickstart.html

Access Java from .NET using J-Integra Espresso
http://j-integra.intrinsyc.com/support/espresso/doc/#JavaConn/sample_java.html

For a free evaluation, visit http://j-integra.intrinsyc.com/

Shane Sauer
J-Integra Interoperability Solutions
http://j-integra.intrinsyc.com/
high performance interop middleware for java, corba, com & .net
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top