Yair Ogen

Greenhorn
+ Follow
since Feb 12, 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 Yair Ogen

My use case is as follows:

Client sends request to retrieve data. Server has a large amount of data (> 2GB), hence we want data (List of objects) to be sent as chunks of objects (e.g. one object at a time).

So the inputStream will be an ObjetInputStream? still that needs to wrap another input stream. BytearrayInputStream?

Has anyone done anything similar using rmiio?

Yair
10 years ago
Hi,

can anyone share how you used rmiio?

for example, if I build:

RemoteIteratorServer<DummyData> dummyDataRemoteIteratorServer = new RemoteIteratorServer<DummyData>(new SimpleRemoteInputStream(inputStream));

what should "inputStream" be?

my goal is for the server to send data to the client in a "chunk" fashion.

can you help?

thanks,

Yair
10 years ago
Thanks, So you think that if one has multiple processes on multiple VM's and he wishes to have a centralized Configuration (to avoid duplicate entries etc), the way to go is via IPC?

Not a bit of an over kill?

Specifically, we are using commons-configuration. anyone know if they have any solution for such a problem?

Thanks.
11 years ago
Can you please elaborate more on IPC?
11 years ago
Hi,

I have a product built out of multiple processes. Each process uses internally commons configuration.

Does anyone have an idea how to manage the config? I.e. we do not want to duplicate variables so each process will be able to read them.

Additionally, DB solution is no good, as we do not want to be dependent on DB for something like configuration.

Thanks

Yair
11 years ago
Hi,

I am using RAD 7 and a WAS 6.0.2 as a local server.

I would like to manage the WAS priofile in Clear Case version control.

Is it possible?

How will the Admin Console work when the resources are under source control?
Hi,
I'm trying to generate javadoc for multiple projects but with no success.
I'm using WSAD v5.02, and the WSAD gives me the option to generate only one project at a time.
I have in my workspace 5 different projects (some are ejb projects and some are simple java projects).
I want to be able to generate javadoc for all my projects (of course there are multiple pacjages wtih in each project).
The problem is when I try ANT or I can only specify one source directory for my java files, and I have in my workspace 5 different source folders.
Any help would be appretiated (even a statement that this can not be done)...
Regards,
Yair Ogen
18 years ago
Hi can any one tell me why and in which cases I should use the OJB Apache project?
hi i'm trying to compile the CD_DataBase.xsd schema (using the JaxB that I got from the JWSDP found at Sun's site) which references to an Album element in Album.xsd
For some reason, my xjc task falls when trying to read the imported schema.
here are the schemas':
---------------------------------------------------
Album.xsd
---------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.bll.co.il"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
jaxb:extensionBindingPrefixes="xjc"
jaxb:version="1.0"
elementFormDefault="qualified">
<xsd:annotation>
<xsd:appinfo>
<jaxb:globalBindings>
<xjc:serializable/>
</jaxb:globalBindings>
</xsd:appinfo>
</xsd:annotation>
<xsd:element name="album">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="description" type="xsd:string"/>
<xsd:element name="producer" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>
---------------------------------------------------
CD_DataBase.xsd
---------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema targetNamespace="http://www.bll.com"
xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:jaxb="http://java.sun.com/xml/ns/jaxb"
xmlns:xjc="http://java.sun.com/xml/ns/jaxb/xjc"
xmlns:alb="http://www.bll.co.il"
xmlns:cd="http://www.bll.com"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
jaxb:extensionBindingPrefixes="xjc"
jaxb:version="1.0"
elementFormDefault="qualified">
<xsd:import namespace="http://www.bll.co.il" schemaLocation="Album.xsd"/>
<xsd:annotation>
<xsd:appinfo>
<jaxb:globalBindings>
<xjc:serializable/>
</jaxb:globalBindings>
</xsd:appinfo>
</xsd:annotation>
<xsd:element name="CD">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="artist" type="xsd:string"/>
<xsd:element ref="alb:album"/>
</xsd:sequence>
<xsd:attribute name="title" type="xsd:string" use="required"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
can any one help?
even if it works, will jaxb compilr the referenced schema (album.xsd) to java classes every time i use it (in other schemas' that are using it)?
Thank's,
18 years ago
Hi,
I'm using WSAD 5.0, It loks very nice using the cheat sheets, but that can be quite disturbing.
does any body know some other way to create a struts managed web project?
18 years ago
Hi ,
In WSAD 5.0 using CMP 2.0 you can only create EJBQL finders.
look for the definition in the ejx-jar.xml file...
The syntax of the EJBQL is quite alike the SQL syntax you're familiar with.
For more info look in the WSAD Help Contents...
Enjoy
18 years ago
By the way, by generating a .NET proxy I received the follwing Exception:
System.Web.Services.Protocols.SoapHeaderException: No Deserializer found to deserialize a ':acctArray' using encoding style 'http://schemas.xmlsoap.org/soap/encoding/'.
18 years ago
Hi,
I'll try your solution although my samlpe above doesn't use a complex object, it uses String[]. Look at the EJB method:
public void setStringArray(String[] strArray)
{
String[] str = strArray;
System.out.println("Array length is: " + str.length);
}

Does it count as a complex object?
What can I do?
My problem occurs (the two warnings above and the error hapend when I try to compile my Web Project...).
Why is this hapening?
While generating the WSAD client fo my webservices (trying both String[] and Account[] where Account is in a seperate java project...) I get the following errors (at creation time):
"The following parameter is of type array that is not supported". trhis error occurs twice for each array specified above...
As a result I get the following message:
"Some methods have been omitted from the sample because they contained unsupported types:.
Needless to say that in my sample the EJB methods that deal with String[] and Account[], aren't visible...
[ March 19, 2003: Message edited by: Yair Ogen ]
18 years ago
hi, I'm trying to create a web service in WSAD 5.0.
It doesn't matter if my array is simple type or complex (i.e. String[]), and it doesn't matter if it's a parametr or a result from the method, I get an error in my wsdl.
WSAD generates an xsd file:
<?xml version="1.0" encoding="UTF-8"?>
<schema attributeFormDefault="qualified"
elementFormDefault="unqualified" targetNamespace="http://myFoo/"
xmlns="http://www.w3.org/2001/XMLSchema"
xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/"
xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd1="http://myFoo/">
<import namespace="http://schemas.xmlsoap.org/wsdl/" schemaLocation="http://schemas.xmlsoap.org/wsdl/"/>
<import namespace="http://schemas.xmlsoap.org/soap/encoding/" schemaLocation="http://schemas.xmlsoap.org/soap/encoding/"/>
<complexType name="ArrayOfString">
<complexContent>
<restriction base="soapenc:Array">
<sequence/>
<attribute ref="soapenc:arrayType" wsdl:arrayType="string[]"/>
</restriction>
</complexContent>
</complexType>
</schema>
for this file i get three errors:
1. src-import.0: Failed to read imported schema document 'http://schemas.xmlsoap.org/wsdl/'. Foo.xsdFooWeb/Web Content/wsdl/myFooline 7
2. src-import.0: Failed to read imported schema document 'http://schemas.xmlsoap.org/soap/encoding/'.Foo.xsdFooWeb/Web Content/wsdl/myFoo line 8
3. src-resolve: Cannot resolve the name 'soapenc:Array' to a(n) type definition component.Foo.xsdFooWeb/Web Content/wsdl/myFooline 11

it seems to me that for some odd reason WSAD doesn't recognize the schams (warnings 1+2) and there for has an erro (3).
Does any body know how to fix the problem?
I'm want to use my generted wsdl's in a .net platform (but as for noe I can't because ther's a fault in the genrated wsdl...)
My method is (it's a part of a EJB):
public void setStringArray(String[] strArray)
{
String[] str = strArray;
System.out.println("Array length is: " + str.length);
}
18 years ago