Hitesh Gupta

Greenhorn
+ Follow
since Jul 03, 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 Hitesh Gupta

Hi BalaJi,

Thanks for the reply.

Actually the google results tell how to send file to server from client.

But i had file being created on server and need it to be send back to client. I am calling Web Service by simply calling its invoke method.
What return parameters I expect for same?

Please help..!!!

Regards,
Hitesh
15 years ago
Hi,

I had hosted simpla java file as web services using AXIS and TomCat.
This web services recieves the client request and creates pdf/rtf file out it and saves it on server machine.

I am able to successfully make a call to web servies from client machine and it is creating file on server machine.

Further My requirements is that after the file being created, it should be returned to client machine. Please let me know how I can achieve this functionality in WebServices.

Regards,
Hitesh.
15 years ago
Hi,

I have one application deployed on WAS 5 which is doing a context look up on another application deployed on wAS 6.

Please let me know how we can achieve this thing..?

Regards,
Hitesh
15 years ago
Hi,

I have one application deployed on WAS 5 which is doing a context look up on another application deployed on WAS 6.

Please let me know how we can achieve this thing..?

Regards,
Hitesh
15 years ago
Hi,
I am able to do it.
Thanks
Hi,

I had executed a spring Quartz project as a stand alone java application. Now, I am trying to deploy it on a Server, where it will deployed in to ear file and will be called automatically.

Please find the files created:

sqTest.java

package com.hitesh.java;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
public class sqTest {
public static void main(String[] args) {
System.out.println("Before Scheduler starts....");
ApplicationContext ctx = new ClassPathXmlApplicationContext("ApplicationContext.xml");
System.out.println("After Scheduler starts....");
}}

MyJob.java

package com.hitesh.java;
import org.quartz.JobExecutionContext;
import org.quartz.JobExecutionException;
import org.springframework.scheduling.quartz.QuartzJobBean;
public class MyJob extends QuartzJobBean {
protected void executeInternal(JobExecutionContext ctx) throws JobExecutionException {
System.out.println("EXECUTING QUARTZ JOB");
}}

ApplicationContext.xml

<?xml version="1.0" encoding="UTF-8" ?>

<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.0.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-2.0.xsd">

<bean name="myJob" class="org.springframework.scheduling.quartz.JobDetailBean">
<property name="jobClass" value="com.hitesh.java.MyJob"/>
</bean>


<bean id="simpleTrigger"
class="org.springframework.scheduling.quartz.SimpleTriggerBean">
<property name="jobDetail" ref="myJob"/>
<property name="startDelay" value="2000"/>
<property name="repeatInterval" value="1000"/>
</bean>

<bean class="org.springframework.scheduling.quartz.SchedulerFactoryBean">
<property name="triggers">
<list>
<ref bean="simpleTrigger"/>
</list>
</property>
</bean>
</beans>

This xml is placed at project level. Jar files needed are Spring.jar, Quartz-1.5.0.jar

Please let me know how to migrate this thing EAR which can be executed on a Server and process is executed automatically.

Regards,
Hitesh
Hi,

I need some information on WAS Workmanager used to schedule jobs.
Also Let me know which is better to adapt in clustered environment.

Spring + Quartz
Spring Batch
WAS WorkManager

Regards,
Hitesh
15 years ago
Hi,

I need some information batch schedulers, used for scheduling batch jobs and their performance in a cluster environment.

Also please recommend which framework is better to use in clustered env for batch scheduling.

Spring + Quartz
Spring Batch
WorkManager

Regards,
Hitesh
Hi,

We are deploying some application using spring batch framework.
Please let me know where I can find sample batch code to look in to.

Regards,
Hitesh.
Kyle,

How will I interact with MQ form DB2.
Nitesh,

Thanks for your reply. The suggestion is remarkable but here all data is being provided by third party vendor and I can't change the design of data retrival in to new table.
So, I was looking if we make it happen through Java only.

Regards,
Hitesh.
Hi

We have a Java process that pings the DB (mainframe DB2) at a predefined frequency. If Java process finds some data in DB it reads and processes that data and inserts the data in IBM MQ using JMS.

We are now planning to migrate it to WAS with support for Load Balancing and Clustering environments. We have decided to use Spring Batch Framework.

Problem:-

Now in a multi clustered environment, suppose if some data is there in DB2 and is updated in MQ by java program running in one cluster. How can we ensure that once data is retrieved from one cluster, it should not be repeated by other java program running in differnet cluster. Otheriwse it will lead to duplicate data in MQ by differnet clusters.

May be if we put some flag checks in java to comply to it. But in a multi clustered environment, how we can achieve this.

Regards,
Hitesh.
Hi

We have a Java process that pings the DB (mainframe DB2) at a predefined frequency. If Java process finds some data in DB it reads and processes that data and inserts the data in IBM MQ using JMS.

We are now planning to migrate it to WAS with support for Load Balancing and Clustering environments. We have decided to use Spring Batch Framework.

Problem:-

Now in a multi clustered environment, suppose if some data is there in DB2 and is updated in MQ by java program running in one cluster. How can we ensure that once data is retrieved from one cluster, it should not be repeated by other java program running in differnet cluster. Otheriwse it will lead to duplicate data in MQ by differnet clusters.

May be if we put some flag checks in java to comply to it. But in a multi clustered environment, how we can achieve this.

Regards,
Hitesh.
Hi

We have a Java process that pings the DB (mainframe DB2) at a predefined frequency. If Java process finds some data in DB it reads and processes that data and inserts the data in IBM MQ using JMS.

We are now planning to migrate it to WAS with support for Load Balancing and Clustering environments. We have decided to use Spring Batch Framework.

Problem:-

Now in a multi clustered environment, suppose if some data is there in DB2 and is updated in MQ by java program running in one cluster. How can we ensure that once data is retrieved from one cluster, it should not be repeated by other java program running in differnet cluster. Otheriwse it will lead to duplicate data in MQ by differnet clusters.

May be if we put some flag checks in java to comply to it. But in a multi clustered environment, how we can achieve this.

Regards,
Hitesh.
Hi

We have a Java process that pings the DB (mainframe DB2) at a predefined frequency. If Java process finds some data in DB it reads and processes that data and inserts the data in IBM MQ using JMS.

We are now planning to migrate it to WAS with support for Load Balancing and Clustering environments. We have decided to use Spring Batch Framework.

Problem:-

Now in a multi clustered environment, suppose if some data is there in DB2 and is updated in MQ by java program running in one cluster. How can we ensure that once data is retrieved from one cluster, it should not be repeated by other java program running in differnet cluster. Otheriwse it will lead to duplicate data in MQ by differnet clusters.

May be if we put some flag checks in java to comply to it. But in a multi clustered environment, how we can achieve this.

Regards,
Hitesh.
15 years ago