Bis Bang

Greenhorn
+ Follow
since Jan 28, 2004
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 Bis Bang

Thanx Aneesha and all.... for giving me all the explanation about the topic..
Hey Mark Do U like the name... Its stands "Biswajit(Bis) Bangalore(Bang)" Creativity.....!!!
20 years ago
Hi Aneesha and RK.. yeah we can not have constructor with parameter in servlet...If we create a servletconfig object in the difault consructor; can we have the features of init() method in that case!!! or some how there will be any life cycle violation??...
20 years ago
Hi,
Jhon...I think u r mistaking...A servlet can have a constructor(default).. U try to write a servlet with a constructor and init() it will compile and run..No doubt about that...
[ March 11, 2004: Message edited by: Bis Bang ]
20 years ago
Hi,
can we do all the initilization in the constructor of a servlet instead of init()??...if not why?
Thanx in advance...
20 years ago
Hi' all
can u plz clear the concept?
If I am given two component one uses only interfaces and other uses only abstract classes.. Which should i go for and why? I am looking for an answer which signifies it at the Design and Architecture level of a project..
Thanx in advance
20 years ago
for running EJB u need to have an ejb container.... under any application server or u need to have sun's J2EE server...
Try that ...
Hi gyes.. I have a little doubt...
As the life cycle of servlets says that the container will create one instance per servlet at startup or when the 1st request comes up for the servlet. If other requests come in by that time the container will see if there is any intance of that servlet is existing if its there than a new thread will be processing the second request.. and same for other request also.. Now if my servlet is to be designed to handle 1000 request at a time.. will there be 1000 therads processing the request on behalf of Only single instance of that servlet or we can have different concept to do that..(as far as i know instance pooling is available only for the servlet which implements Single Thread Model)...
Thanx in advance....
Bish
[ March 01, 2004: Message edited by: Bis Bang ]
20 years ago
thanx Seetesh
Lots of things are clear to me now..
Hi Satish...I do have the same explanation... Plz go through the sequence diagram of both CMP and BMP..(Ed Roman soft copy page 627)
I feel if u call a finder method of a been which is not created means calling the finder method b4 create method in home interface will either return null or exception.. and both these method can be called in pool state.. cos these r in "Home Interface" Plz correct me if I m wrong..
hi,
Seetesh, Thanx for ur ans... I mean to say that..how a client able to find an EJB by its primary key in home interface... before the client calls create(args,args)...method...As we know from the lifecycle of entity bean that... once the client calls home.create(aa,hhh) method bean is created in data base...... and a primary key is returned to the container...I mean how a client able to call the bean with its primary key fron its pool state..?
Hi,
How we able to call ejbFind(primarykey) method from the pool state of an Entity Bean Life Cycle? Do we have any PK available foa a Bean in pool state?? I am not clear about that...Plz help...
Thanx in Advance....
Make use of LDAP and store session over there....Use Session manager for the different web application which interect with the LDAP server to get the session.....
20 years ago
Its works when i make the request from a browser(http://localhost:8080/demo/SignedApplet.html)..and create a file in my local disk
20 years ago
Hi Joe I have the following files in a Folder called Signed_Applet..
CompanyCer,compstore, SignedApplet.html, SignedApplet.jar, Write.jp, SignedAppletDemo.class, SignedAppletDemo.java, SSignedApplet.jar same as in the Article.. Now I added the Signed_Applet Folder in the Context path of the server as below..
<Context path="/demo"
docBase="D:\Signed_Applet"\>
Now when I give the following command ...
appletviewer -J-Djava.security.policy=Write.jp
http://localhost:8080/demo/SignedApplet.html
from my working directory say D:/bis.... 1)The Applet starts..2)its shows Signed Applet demo in the body 3)Does not show successfuly created file in the body and 4)gives the the folowing Errors in the command prompt ....from the request been made
D:\bis>appletviewer -J-Djava.security.policy=Write.jp http://localhost:8080/demo
/SignedApplet.html
java.security.AccessControlException: access denied (java.util.PropertyPermissio
n user.home read)
at java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:269)
at java.security.AccessController.checkPermission(AccessController.java:
401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:12
76)
at java.lang.System.getProperty(System.java:573)
at SignedAppletDemo.test(SignedAppletDemo.java:28)
at SignedAppletDemo.paint(SignedAppletDemo.java:55)
at sun.awt.RepaintArea.paint(RepaintArea.java:177)
at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260)
at java.awt.Component.dispatchEventImpl(Component.java:3678)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
java.security.AccessControlException: access denied (java.util.PropertyPermissio
n user.home read)
at java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:269)
at java.security.AccessController.checkPermission(AccessController.java:
401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:12
76)
at java.lang.System.getProperty(System.java:573)
at SignedAppletDemo.test(SignedAppletDemo.java:28)
at SignedAppletDemo.paint(SignedAppletDemo.java:55)
at sun.awt.RepaintArea.paint(RepaintArea.java:177)
at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260)
at java.awt.Component.dispatchEventImpl(Component.java:3678)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
java.security.AccessControlException: access denied (java.util.PropertyPermissio
n user.home read)
at java.security.AccessControlContext.checkPermission(AccessControlConte
xt.java:269)
at java.security.AccessController.checkPermission(AccessController.java:
401)
at java.lang.SecurityManager.checkPermission(SecurityManager.java:524)
at java.lang.SecurityManager.checkPropertyAccess(SecurityManager.java:12
76)
at java.lang.System.getProperty(System.java:573)
at SignedAppletDemo.test(SignedAppletDemo.java:28)
at SignedAppletDemo.paint(SignedAppletDemo.java:55)
at sun.awt.RepaintArea.paint(RepaintArea.java:177)
at sun.awt.windows.WComponentPeer.handleEvent(WComponentPeer.java:260)
at java.awt.Component.dispatchEventImpl(Component.java:3678)
at java.awt.Container.dispatchEventImpl(Container.java:1627)
at java.awt.Component.dispatchEvent(Component.java:3477)
at java.awt.EventQueue.dispatchEvent(EventQueue.java:456)
at java.awt.EventDispatchThread.pumpOneEventForHierarchy(EventDispatchTh
read.java:201)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(EventDispatchThre
ad.java:151)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:145)
at java.awt.EventDispatchThread.pumpEvents(EventDispatchThread.java:137)
at java.awt.EventDispatchThread.run(EventDispatchThread.java:100)
20 years ago
Hi Joe,
Its a nice Article.. But how to deploy the Applet in Tomcat container.. so that we can request the same through a browser or applet viewer.I am getting error..
20 years ago