aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes VB client to a Session Bean Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "VB client to a Session Bean" Watch "VB client to a Session Bean" New topic
Author

VB client to a Session Bean

Arijit Ghosh
Ranch Hand

Joined: Feb 01, 2002
Posts: 174
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.


Regards,<br /> Arijit
sim sim
Ranch Hand

Joined: Jun 05, 2002
Posts: 55
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

Joined: Feb 01, 2002
Posts: 174
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

Joined: Jun 04, 2002
Posts: 3211
    
    6
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.


Free SCDJWS 5.0 Study Guide - SCDJWS 5.0 Quiz (How to get SCDJWS 5.0 Quiz)
Java Platform, Enterprise Edition 6 Web Services Developer Certified Expert Exam Study Guide and Quiz
seshu kumar
Greenhorn

Joined: Jun 13, 2002
Posts: 23
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

Joined: Jun 04, 2002
Posts: 3211
    
    6
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

Joined: Feb 01, 2002
Posts: 174
Thanks a lot Mikalai.
Arijit Ghosh
Ranch Hand

Joined: Feb 01, 2002
Posts: 174
Thanks Seshu. Everyone seems to be of similar opinion.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: VB client to a Session Bean