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

Failed to lookup the Local Entity Bean from Weblogic startup class  RSS feed

 
Jigar M Gohil
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


ejb-jar.xml



weblogic-ejb-jar.xml


Any kind of help is much appreciated...
Thanks in advance
 
SaurabhRc Jain
Greenhorn
Posts: 12
Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post the java code you are using for jndi lookup.
 
Jigar M Gohil
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SaurabhRc Jain wrote:Please post the java code you are using for jndi lookup.




Another input: We are converting our EJBs from Remote to Local. And we observed that the Local beans are not visible into JNDI tree of Weblogic.
 
Kumar Raja
Ranch Hand
Posts: 548
2
Hibernate Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please post the total JNDI string. Also, what do you notice in the JMX console (or equivalent) , how the beans are bound
 
Jigar M Gohil
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Kumar Raja wrote:Please post the total JNDI string. Also, what do you notice in the JMX console (or equivalent) , how the beans are bound


As part of this activity of changing remote Entity beans to local, we have not changed the way or method of JNDI lookup.
I have used the same JNDI name which was being used earlier i.e. with remote bean. In this example its "SampleBean"

One difference which I observed is after changing all the interfaces from remote to local, it got disappeared from weblogic JNDI tree.
However, the beans get deployed successfully but Not sure if they should be visible in JNDI tree.
 
SaurabhRc Jain
Greenhorn
Posts: 12
Java Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You need to lookup under the "java:comp/env" jndi node.



But, there might be something else wrong if you are unable to see your bean under the jndi tree on weblogic console.
Anyways, try with the above code and share your result.
 
Jigar M Gohil
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
SaurabhRc Jain wrote:You need to lookup under the "java:comp/env" jndi node.



But, there might be something else wrong if you are unable to see your bean under the jndi tree on weblogic console.
Anyways, try with the above code and share your result.




I have already tried this but it did not work...

Let me ask this question, can weblogic strartup class call Local EJB...or it always works with remote EJBs...irrespective of single or clustered environment.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!