- This topic has 6 replies, 3 voices, and was last updated 21 years, 3 months ago by
Scott Anderson.
-
AuthorPosts
-
bryanbrunMemberDoes anyone have an EJB example for Jboss that actually works?
I have followed the example in the Help file but it doesn’t create a project that is valid or actually compiles.
(1) The jboss.xml file doesn’t get put into META-INF.
(2) There is an empty jaws.xml file that is created. It causes errors when compiling.
(3) I tried to adjust the XDoclet to put the jboss.xml file in META-INF. I think that this cleared up the fact that couldn’t find the EJB when I tried to use it.
(4) Now I am getting Source Not Found errors when trying to use the Util interface.I am using jboss 3.2.3 on linux, eclipse 2.1.2, and the latest MyEclipse.
All I need is a simple example showing the successful creation of the EJB and then creation and calling of a business method on that EJB. Does anyone have something like this?
How about MyEclipse including a few simple examples that are known to work?
I am little hesitant to support MyEclipse if even the simple stuff in the documentation doesn’t work.
Thanks,
Bryan
Riyad KallaMemberBryan,
We are in the midst of revamping our docs and appologize you are running into a brick wall right now with the old docs. Admitedly the docs lag because we focus our energies on feature enhancements and bug fixes to the software; but we have a few people working around the clock to really get some nice illustrated docs together for our users. Portions of these will be ready with the 2.7/3.7 GA release (End of this month) and we will continue to improve them from there. If you have any other suggestions for what you want to see in the docs, or what you felt was not covered well, let us know.
bryanbrunMemberCould you answer a couple questions so that I could attempt to get this working?
(1) How do I configure MyEclipse to not create the jaws.xml file?
(2) When it creates a util interface for an ejb, how do I get it to use the JNDI_NAME instead of COMP_NAME when doing the lookup in the code that it generates? For example in this line here in the getHome():
java.lang.Object objRef = initialContext.lookup(com.acme.userservice.interfaces.UserServiceBeanHome.COMP_NAME);
Thanks,
Bryan
Riyad KallaMemberBryan,
I’ve forwarded your question off to our internal team of EJB geniouses, stay tuned.
Scott AndersonParticipantBryan,
(1) How do I configure MyEclipse to not create the jaws.xml file?
In the jboss subtask settings in the ejbdoclet, set the JBoss version to 3.0 or 3.1. The default is 2.4 and this creates jaws.xml
(2) When it creates a util interface for an ejb, how do I get it to use the JNDI_NAME instead of COMP_NAME when doing the lookup in the code that it generates? For example in this line here in the getHome():
Here’s a good discussion on the topic I found with Google, since it’s an XDoclet question, not a MyEclipse one:
http://www.geocrawler.com/archives/3/14029/2002/1/0/7707488/
bryanbrunMemberOn the JNDI problem your post here was more help than the geocrawler link:
Thanks for your help on this,
Bryan
Scott AndersonParticipantBryan,
Glad you found that and reposted it. I answer so many questions I often forget what I know. 😉
-
AuthorPosts