473,326 Members | 2,680 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,326 software developers and data experts.

Calling Java class from VB.net

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

Jan 18 '06 #1
4 12883
simon,

One option is to make the Java class a web service.

Kerry Moorman
"simon" wrote:
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

Jan 18 '06 #2
thanks for the reply. i will definitely look into this configuration.
was also very curious if there was a way directly call it
thanks
simon,
One option is to make the Java class a web service.
Kerry Moorman

"simon" wrote:
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.


Jan 18 '06 #3
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/suppo...uickstart.html

Access Java from .NET using J-Integra Espresso
http://j-integra.intrinsyc.com/suppo...mple_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

Jan 18 '06 #4
I'm wondering if the class could be re-writen as a J# class.

?
Steve

"simon" <me@here.com> wrote in message
news:lv********************************@4ax.com...
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

Jan 20 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Raja | last post by:
I have a java class thats trying to call something in python. This works fine when i do a jythonc on the python script. When i call another python script from the __init__ of my called python...
3
by: Rajesh | last post by:
Hi, I am using iplanet webserver 4.1. I want to call a java class from ssjs file. But I am not getting the result. I have created a java class file and put it in the folder...
7
by: Klaus Friese | last post by:
Hi, i'm currently working on a plugin for Adobe InDesign and i have some problems with that. I'm not really a c++ guru, maybe somebody here has an idea how to solve this. The plugin is...
5
by: claus.hirth | last post by:
If I create the function HELLO in schema S01 as follows, @ CREATE FUNCTION S01.HELLO() RETURNS VARCHAR(32) EXTERNAL NAME 'UDFSRVXYZ!sayHelloWorld' LANGUAGE JAVA PARAMETER STYLE DB2GENERAL NO...
7
by: Christian Wilhelm | last post by:
Hi! I'm trying to call a Java WebService out of a .net Client. There are two Methods, one Method requires one Parameter of type Parameter, the other Method requires one Parameter of type...
3
by: Jerome Cohen | last post by:
AI am trying to call a third-party web service. this service expects an XML fragment that contains the request plus other parameter. adding the web reference created the syntax below(reference.vb)....
2
by: ramasubramanian.rahul | last post by:
hi i am trying to call some java APIs from c . i use the standatd JNI calls to load the JVM from a c program and call all java functions by using a pointer to the jvm which was returned by the JNI...
2
by: Janna | last post by:
I have the Java JVM installes on my server. I uncommented extension=php_java.dll in php.ini I uncommented and proerpyl filled out the section in php.ini: java.class.path...
4
by: Dan | last post by:
Hi All, I've got a problem with my C++ application that calls a Java class that I've built with GCJ, I can't run it because I get errors: multiple definition of `atexit' first defined here...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.