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
Kentwj
Post subject: How do I create a Spring Bean? (ME4S)  PostPosted: Feb 07, 2012 - 05:38 PM
Registered Member
Registered Member


Joined: Feb 21, 2007
Posts: 7

I am trying to run the MyEclipse Hibernate and Spring Tutorial, but when I get to the section to run the code it shows how to create a new Spring Bean. But when I try to create a Spring bean by running the following:

Window>>Show View>>Other

I cant find the 'Spring Bean' option.

My Version of MyEclipse 4 Spring is 10.0.0 Build ID: 10.0.0 Build 7(111109_1440)

Am I missing a plugin or something?

Thanks!
Kent
 
 View user's profile Send private message  
Reply with quote Back to top
cconway
Post subject:   PostPosted: Feb 08, 2012 - 02:48 AM



Joined: Apr 04, 2011
Posts: 196

Hi Kentwj,

There are a few tutorials, can you please paste the link to the one you are trying, and list the section you are following?

Typically, if you were trying to create something, you would use File > New > Other not Window > Show View > Other. In ME4S there are views that help you with annotating Java classes to turn them into beans but that also doesn't seem to match up with your question. For example, if you use Window > Show View > Other then select Spring Annotations you'll find one of those views. I'm also unclear how creating a new bean is related to running the code.

If you can point me to the part of the tutorial that is unclear, I'll be happy to try to help.

_________________
Cindy
MyEclipse for Spring Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
Kentwj
Post subject:   PostPosted: Feb 08, 2012 - 03:01 PM
Registered Member
Registered Member


Joined: Feb 21, 2007
Posts: 7

Thanks for your response. The link for the tutorial I am going through is:

http://www.myeclipseide.com/documentation/quickstarts/hibernateandspring/

Section: 6. Writing and Running Hibernate-Spring Code

Figure 6. Creating the persistenceLayer Spring bean that our business logic will use

If you hit 'Play' on Figure 6 it describes how to create a Spring Bean. I think your right about creating Spring Beans. It appears that first you must create a class then go into the 'Spring Explorer' view to turn it into a 'Spring Bean'. It was a little confusing because the tutorial showed going into the 'Spring Bean' view but that isnt an option in the current version of ME4S.

Thanks!
Kent
 
 View user's profile Send private message  
Reply with quote Back to top
Kentwj
Post subject:   PostPosted: Feb 08, 2012 - 03:50 PM
Registered Member
Registered Member


Joined: Feb 21, 2007
Posts: 7

I have also attached a MS Word file showing the problems I am hitting.

Thanks!
Kent
 
 View user's profile Send private message  
Reply with quote Back to top
cconway
Post subject:   PostPosted: Feb 09, 2012 - 02:06 AM



Joined: Apr 04, 2011
Posts: 196

Hi Kent,

Yes, that tutorial appears to be outdated. I'll let the documentation team know.

Do you have MyEclipse for Spring? If so, you may want to try the scaffolding feature. Here is a tutorial
http://www.myeclipseide.com/documentation/quickstarts/ME4STutorialScaffoldingMVC/scaffoldingarticle.html

There are also two views in MyEclipse for Spring that help you convert a Plain Old Java Object (POJO) in to a Spring bean. Here is a short tutorial that may help:
http://www.myeclipseide.com/documentation/quickstarts/ME4STutorialSpringAnnotator/springannotatorarticle.html[/url]

_________________
Cindy
MyEclipse for Spring Support
 
 View user's profile Send private message Send e-mail  
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