Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

URGENT !!!!!!!!!! Q : JNI Call from VC++ to EJB Fails ?  RSS feed

 
Reshma Shanbhag
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
we are making JNI call from VC++ application to a Java method, within which we are having a statement "Class.forName(myPackage.EjbHome)". The EJB is deployed in weblogic6.1 app server. This is where the JNI call fails. Instead of EjbHome Object if we use any other Java class it works fine.
It would be a great help if some could enlighten me as to why JNI call to load a EJBHome object fails. Is there any thing like JNI does not support EJB???
Any help regarding this would be really helpful to me
Thanks in advance
Reshma
 
Deepak MP
Greenhorn
Posts: 11
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Can you please post the stack trace ? or what error you are getting?
DEEPAK
 
Jignesh Patel
Ranch Hand
Posts: 626
Mac
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think ejb won't support native codes.
 
Ernest Friedman-Hill
author and iconoclast
Sheriff
Posts: 24215
37
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You're officially not supposed to use JNI in EJBs, because it would wreak havoc with the container's threading policy. But if you're going to ignore that...
I don't see anything about native code in your post. You're saying the problem is with a Class.forName(...) call -- where is the native code? Do you mean that you the EJBHome class is the one with the loadLibrary() call in it, and it won't load?
 
Reshma Shanbhag
Ranch Hand
Posts: 208
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks to all. We have resolved the issue. The problem was with a JNI call from VC++ to JAVA with in which we were loading a ejb home object in memory using Class.forName(). The problem was with CLASSPATH.

This post was regarding a JNI call to EJB, hence posted it here , sorry if it was not a appropriate forum.
Regards
Reshma
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Reshma
You have posted the same problem in another forum as well. :roll:
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!