MyEclipse: How do I create a Spring Bean? (ME4S)
Kentwj - Feb 07, 2012 - 05:38 PM
Post subject: How do I create a Spring Bean? (ME4S)
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:
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?
cconway - Feb 08, 2012 - 02:48 AM
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.
Kentwj - Feb 08, 2012 - 03:01 PM
Thanks for your response. The link for the tutorial I am going through is:
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.
Kentwj - Feb 08, 2012 - 03:50 PM
I have also attached a MS Word file showing the problems I am hitting.
cconway - Feb 09, 2012 - 02:06 AM
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
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:
All times are GMT - 6 Hours
Powered by PNphpBB2
© 2003-2004 The PNphpBB GroupCredits