Vikky Bhat

Greenhorn
+ Follow
since Oct 23, 2008
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 Vikky Bhat

Thanks Peter,

Yes i am using EJB2.X CMP. now will change commit options to B for all beans. i had a doubt about this but was not sure . Thanks once again .
15 years ago
Thank you Peter,

I would appreciate your quick reply. i am not using hibernate or any caching tool. but my concern is when we set commit option to "A" jboss assumes it is only the owner for that database. considering the performance (as per the jboss documentation) i had set commit options for individual beans to A. does it creates any problem in multiple server single database model ? does commit options really play any role in performance ? we did lots of brainstorming regarding this and agreed upon the single server single database model with higher end hardware support . let me see how it goes.

i had read your book. really well written and has good and managed topics. thank you for wonderful book.
15 years ago
Hi,
Currently i am using Jboss 4.2GA server for production purpose . now the situation is i need to setup 4 servers at different locations across the country. each server will run the same application for that location and they will access the centralized database. does it create any bottlenecks as my application makes lot of network calls to database ? . surely i am not looking for the Clustered environment. without clustering how can i sync all the servers ? should i user any third party caching tools or jboss cache can handle this ? if yes how it would work? how the concurrency is handled ? Please someone guide me.
15 years ago
Hi Treimin,
Since you are using authenticator for gmail SMATP, it is not possible to set display name/id. it always takes the original id only. try some other SMTP like http://www.gmx.com . Hope this would help you.
15 years ago
Hi,
If we consider development environment there is no need of re-starting the server(web as well as application). changing the server time will immediately reflected. But considering a production environment and running application it is always better to restart the server as Jaikiran Pai said.otherwise it may leads to malformed response generation for the request by the server.
15 years ago
Hi Uttam,
There could be two reasons for above problem.

1. You might have deployed same bean with different names. so i suggest you to clean deploy folder and redeploy them again. this generally happens if you use Manual deployment in eclipse/any IDE in general (export option).

2. Sometimes if forcefully shutdown jboss in its temp folder it will not delete the previous JNDI bindings. so stop jboss using stop.jar/bat

Hope this may help you.
15 years ago
Hi folks,
I am developing a online test tool. application is built on jsp as front end. here we are not allowing user to shift from test execution browser window to some other window (GOOGLE ) by disabling tool bars of ie browser and suppressing keyboard events using JS. as of now i could able to suppress all events (ofcourse not windows and f1) except ctrl+esc and alt+esc.

Even i did little R&D and came to know the reason behind this. when we press alt+esc the first event alt will be fired but when esc is pressed control will be moved to other window (windows startup) so ie browser could not able to generate event.

please help me is there any way to capture such events in java script.???
Hi pal saheb,

I dont think eclipse 3.0.x have jboss plugin. use eclipse eclipse-ganymede version, it has a ready jboss 4.2.x plugin. within two minute you can have the control over the jboss from your IDE. if you have any configuration issues please let me know...
15 years ago
Thank you Javid,

yes i agree to your point...The EJB 2.0 specification specifically disallows multiple simultaneous accesses to the same stateful session bean. If a client-invoked business method is in progress on an instance when another client-invoked call, from the same or a different client, arrives at the same instance, the container may throw RemoteException to the second client, if the client is a remote client, or EJBException if the client is a local client. This is in contrast to entity and stateless session beans, which have new instances created by the container when concurrent calls occur. In certain special circumstances (for example, to handle clustered web container architectures), the container may instead queue or serialize such concurrent requests. However, the clients can not rely on this behavior. Note that this concurrent call restriction forbids loopback calls on stateful session beans as well.

i did the following workaround for the problem. by doing this i have to compromise with the performance of the application i.e with the response time. In my session facade bean, I surround all accesses to the stateful session bean with synchronization blocks, locking on the SSB. This will prevent more than one thread accessing the SSB; once a thread has entered the SSB any additional threads will be queued.




15 years ago
Thanks for swift reply Javid,
Actually problem occurs when user makes a re-entrant call i.e when user clicks on a submit or next image more than once or when two users are trying to submit the form on same time. actually the application is meant for a on-line test portal, where the users will simultaneously access the ejb instance. is there any way in the jboss to override the ejb2.x specs for accessing session beans. in weblogic we use allowConcurrentCalls flag TRUE. please get me a workaround.
15 years ago
Hi,
we are using Jboss 4.2.1 GA. i have many state full session beans in my application. apllication is working fine. but upon concurrent user testing apllication crashed and server thrown error "No concurrent calls on stateful beans exception"

stack trace....
[color=red][STDERR] java.rmi.ServerException: EJBException:; nested exception is: javax.ejb.EJBException: Application Error: no concurrent calls on stateful beans
2009-02-10 16:44:03,276 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.handleException(LogInterceptor.java:365)
2009-02-10 16:44:03,276 ERROR [STDERR] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:209)
2009-02-10 16:44:03,276 ERROR [STDERR] at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:138)
2009-02-10 16:44:03,276 ERROR [STDERR] at org.jboss.ejb.SessionContainer.internalInvoke(SessionContainer.java:648)


i know this is because we dint use any allowConcurrentcall like flag in jboss.xml deployment descriptor like we use in weblogic. even i doubt whether jboss would support such tag or not???..

please jboss experts help me out. i saw it in jIRA the bug mentioned was in open status.....
15 years ago
Thank you so much Javid.....the problem is solved!!!
15 years ago
hi,
i am running two instances of jboss As 4.2 on same host i.e node1 and node2 on localhost. now i need to know is the any way to redirect the url http://localhost:8088 (node1) to http://localhost:8089 (node2) when node1 is not running or the other way round. please help me out. should i use any proxy ssl for this? please let me know.
15 years ago
ok i read your previous post....see if you are using jsp you can make use of "LastAccessTime" variable and use java script for validation and redirection. hope it will help you...
15 years ago
Hi Arun,
if you were speaking about time out related to HTTP session it is better to use HTTP session parameter "LastAccessTime"..i dint understand your scenario ? clearly mention where you want to implement session timeout?,is it for a perticular page or for bean..?
15 years ago