Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

WebSphere and EJB's  RSS feed

 
Patricia Fulk
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can you give more details .
are you using any local variables in session bean or so..
if possible post your code ..

------------------
 
Patricia Fulk
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 13974
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!