File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes WebSphere and EJB's Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Products » Websphere
Reply Bookmark "WebSphere and EJB Watch "WebSphere and EJB New topic
Author

WebSphere and EJB's

Patricia Fulk
Ranch Hand

Joined: Sep 10, 2001
Posts: 62
Hello,
I am having a problem displaying records from a Sybase table. I have a Stateless session bean calling an entity bean. The entity bean is supposed to be returning a collection, but it isn't. If I take the session bean out and use a servlet it works fine. Has anyone run into this problem?
Trish
mukund kulkarni
Greenhorn

Joined: Nov 11, 2001
Posts: 23
can you give more details .
are you using any local variables in session bean or so..
if possible post your code ..

------------------

-Mukund Kulkarni<br /> <br />Sun Certified Java Programmer<br />Sun Certified Java Developer
Patricia Fulk
Ranch Hand

Joined: Sep 10, 2001
Posts: 62
I have found out what the problem is. It is the datasource used in WebSphere. If I use the Sybase datasource com.sybase.jdbc2.jdbc.SybConnectionPoolDataSource it doesn't work, but if I use DriverManager.getConnection("jdbc:sybase:Tds ds1:4100/odb00") it does work. So, I am going to look into why the datasource isn't working.
Thanks,
Trish
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
Moving this to the WebSphere forum.
------------------
Tom
Sun Certified Programmer for the Java� 2 Platform
Moderator of the forums:
J2EE and EJB
Other Java APIs


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
 
IntelliJ Java IDE
 
subject: WebSphere and EJB's
 
Threads others viewed
Wrapping an entity bean
WebSphere and EJB's
entity bean vs session bean
J2EE
XML
IntelliJ Java IDE