Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Spring Framework | Web Services | BioInformatics | Java Server Faces | Jboss 3.0 tutorial | Hibernate 3.0 | XML

Tutorial Categories: Ajax | Articles | JSP | Bioinformatics | Database | Free Books | Hibernate | J2EE | J2ME | Java | JavaScript | JDBC | JMS | Linux | MS Technology | PHP | RMI | Web-Services | Servlets | Struts | UML


 

Java Tutorials


 

 

Struts Tutorials

Struts Resources

Visit Forum! Post Questions!
Jobs At RoseIndia.net!

Ejb Annotations

User Comments
Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl
  Blink   Furl   Simpy   Y! MyWeb 

Add This Tutorial To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 

Current Comments

8 comments so far (post your own) View All Comments Latest 10 Comments:

In the Target annotation example:you have declared the annotation with name:
public @interface Test_Element.
While using this annotation you are using name @Test_Target(doTestElement="Hi ! How r you").

Posted by Waseem ahmed on Friday, 07.30.10 @ 12:27pm | #98540

Excellent article, explained very nicely about Annotations, keep it up good job.

Posted by raky on Monday, 04.19.10 @ 02:18am | #96459

it is easy and nice tutorial to getting start annotation.

Posted by balamurugan on Wednesday, 04.22.09 @ 23:09pm | #87052

url: http://www.roseindia.net/ejb/Annotations.shtml

I think the example given for @Inherited Annotation is wrong. and the explanation is ambiguous. I request the author to give good explanation and example. please see at http://www.eclipse.org/aspectj/doc/released/adk15notebook/annotations.html#annotation-inheritance

Your feedback is appreciated. You are doing a very good selfless job, thanks for that.

Posted by vishu on Saturday, 02.21.09 @ 22:17pm | #85084

import java.lang.annotation.Inherited;

@Inherited

@interface Dummy{
String doTestElement() default "Arre chal gaya";

}

@Dummy
public class TestTarget {
public static void main(String [] ar){
TestTarget object=new TestTarget();
System.out.println(object.doTestElement());
}
}

now i am getting exception.
The method doTestElement() is undefined for the type TestTarget

i am not able to use the interface properties.
please guide where i m wrong.

Posted by rocky on Monday, 08.4.08 @ 14:52pm | #70930

Hi Guys

I have already run EJB3 session bean and message driven bean in my system. The Rose india site really helped me to run. But i have not found sufficient information from this tutorial to run a sample application with eclipse.

If u need the sample EAR which I already run, Please contact me at swaroop.sp@gmail.com. I will send u the already running project that i created with eclipse.

Itís quite simple to run.

regard
swaroop

Posted by swaroop on Thursday, 07.17.08 @ 15:47pm | #67674

Hi friends ,

when i am deploying ejb applications i am getting simple error saying that plz check ur XML file .

but every thing in XML file is correct , but i have dought in creation of the JNDI name in weblogic.So can u plz tell me the detailed procedure to define the JNDI name in weblogic.


thanking u .


regards
chandu naik
+919705069255

Posted by chandu naik on Saturday, 04.19.08 @ 13:53pm | #57138

when i compile file with content:

@Target(ElementType.METHOD)
public @interface A {
boolean isInherited() default true;
String showSomething() default "Show anything?";
}

the compiler throwed a error:
A.java:1: cannot find symbol
symbol: class Target
@Target(ElementType.METHOD)
^
1 error
why ? i am using jdk 1.5.8

Posted by desengel on Thursday, 12.20.07 @ 23:54pm | #43148

Ask programming questions?

 

 

Back to Tutorial

 

  JDO Tutorials
  EAI Articles
  Struts Tutorials
  Java Tutorials
  Java Certification

Tell A Friend
Your Friend Name

 

 
Browse all Java Tutorials
Java JSP Struts Servlets Hibernate XML
Ajax JDBC EJB MySQL JavaScript JSF
Maven2 Tutorial JEE5 Tutorial Java Threading Tutorial Photoshop Tutorials Linux Technology
Technology Revolutions Eclipse Spring Tutorial Bioinformatics Tutorials Tools SQL
 

Home | JSP | EJB | JDBC | Java Servlets | WAP  | Free JSP Hosting  | Search Engine | News Archive | Jboss 3.0 tutorial | Free Linux CD's | Forum | Blogs

About Us | Advertising On RoseIndia.net  | Site Map

India News

Send your comments, Suggestions or Queries regarding this site at roseindia_net@yahoo.com.

Copyright © 2007. All rights reserved.