facebook

Binding file not being generated for EJB3 MDB

  1. MyEclipse IDE
  2.  > 
  3. Java EE Development (EJB, JSP, Struts, XDoclet, etc.)
Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #323903 Reply

    Hi, I am using Myeclipe Blue and trying to deploy an MDB created in EJB3 to be deployed in Websphere 7.0 but the bindings are not being generated and hence EJB is not getting deployed. Any suggestions?

    #323935 Reply

    support-swapna
    Moderator

    Manoj,

    Sorry that you are seeing this issue.

    Can you answer some more questions for us ?

    1) Can you share the Build ID from Help > About MyEclipse Blue Edition > Build ID ?

    2) Is the MDB created in MyEclipse IDE or imported from elsewhere ? If you are following any tutorial for MDB creation, then please share the link with us.

    3) Can you please share the deployment log when you deploy the project to WAS 7?

    4) Also check the .log file which is located at <workspace dir>/.metadata/.log for any errors of interest. If yes then paste them here for us.

    #323951 Reply

    Hi swapna,

    1. The build id is Build id: 10.0-Blue-20111028

    2. I am creating the EJB3.0 MDB from within Myeclipse and using the Myeclipse EJB3.0 MDB Wizard to give class names. On creation the binding file is not being generated.
    I went thru some forums and tried creating by deploying into Websphere 7.0 ( classic mode) that did not work either. then i tried the new mode of deployment available that allows the code to be hot deployed and still the binding file is not being generated.

    3. log file attached.
    4. .log file attached.

    Attachments:
    You must be logged in to view attached files.
    #323996 Reply

    support-swapna
    Moderator

    Manoj,

    Thank you for the details. I have escalated it to a dev team member. They will get back to you.
    Sorry for the inconvenience caused.

    #324031 Reply

    Hi, Is there a turn around time available for this? i have searched in many forums and everywhere we find the same roadblock of jar binding for websphere not being created automatically.

    #324034 Reply

    Manoj,

    I can confirm that bindings are not generated.

    Until this is fixed you can try using the following workaround:
    Create a file “ibm-ejb-jar-bnd.xml” in META-INF folder of your EJB project’s source folder.
    Put a following header into the file:
    <?xml version=”1.0″ encoding=”UTF-8″?>
    <ejb-jar-bnd
    xmlns=”http://websphere.ibm.com/xml/ns/javaee&#8221;
    xmlns:xsi=”http://www.w3.org/2001/XMLSchema-instance&#8221;
    xsi:schemaLocation=”http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-ejb-jar-bnd_1_0.xsd&#8221;
    version=”1.0″>

    Then add binding configuration for your message bean like:
    <message-driven name=”TheMessageBean”>
    <jca-adapter activation-spec-binding-name=”jms/activationSpec” destination-binding-name=”jms/messageQueue”/>
    </message-driven>

    and close the bnd tag:
    </ejb-jar-bnd>

    where “jms/activationSpec” is an activation spec JNDI name and “jms/messageQueue” is message queue JNDI name.

    Best regards,
    Denis.

    #324053 Reply

    Denis,

    Thanks for the info. I wanted to know is there any other version of j2ee / ejb for which binding file is automatically generated reducing the overload of manually writing down the binding (which is the key purpose of using an IDE). Also even ejb-jar.xml is not getting auto updated with the newly created beans.

    Regards
    manoj

    #324077 Reply

    Manoj,

    If you are using ME support for XDoclet, running XDoclet for pre-3.0 beans will make your ejb-jar.xml to be updated (or actually regenerated). Consider checking this article: http://www.myeclipseide.com/documentation/quickstarts/firstejb/ .

    For 3.0 beans you should not need ejb-jar.xml to be updated.

    Regarding the IBM EJB bindings, I dont think you can get them generated at the moment.

    Best regards,
    Denis.

    #329369 Reply

    Andreas Erne
    Member

    Denis,

    What’s the status of this bug? The proposed workaround is not satisfying for a tool that claims to support Websphere and dedicates a special, commercial product around this promise.

    Please increase the priority of this integration problem. Without this (and similar) features I can not see anything that makes MyEclipse superior to other, homemade, Eclipse based solutions for Websphere development.

    Best regards,
    Andreas

    #330756 Reply

    g888
    Member

    I concur that I can easily generate this stuff manually but why would I when my organization has invested heavily in this tool and moved away from RAD?

Viewing 10 posts - 1 through 10 (of 10 total)
Reply To: Binding file not being generated for EJB3 MDB

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