MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
manojsikhakolli
Post subject: Binding file not being generated for EJB3 MDB  PostPosted: Mar 02, 2012 - 10:03 PM



Joined: Mar 02, 2012
Posts: 4

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?
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Mar 05, 2012 - 08:31 AM



Joined: Nov 11, 2010
Posts: 2491

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.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
manojsikhakolli
Post subject: Details attached  PostPosted: Mar 05, 2012 - 02:51 PM



Joined: Mar 02, 2012
Posts: 4

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.
 
 View user's profile Send private message  
Reply with quote Back to top
support-swapna
Post subject:   PostPosted: Mar 06, 2012 - 09:32 AM



Joined: Nov 11, 2010
Posts: 2491

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.

_________________
Swapna
MyEclipse Support
 
 View user's profile Send private message  
Reply with quote Back to top
manojsikhakolli
Post subject:   PostPosted: Mar 06, 2012 - 09:10 PM



Joined: Mar 02, 2012
Posts: 4

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.
 
 View user's profile Send private message  
Reply with quote Back to top
support-denis
Post subject:   PostPosted: Mar 06, 2012 - 11:29 PM
Registered Member
Registered Member


Joined: Sep 26, 2011
Posts: 30

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"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://websphere.ibm.com/xml/ns/javaee http://websphere.ibm.com/xml/ns/javaee/ibm-ejb-jar-bnd_1_0.xsd"
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.
 
 View user's profile Send private message  
Reply with quote Back to top
manojsikhakolli
Post subject:   PostPosted: Mar 07, 2012 - 03:11 PM



Joined: Mar 02, 2012
Posts: 4

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
 
 View user's profile Send private message  
Reply with quote Back to top
support-denis
Post subject:   PostPosted: Mar 07, 2012 - 11:38 PM
Registered Member
Registered Member


Joined: Sep 26, 2011
Posts: 30

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.
 
 View user's profile Send private message  
Reply with quote Back to top
andreas.erne
Post subject: Bug Status?  PostPosted: Aug 21, 2012 - 07:42 AM
Registered Member
Registered Member


Joined: Jul 26, 2012
Posts: 2

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
 
 View user's profile Send private message  
Reply with quote Back to top
g888
Post subject: Any status on this yet?  PostPosted: Oct 03, 2012 - 09:15 PM
Registered Member
Registered Member


Joined: Mar 09, 2006
Posts: 1

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?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits