-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
[My Blog]
All roads lead to JavaRanch
//Service is an interface which is marked like @Service("serviceObject") and the implementing class ServiceImpl has the method implementation..
[My Blog]
All roads lead to JavaRanch
[My Blog]
All roads lead to JavaRanch
alpesh helwatkar wrote: i tried printing the bean object
@Autowired
serviceClass serviceObject
SOP(serviceObject);//this itself gives null!
alpesh helwatkar wrote:I am using Rational Software Architect built on eclipse for the same.
if it is not throwing an autowired exception that means that bean should be autowired!...
[My Blog]
All roads lead to JavaRanch
alpesh helwatkar wrote:i guess by adding this:@RunWith(SpringJUnit4ClassRunner.class) at the beginning of the class already makes sure that it is using JUnit 4!
i hope that is the correct approach...
do i have to explicitly create a bean in the spring-servlet.xml file? i did that too.. no use though.!!
[My Blog]
All roads lead to JavaRanch
[My Blog]
All roads lead to JavaRanch
serviceClass is an interface which is implemented by serviceClassImpl,whose methods i m trying to access
alpesh helwatkar wrote:many thanks for your help christopher!!
Lead architect of http://www.WebRocketX.com a javascript ajax SPA framework based on HTML injection. Develop web applications at escape velocity.
Lead architect of http://www.WebRocketX.com a javascript ajax SPA framework based on HTML injection. Develop web applications at escape velocity.
Getting married means "We're in love, so let's tell the police!" - and invite this tiny ad to the wedding:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
|