Originally posted by Mark Spritzler:
What do you mean by this. That you haven't worked with Annotations, or you thing there is something inherently wrong with them?
I believe you can always just create the config files instead just like in 1.4.
Originally posted by Nathaniel Stoddard:
Home methods aren't associated with a specific entity bean, while methods in the component interface are. You can read the EJB spec for component contract and usage issues.
Originally posted by prashu bk:
As we all know we have a ejbCreate(),ejbRemove()..so on methods in a bean,
But i'm unable to understand why they are called as "callback" methods???.
yes these methods will be invoked by the container to obtain the services for the bean.But still why these methods are called as callback.
Plz help me to understand it as u all have understood
thanx in advance
Originally posted by Jyothi Lature:
This could be achieved using Prepared Statement in JDBC API. ACtually, its no differnt from using this from any other db:
PreparedStatement ps2 = conn.prepareStatement(
"INSERT INTO TBL_NAME(COL1,COL2,COL3,COL4,COL5) "+
"VALUES(?, ?, ?, ?, ?)";
-- this sample code sets the values of dynamic parameters
-- to be the values of program variables
updateCount = ps2.executeUpdate();
Incase, if you want to insert multiple rows, then you cud use batch transaction or put this in a loop..
Originally posted by S Subramonyan:
Yes you can, for eg:
You have a webapp named test. You have a servlet class named MyServlet.class
You can specify any name for it in the dd element <servlet-name>, and you can map it to any url pattern you want.
eg: in web.xml,
Hope this helps!