Sundaram Karthick

Greenhorn
+ Follow
since Jun 26, 2007
Merit badge: grant badges
For More
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Sundaram Karthick

Hi,
I cleared SCBCD 5 exam today with 93%.
I followed
1. Enterprise Jave Beans 3.0, fifth edition
2. EJB spec
3. Mikalai Zaikin Notes
Thanks a lot to Mikali Zaikin, your notes helped me a lot.
My preperation time was close to 3 months and also i have some EJB experience and thanks a lot to this forum.

Thanks
Karthick
Awesome, congratulations!!!
Would be nice if you could share your preperation and exam experience
As the container is responsible for controlling the transaction for MDB, there can be only 2 states either the bean can participate in a transaction or cannot. When it takes place in a transaction REQUIRED attribute is chosen and when bean not participating in a transaction NOT_SUPPORTED is chosen.
As client transaction propogation is not in scope, REQUIRED_NEW and NEVER is not brought into picture
Hi,
You have a point, also why not NEVER be also considered in your list?

Thanks
Congratulations!!!
Can you share your exam experience ?
Hi,
If you are looking at just running ejb samples, i am using Jboss 4.2 and all the samples from Mastering Enterprise JavaBeans 3.0, fifth edition, runs fine. There was only a small issue with just one of the packages, which you can fix in no time.
Let me know if you need anymore info

Thanks
Refer chapter 14: JNDI ENC and injection, i think in your type of requirement, you will have to mix both anotations and xml declaration

<ejb-jar>
<enterprise-beans>
<session>
<ejb-name>TravelAgentBean</ejb-name>
<ejb-local-ref>
<ejb-ref-name>ejb/ProcessPayment
</ejb-ref-name>
<ejb-ref-type>Session</ejb-ref-type>
<local>com.titan.processpayment.ProcessPaymentLocal</local>
<ejb-link>ProcessPaymentBean</ejb-link>
</ejb-local-ref>
</enterprise-beans>
</ejb-jar>
session listner is a good option. i have a question here out of curiosity, how are you planning to push data to the users? do you use some applet in client side?
17 years ago
Hi,
I tried it for /index.jsp and added the following in web.xml and it works fine for me. I used this in tomcat 6.0.10
<filter-mapping>
<filter-name>Servlet Mapped Filter</filter-name>
<url-pattern>/index.jsp</url-pattern>
</filter-mapping>

hope this helps
17 years ago
I had did the same with a struts application and deployed the applications as 2 WARs (although i could have packed it as one EAR).
I think if you go for a WAR or EAR, if the jar file is in the web-inf/lib or server lib , which is equivalet to having it in the classpath. So i think it should work fine either ways.
I would say hidden fields should do the work for you, there is no need for a session here. If the scope of work is going to grow, then using a industry standard framework like struts or spring would be a nice idea, but for the current scenario i think jsp and servlets should do the job for you
Hope this helps
17 years ago
Yes, Bear Bibeault. My intention of adding this piece of code was to just say it was working in my environment, as you said doing this type of activity in jsp is not that bright idea
17 years ago
either you can have two war file each having the same set of classes in the web-inf/lib as jar file. Or you can have the common classes in a jar file and copy the jar file in server lib dir.
Hope this helps
I put this in a jsp and when i run it in tomcat 5.5 and invoke the jsp using IE 7. It works fine
<%
response.setContentType ("text/xml");
String filename="me.xml";
response.setHeader ("Content-Disposition","attachment;filename="+filename);
response.getWriter().write("<kfdj>jjjdfjd<dkfjdk>");
response.getWriter().flush();
response.getWriter().close();

%>
Hope this helps
[ August 08, 2007: Message edited by: Sundaram Karthick ]
17 years ago
go through this Preventing sql injection, Variables passed as arguments to prepared statements will automatically be escaped by the JDBC driver. Even from performance point of view prepared statments are faster than the ones the you use.
Hope this helps
17 years ago