Win a copy of Fixing your Scrum this week in the Agile forum!

bksella sella

Ranch Hand
+ Follow
since Jul 31, 2003
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 bksella sella

Hi,

I am not sure if yahoo service is free of cost. BTW have you tried looking at this...

webservice

You can have a look at this thread.

- bksella
10 years ago
Hi,

You can perhaps use JAX-WS and build a web service using the Oracle Workshop that comes with Oracle Weblogic. The approach can be a top-down starting from WSDL file and generating the required classes in Java.

- bksella
10 years ago
You can use the ANT task to generate client specific jar file. This jar file needs to be added to CLASSPATH on the client machine and invoke the client code...



The Client code can be as follows...Check the classes present in the client jar that got generated.



- bksella
10 years ago
Hello Carox,

Check your weblogic.xml file for the value, that is set for the parameter "workingDir". Its value should be a valid directory under Windows Vista.

Hope this helps.

BK Sella
Hello Viswa,

Check the connection pool settings ( Inactive Connection Timeout ). This value should ideally be zero. This might be a probable reason for the database connection to get closed even before any transaction completes. The parameter "Inactive Connection Timeout" will be set to any positive integer ( in seconds ) if the application code did not explicitly close the database connection after usage. If you are sure that there are no database connection leaks in your application, then you can very well go ahead and set the value of "Inactive Connection Timeout" to zero.

Hope this helps.

BK Sella
12 years ago
In your weblogic.xml file, have the directory structure defined as...

<jsp-descriptor>
<jsp-param>
<param-name>compileCommand</param-name>
<param-value>javac</param-value>
</jsp-param>
<jsp-param>
<param-name>workingDir</param-name>
<param-value>C:\foobar\</param-value>
</jsp-param>
<jsp-param>
<param-name>keepgenerated</param-name>
<param-value>true</param-value>
</jsp-param>
<jsp-param>
<param-name>pageCheckSeconds</param-name>
<param-value>5</param-value>
</jsp-param>
</jsp-descriptor>
13 years ago
Just to give you some more information, the FOR and WHILE loops can be skipped entirely, if the condition specified is not met, whereas "DO WHILE" loop will be executed at least once before the given condition is checked.
13 years ago
You can also check the connection timeout settings in your weblogic console for the connection pool which you are using. May be the connection timeout is too short for some of the queries that take considerably longer time to complete execution.
13 years ago
If you already have the necessary weblogic jar file in the classpath, then changing the startup command to weblogic.Server ( case sensitive ). Hope this works.
13 years ago
Hi,

It will be more helpful if you could post the source code, so that we know what you are actually trying...

-Sella
Hi Abhishek,

You will use an Interface when you want the developer to implement his own method implementations, but to have the same method signature.

You will use an Abstract class when you have some common implementation for certain methods and let the developer implement his own logic for the other methods which are declared abstract.

I hope you understood. Let me know if this is clear.


- Sella
15 years ago
I have the below package in Oracle

CREATE OR REPLACE PACKAGE CUSTOMER_MASTER
AS
TYPE CITY_REC IS RECORD (
CITY_ID NUMBER,
CITY_NNAME VARCHAR2(2000)
);

TYPE TY_CITY_TBL IS TABLE OF CITY_REC;
END CUSTOMER_MASTER;

...and have a function which returns a collection
of CITY_REC of type TY_CITY_TBL. Is it possible to
get this collection into Java by calling the
function ?

thanks
bkSella.
Hi Kalai,

Pls give some information abt the program you have
written. Did u write a CMP with a custom primary key class ?

bksella
Hi David,
Here is the findBy code which returns multiple rows ( due to duplicated records in DB ).

<finder>
<method-name>findByEmpidTypeAddress</method-name>
<method-params>
<method-param>java.lang.Long</method-param>
<method-param>java.lang.Long</method-param>
<method-param>java.lang.Long</method-param>
</method-params>
<finder-query><![CDATA[(&(&(= empId $0)(= type $1))(= address $2))]]>
</finder-query>
</finder>

Now how do i use the distinct in the above piece of code ( as u suggested )...
Hi,

If you are newbie, try using java's reference implementation. This is very easy to use and test ejb's. I guess, it also has object database which you can use...for more infomation, check out : http://java.sun.com/j2ee/index.jsp