facebook

JBoss EJB example that actually works? [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #203668 Reply

    bryanbrun
    Member

    Does 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

    #203670 Reply

    Riyad Kalla
    Member

    Bryan,
    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.

    #203679 Reply

    bryanbrun
    Member

    Could 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

    #203681 Reply

    Riyad Kalla
    Member

    Bryan,
    I’ve forwarded your question off to our internal team of EJB geniouses, stay tuned.

    #203695 Reply

    Scott Anderson
    Participant

    Bryan,

    (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/

    #203727 Reply

    bryanbrun
    Member

    On the JNDI problem your post here was more help than the geocrawler link:

    https://www.genuitec.com/forums/topic/wrong-comp-name-gen-in-local-home-interface-ejb-not-bound/&highlight=localhome

    Thanks for your help on this,

    Bryan

    #203784 Reply

    Scott Anderson
    Participant

    Bryan,

    Glad you found that and reposted it. I answer so many questions I often forget what I know. 😉

Viewing 7 posts - 1 through 7 (of 7 total)
Reply To: JBoss EJB example that actually works? [Closed]

You must be logged in to post in the forum log in