krishna bala

Ranch Hand
+ Follow
since Jul 20, 2009
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 krishna bala

Hi Team,

I am integrating the AngujarJS with java spark framework.

i am using spark.servlet.SparkApplication for web application development.

when i tried to call the angujarJS from sparkApplication , not able to get the angujarJS

please help on it

Use the JTA transactions in this, you are talking about the distributed transactions.
9 years ago
it is looking like some configuration issue. Please post your code here to debug the issue.
what are the values in your list?
where are you storing your username and employee ID?
can you please post the day=ta base code here?
9 years ago
forward will call in server.if you user forward that servlet to servlet call inside the server. new request never comes to the browser.due to that you are not able to see the url changed on the browser address bar.
9 years ago
Servlet Filter is needed to do the login and logout.
login :
step1: writer the login filter and in doFilter method , check the user info based on the useID given by the user
step2: if the customer info not in DB or any authencation server (LDAP) throw error mesage
step3:if the userinfo found , create the HTTpSession and keep the userinfo in that session
step4: every req will comes through the loginfilter and checks the incoming user valid or not

logout:
step1: write the logout filter and check the any session is alive then call the session.invalidate() method
9 years ago
What is the back end you are using?

are you using Spring AOP transactions or Hibernate or EJB or Simple JDBC?


do you need to commit the data in the Table A and Table B irrespective failure?

Thanks for your reply.
it is workign fine in linux not in windows.
it might be due to timeformat issue. In my linux server time format is 24hh , in windows it s 12hh

Thanks a lot.
10 years ago

Thanks for your reply.
I will expalin my exact requirement here.

I am using spring Quartz to run my job.

job should trigger at 1pm,6pm and 11pm.

Can any one provide cron expression for it?

I am using following expression to run my job. but job is not triggering.

<bean id="sampleTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="sampleTransactions"/>
<property name="cronExpression" value="0 0 13,18,23 * * ?"/>
</bean>

quick reposne will appriciate , thanks in advance
10 years ago
Thanks for your quick reply.

0 17,18,19 * * * ? , will it work?

10 years ago
I am using the below cron expression to execute the spring job. But it is not working.

0 0 13,18,23 * * ?

Please help me on it.
10 years ago
57515273 [timeOutScheduler_Worker-2] ERROR JobRunShell - Job DEFAULT.processTimeOut threw an unhandled Exception:
org.springframework.scheduling.quartz.JobMethodInvocationFailedException: Invocation of method 'processTimeOuts' on target class [class $Proxy22] failed; nested exception is org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only
at org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean$MethodInvokingJob.executeInternal(MethodInvokingJobDetailFactoryBean.java:269)
at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:86)
at org.quartz.core.JobRunShell.run(JobRunShell.java:202)
at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:525)
Caused by: org.springframework.transaction.UnexpectedRollbackException: Transaction rolled back because it has been marked as rollback-only
at org.springframework.transaction.support.AbstractPlatformTransactionManager.commit(AbstractPlatformTransactionManager.java:695)
at org.springframework.transaction.interceptor.TransactionAspectSupport.commitTransactionAfterReturning(TransactionAspectSupport.java:321)
at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:116)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.aspectj.MethodInvocationProceedingJoinPoint.proceed(MethodInvocationProceedingJoinPoint.java:77)
at com.scb.nfs.ibank.security.helper.PostNotificationInterceptor.afterReturning(PostNotificationInterceptor.java:24)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethodWithGivenArgs(AbstractAspectJAdvice.java:627)
at org.springframework.aop.aspectj.AbstractAspectJAdvice.invokeAdviceMethod(AbstractAspectJAdvice.java:616)
at org.springframework.aop.aspectj.AspectJAroundAdvice.invoke(AspectJAroundAdvice.java:64)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.interceptor.ExposeInvocationInterceptor.invoke(ExposeInvocationInterceptor.java:89)
at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:171)
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204)
at $Proxy22.processtimeOuts(Unknown Source)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
at java.lang.reflect.Method.invoke(Method.java:585)
at org.springframework.util.MethodInvoker.invoke(MethodInvoker.java:276)

My code :

<bean id="timeOutScheduler" class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="quartzProperties">
<props>
<prop key="org.quartz.scheduler.instanceName">timeOutScheduler</prop>
<prop key="org.quartz.scheduler.instanceId">AUTO</prop>
<prop key="org.quartz.threadPool.class">org.quartz.simpl.SimpleThreadPool</prop>
<prop key="org.quartz.threadPool.threadCount">3</prop>
<prop key="org.quartz.threadPool.threadPriority">4</prop>
<prop key="org.quartz.jobStore.misfireThreshold">500000</prop>
<prop key="org.quartz.jobStore.class">org.quartz.simpl.RAMJobStore</prop>
</props>
</property>
<property name="startupDelay" value="15"/><!-- in seconds -->
<property name="triggers">
<list>
<ref bean="processTimeOutTrigger"/>
</list>
</property>
</bean>

<bean id="processTimeOutTrigger" class="org.springframework.scheduling.quartz.CronTriggerBean">
<property name="jobDetail" ref="processTimeOut"/>
<property name="cronExpression" value="${stp.accopen.cron.expr}"/>
</bean>

<bean id="processTimeOut" class="org.springframework.scheduling.quartz.MethodInvokingJobDetailFactoryBean">
<property name="targetObject" ref="processTimeOutBO"/>
<property name="targetMethod" value="processTimeOuts"/>
<property name="concurrent" value="false"/>
</bean>

help up to resolve the isue ?
11 years ago