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.
Mark
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:
hi Friends,
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
prashu
Originally posted by Jyothi Lature:
Try creating a synonym on the object and granting insert right to it...
Originally posted by Jyothi Lature:
Hi,
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
ps2.setInt(1, var1);
ps2.setInt(2, var2);
ps2.setDate(3, var3);
ps2.setString(4, var4);
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,
<web-app>
......
..
<servlet>
<servlet-name>OhMy</servlet-name>
<servlet-class>MyServlet</servlet-class>
</servlet>
..
..
<servlet-mapping>
<servlet-name>OhMy</servlet-name>
<url-pattern>/OhMy</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>OhMy</servlet-name>
<url-pattern>/ohh.*</url-pattern>
</servlet-mapping>
<servlet-mapping>
<servlet-name>OhMy</servlet-name>
<url-pattern>/foo.baz</url-pattern>
</servlet-mapping>
..
</web-app>
Hope this helps!