• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

VB client to a Session Bean

 
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I want to have a simple VB client connecting (logging in using Username and Password) to Jboss ( a session bean) and then returning some data back to the VB client.
Any pointers ? Urgent!!
Thanks in advance.
 
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
As far as I know u can not have a VB client calling a bean. U can, however have a VB client talking to a CORBA server, the server developed in Java can communicate with bean and return results to VB client.
Any better answers, I would like to know as well
 
Arijit Ghosh
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
So you mean that if I have a VB interface, I cannot call a session bean ? Not even through servlets ? Why don't we have the servlet return some XML file which can be parsed by the VB client ?
What I mean is that can we have the VB client send some request to the servlet which in turn calls the bean. It then does the necessary processing and returns the result.
Isn't that possible ?
 
Bartender
Posts: 3796
40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Arijit Ghosh:

What I mean is that can we have the VB client send some request to the servlet which in turn calls the bean. It then does the necessary processing and returns the result.
Isn't that possible ?


Hi, Arijit.
It is definitely possible to call Java Servlet from VB client programm. Either POST or GET method and get some results from HTTP servlet.
But your question in first version was about direct access of EJB from VB. I think you got reasonable answer : use CORBA controls in VB (I don't know about their existance ...)
So, if yiu have JBoss bundled with Tomcat (not standalone JBoss) your problem could be resolved easily.
Mikalai.
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can do it in two ways,
Method A
1) Write a servlet which calls the EJB
2) Forwards the results (in java beans)
to a JSP
3)Let your JSP create a html, Xhtml or xml
4)From VB client make a HTTP connection get the result
5)You can parse or transform the response
Method B
1) You can invoke EJB through CORBA
 
Mikalai Zaikin
Bartender
Posts: 3796
40
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
you can use following approach:

In VB client use standard Microsoft's control (AFAIR, Inet).
Obtain input stream, read string from stream - that is all.
Hope, this'll help you.
Mikalai.
 
Arijit Ghosh
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks a lot Mikalai.
 
Arijit Ghosh
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks Seshu. Everyone seems to be of similar opinion.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic