James Clarke

Ranch Hand
+ Follow
since Oct 04, 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 James Clarke

Hi all,

Does anyone know of any performance degradation caused by log4j ?

I am sure that code execution is slowed to some extent by logging statements, the question is how much ?
Are there any performance metrics on the actual impact of the logging statements.

Thanks,

James
Hi all,

I have a few hundred lines of code which read messages from a messaging system that uses UDP protocol and is a high volume, low latency system.
The messages are parsed and the data persisted to a database using a single insert statement.

Is it worth using hibernate in this situation ? I personally do not think so since theres only one insert statement and the overhead of loading up all the libraries required by Hibernate itself will be a performance hit.

Any thoughts, ideas appreciated.

Thanks,

J.C
Doesn't answer the question. And your example is different.

Does an instance of Dispatcher get created and what happens to the instance variables, local variables etc. ??
And can you confirm how the current thread gets replaced and the underlying things taking place in the JVM ?

Thanks,

J.C
14 years ago
Hi all,

What are teh implications of casting the result of Thread.currentThread() ?

For instance I have code that looks like this:

class Dispatcher extends Thread {
public void run(){
// does some stuff
}
}

class TestListener extends Listener {

public void onMsg(Message msg){
Dispatcher disp = (Dispatcher) Thread.currentThread();
}


My guess is an instance of Dispatcher takes over the current thread. But does an instance of Dispatcher get created and what happens to the instance variables, local variables etc. ??

Thanks in advance,

J.C

14 years ago
Hi all,

what is the purpose of specifying man-to-one, one-to-many etc mappings in Hibernate ??

Apart from the compiler being able to verify that it has the right return type declared, I dont see any benefit in this.

Thanks,

J.C
Hi All,

Does anyone know if its possible to buy a soft copy of the book "Hibernate Made Easy" either in PDF or any other format ??

Thanks,

J.C
Hi all,

Does Hibernate always require a "join table" to create association between two tables ? Is it possible to use the foreign key constraint in the database instead of having a separate join table ?

Also if I were creating a data model, are there special considerations that I should keep in mind when I know that Hibernate will be using the data model ?

Thanks,

J.C
Thanks Marijn,

Any idea about other similar organisations that offer certifications ?

J.C
15 years ago
Hi all,

Does anyone know of the the top most recognized certification providers for Java technologies apart from Sun ?

I am looking to get certifications in : Struts2,Hibernate,Swing,Multi-threaded programming,ant,maven etc.

I heard of brainbench and Java black belt, does anyone know how recognized these are ?

Thanks in Advance,

J.C
15 years ago
Hi all,

Im new to Hibernate and have a few basic questions:

1) Is ant or maven required to build hibernate projects ?

2) Is it possible to build (ear) a hibernate project from eclipse or myeclipse ? (without the use of ant/maven)

thanks in advance,

J.C
Folks anyone have any ideas about this ??

I have not come up with much from searching other forums.

Thanks,

J.C
15 years ago
Hi all,

I get the below error in my weblogic logs when I deploy a Struts 2 based application, anyone have a an idea about what could be causing this ?

I initially thought it was because of a missing spring plugin jar but I have included that in the lib directory..

Thanks in advance,

J.C


<BEA-101165> <Could not load user defined filter in web.xml: org.apache.struts2.dispatcher.FilterDispatcher.
java.lang.NullPointerException
at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:189)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyResultType(XmlConfigurationProvider.java:479)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addResultTypes(XmlConfigurationProvider.java:450)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:407)
at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:239)
at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:111)
at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reload(DefaultConfiguration.java:152)
at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:52)
at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:395)
at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:452)
at org.apache.struts2.dispatcher.FilterDispatcher.init(FilterDispatcher.java:205)
at weblogic.servlet.internal.FilterManager$FilterInitAction.run(FilterManager.java:320)
at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
at weblogic.security.service.SecurityManager.runAs(Lweblogic.security.acl.internal.AuthenticatedSubject;Lweblogic.security.acl.internal.AuthenticatedSubject;Ljava.security.PrivilegedAction Ljava.lang.Object;(Unknown Source)
at weblogic.servlet.internal.FilterManager.loadFilter(FilterManager.java:88)
at weblogic.servlet.internal.FilterManager.preloadFilters(FilterManager.java:57)
at weblogic.servlet.internal.WebAppServletContext.preloadResources(WebAppServletContext.java:1725)
at weblogic.servlet.internal.WebAppServletContext.start(WebAppServletContext.java:2890)
at weblogic.servlet.internal.WebAppModule.startContexts(WebAppModule.java:948)
at weblogic.servlet.internal.WebAppModule.start(WebAppModule.java:353)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.ScopedModuleDriver.start(ScopedModuleDriver.java:200)
at weblogic.application.internal.flow.ModuleListenerInvoker.start(ModuleListenerInvoker.java:117)
at weblogic.application.internal.flow.ModuleStateDriver$3.next(ModuleStateDriver.java:204)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.flow.ModuleStateDriver.start(ModuleStateDriver.java:60)
at weblogic.application.internal.flow.StartModulesFlow.activate(StartModulesFlow.java:26)
at weblogic.application.internal.BaseDeployment$2.next(BaseDeployment.java:635)
at weblogic.application.utils.StateMachineDriver.nextState(StateMachineDriver.java:26)
at weblogic.application.internal.BaseDeployment.activate(BaseDeployment.java:212)
15 years ago
Hi all,

Can anyone give me some idea of which UI framework is currently in most demand ?

Struts, JSF, Spring MVC are the ones that come to mind. Among these I get the impression Struts is still the most widely used, and JSF is set to be the replacement for struts. Spring MVC has not been widely adopted and is not likely to be as widely used as Struts or JSF. So Struts and JSF are the frameworks most worth learning for the job market.

Is my analysis of these frameworks accurate ?

Thanks,

J.C
Hi all,

Anyone have any idea which of the following technologies are the hottest in the job market right now ?

Spring, Hibernate, EJB3, Struts, AJAX

Also is there more demand for Hibernate than for EJB3 ?

Thanks in advance,

J.C
Problem solved. The client stub used by weblogic need to be created and included in client classpath and the stub name should be used as the type when declaring+casting the object that results from the JNDI lookup.

Only tihng I dont like about this is the stub name is: TravelAgentBean_12ko68_TravelAgentRemoteImpl_1001_WLStub (very long!)

I have no idea how to inform WL to use a different name.

Thanks,

J.C