Samanthi perera

Ranch Hand
+ Follow
since Jan 08, 2010
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Samanthi perera

Which of the following creates indexes implicitly
a. PRIMARY KEY
b. UNIQUE
c. FOREIGN KEY
d. DEFAULT
e. All of the above
14. Which of the following statement will not implicitly begin a transaction?

a. INSERT
b. UPDATE
c. DELETE
d. SELECT
e. None the above ; they all implicitly begin a transaction
Which one of the following can be interpreted as a data dictionary?
a.A table of cursors
b.A table containing a list of all the data fields in the database
c.A table of objects containing a list of all the records in the database
d.A "table of tables" containing a list of all the tables in the database
e.A table of pointers containing a list of all the rows in the database
is there a anyway to create a proxy in spring other than using ProxyFactoryBean ?
13 years ago
is there any other way to impliment ProxyFactoryBean a than creating this way?

13 years ago
this is my impl class


this is my advice


this is my test class


this is my xml file


this examle working fine.
but my problem is where is the pointcut in this example?
13 years ago
this is my dog class


this is my xml



this is my cat class


this is my main class


when i run i get out put as follow


how to get cat objects from collection d??
13 years ago
lets imagin i don't like to put my xml file to src folder.
so i need it to put Diretly to project folder.

1)if i did that way how can i use ClassPathXmlApplicationContext to load beans?
2)or is there any other best way to do this other than using src folder?
13 years ago
I am reading Spring in Action book.
it saying that beans has life cycle several steps.
3 rd one is Set bean name =If the bean implements BeanNameAware, Spring passes thebean’s ID to setBeanName().

1)my question is what is BeanNameAware interface?
2)when do we impliment that interface?
13 years ago
I put a jboss-web.xml file inside the project and make a war file.
here is jboss-web.xml


but the starting line of this xml file give this message



when i start jboss server and type this in IE
http://localhost:8080/Abc/

it is working.it gives expected results.
but when i type this
http://localhost:8080/TicketSystem
it says


i don't know why?
13 years ago
project attached as a zip file
13 years ago
the problem is that i created a war file without a jboss-web.xml fle.
But it is also working.
my problem is how it is working without a jboss-web.xml.
13 years ago
I change the name of war file to Abc.war.
now i type http://localhost:8080/Abc/ in Explore.
it is working fine.
but still i am unable to fine extracted war file in tem folder.
13 years ago
it is working fine.
anyway i put a war file without a jboss-web.xml file.
it is also working fine.
1)i don't know why?
2)can you tell me where is the place to jboss extract the war files?
13 years ago
ok.
here is my jboss-web.xml file



it in WebContent folder of my web application.
is it ok now.
13 years ago