Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

VB client to a Session Bean

 
Arijit Ghosh
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • 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.
 
sim sim
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • 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
  • 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 ?
 
Mikalai Zaikin
Ranch Hand
Posts: 3369
12
  • Mark post as helpful
  • send pies
  • 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.
 
seshu kumar
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • 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
Ranch Hand
Posts: 3369
12
  • Mark post as helpful
  • send pies
  • 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
  • Quote
  • Report post to moderator
Thanks a lot Mikalai.
 
Arijit Ghosh
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Seshu. Everyone seems to be of similar opinion.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic