Calling Java class from VB.net

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • simon

    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>\Jav a\Trustlib.

    Then you can do :

    set javaObject = GetObject("java :YourClass")
    strResult = javaObject.Your Method()
    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

  • Kerry Moorman

    #2
    RE: Calling Java class from VB.net

    simon,

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

    Kerry Moorman


    "simon" wrote:
    [color=blue]
    > 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>\Jav a\Trustlib.
    >
    > Then you can do :
    >
    > set javaObject = GetObject("java :YourClass")
    > strResult = javaObject.Your Method()
    > 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
    >
    >[/color]

    Comment

    • simon

      #3
      Re: Calling Java class from VB.net

      thanks for the reply. i will definitely look into this configuration.
      was also very curious if there was a way directly call it
      thanks
      [color=blue]
      >simon,
      >One option is to make the Java class a web service.
      >Kerry Moorman
      >
      >"simon" wrote:[color=green]
      >> 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.[/color][/color]

      Comment

      • j-integra_support@intrinsyc.com

        #4
        Re: Calling Java class from VB.net

        You can use Web Services, but if you need higher performance than an
        interoperabilit y 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


        Access Java from .NET using J-Integra Espresso


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

        Shane Sauer
        J-Integra Interoperabilit y Solutions
        Java interoperability with COM Automation (OLE) & ActiveX components. 100% Java software. Run on any platform. No native code or JNI required.

        high performance interop middleware for java, corba, com & .net

        Comment

        • Steve Long

          #5
          Re: Calling Java class from VB.net

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

          ?
          Steve

          "simon" <me@here.com> wrote in message
          news:lv7ts1d203 4vj0fhosl4j29pr lci0gmer2@4ax.c om...[color=blue]
          > 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>\Jav a\Trustlib.
          >
          > Then you can do :
          >
          > set javaObject = GetObject("java :YourClass")
          > strResult = javaObject.Your Method()
          > 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
          >[/color]


          Comment

          Working...