Re: big text in string as object over the network: very strange?

2001-06-22 Thread Tobias Streckel

I think the specification has declareted this but orion support the BLOB
under CMP.

See the database schema oracle.xml:

type-mapping type=java.io.Serializable name=blob /

this entry is a default!



-Ursprüngliche Nachricht-
Von: Simon Evans [EMAIL PROTECTED]
An: Orion-Interest [EMAIL PROTECTED]
Datum: Donnerstag, 21. Juni 2001 23:02
Betreff: RE: big text in string as object over the network: very strange?


CMP Entity beans do not support CLOB and BLOB fields...neither 1.1 or 2.0
EJB Specification. you will need to use a Bean Managed Entity Bean and use
the JDBC API with CLOB and BLOB. You save them and retrieve them as Streams
rather than objects.

-Original Message-
From: Metla, Suri [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 9:48 AM
To: Orion-Interest
Subject: RE: big text in string as object over the network: very
strange?


Are there any Data types in Java to access the Long and CLOB columns of the
Oracle Database? The first bottleneck comes with the JDBC driver to map the
Database columns of these types (BLOBS, CLOBS).

Regards,
Suri

-Original Message-
From: Tobias Streckel [mailto:[EMAIL PROTECTED]]
Sent: Thursday, June 21, 2001 9:32 AM
To: Orion-Interest
Subject: Re: big text in string as object over the network: very strange?

Very strange

Okay, now I want to create a entity bean which have as attribute a
object(this object have a only StringBuffer() object).

The create method of the entity will be access from a session bean(in the
same apps). The client have access on the session bean.

If the session bean call the create method of the entity and the
StingBuffer
is small it will work.

If the StringBuffer() containts a String about 200 KB it throws the message

javax.ejb.CreateException: Error creating EntityBean: E/A-Exception:
Connection
reset by peer: socket write error

If the String is bigger than 600 kb I will get the Message:

com.evermind.server.rmi.RMIConnectionException
com.evermind.server.rmi.OrionRemoteException: Disconnected: Disconnected


WHAT HAPPENS´???
I HAVE NO ANSWER HOW I CAN GET IT TO WORK!

THANKS!

Tobi

-Ursprüngliche Nachricht-
Von: Tobias Streckel [EMAIL PROTECTED]
An: [EMAIL PROTECTED] [EMAIL PROTECTED]
Datum: Donnerstag, 21. Juni 2001 13:11
Betreff: Re: big text in string as object over the network:


Hy,

I want to save a file. In the database I have used a BLOB datatyp for the
field. What kind of variable is used in the Entity Bean to save the File.

Is it a java.io.File object?

Thanks a lot

by

Tobi








big text in string as object over the network:

2001-06-21 Thread Tobias Streckel

Hello,

if I want to save a String(he is in a object which will save in a Oracle DB
as a BLOB) I get by huge texts a Error:

com.evermind.server.rmi.RMIConnectionException
com.evermind.server.rmi.OrionRemoteException: Disconnected: Disconnected

Have anyone a answer why it doesn't work?

Thanks

Tobi






Re: big text in string as object over the network:

2001-06-21 Thread Tobias Streckel

It dosn't work with a StringBuffer object.

I will get the same error message, I think it was a connection problem - but
I don't know what to do?

Anyone a idea?

-Ursprüngliche Nachricht-
Von: Jens Stutte [EMAIL PROTECTED]
An: Orion-Interest [EMAIL PROTECTED]
Datum: Donnerstag, 21. Juni 2001 14:36
Betreff: AW: big text in string as object over the network:


This may be related to an old Java problem, that strings over 65535
characters or so could not be serialized. I don't know, by when if ever it
was fixed by Sun, but try using StringBuffer instead. If this works, you
found the problem...

Regards,

Jens Stutte

 -Ursprüngliche Nachricht-
 Von: Tobias Streckel [mailto:[EMAIL PROTECTED]]
 Gesendet am: Donnerstag, 21. Juni 2001 13:07
 An: Orion-Interest
 Betreff: big text in string as object over the network:

 Hello,

 if I want to save a String(he is in a object which will save
 in a Oracle DB
 as a BLOB) I get by huge texts a Error:

 com.evermind.server.rmi.RMIConnectionException
 com.evermind.server.rmi.OrionRemoteException: Disconnected:
 Disconnected

 Have anyone a answer why it doesn't work?

 Thanks

 Tobi









Re: big text in string as object over the network: very strange?

2001-06-21 Thread Tobias Streckel

Very strange

Okay, now I want to create a entity bean which have as attribute a
object(this object have a only StringBuffer() object).

The create method of the entity will be access from a session bean(in the
same apps). The client have access on the session bean.

If the session bean call the create method of the entity and the StingBuffer
is small it will work.

If the StringBuffer() containts a String about 200 KB it throws the message

javax.ejb.CreateException: Error creating EntityBean: E/A-Exception:
Connection
reset by peer: socket write error

If the String is bigger than 600 kb I will get the Message:

com.evermind.server.rmi.RMIConnectionException
com.evermind.server.rmi.OrionRemoteException: Disconnected: Disconnected


WHAT HAPPENS´???
I HAVE NO ANSWER HOW I CAN GET IT TO WORK!

THANKS!

Tobi

-Ursprüngliche Nachricht-
Von: Tobias Streckel [EMAIL PROTECTED]
An: [EMAIL PROTECTED] [EMAIL PROTECTED]
Datum: Donnerstag, 21. Juni 2001 13:11
Betreff: Re: big text in string as object over the network:


Hy,

I want to save a file. In the database I have used a BLOB datatyp for the
field. What kind of variable is used in the Entity Bean to save the File.

Is it a java.io.File object?

Thanks a lot

by

Tobi






...need urgent help!

2001-04-25 Thread Tobias Streckel

Hello,

how can I make an coded connection between orion an my standalone java
client?

I think I must use the jce but how?

Thanks

Tobi





...need urgent help!

2001-04-25 Thread Tobias Streckel

Hello,

how can I make an coded connection between orion an my standalone java
client?

I think I must use the jce but how?

Thanks

Tobi





Cryptography with Orion

2001-03-12 Thread Tobias Streckel

Hello,

I want to build a simpel application which verified a password and
username - a loginsystem. :-))

How work orion on the network- in cleartext?

If this is true, how can I use cryptography under the orionserver.

Thanks for your help


Tobi





Re: Cryptography with Orion

2001-03-12 Thread Tobias Streckel

Thanks for your answer.

...and is there a possibility to have a permanent cryptography between the
Orionserver and a standalone client over the TCP/IP network?

Best regards

Tobi


-Ursprngliche Nachricht-
Von: elephantwalker [EMAIL PROTECTED]
An: Orion-Interest [EMAIL PROTECTED]
Datum: Montag, 12. Mrz 2001 12:36
Betreff: RE: Cryptography with Orion


Orion provides three different concrete objects for user
authentication...all use the usermanager interface. EJBUser,
DataSourceUserManager and the default UserManager. The default is the
simplest, and uses the principal.xml file to define the user name and
password. We use EJBUser since it was so simple to add it to our
application.

As for the actual transmission over the network to the database, that's up
to the database/jdbc, but Oracle and others allow encrypted, secure
transmissions over the wire, including a local network.

As for cryptography...if you are using a https://somesecureurl.company.com
,
you can certainly encrypt the login transaction from a web page. All three
user managers also let you use certificates for authentication.

In addition, you can write your own user manager which uses LDAP...and use
the various encryption protocols used with LDAP.

There's also a hack on the www.orionsupport.com site which allows you to
authenticate against your unix/linux users.

You might look at the petstore application, and how the orion security
adapter is used with this.

As for your second line...couldn't quiet figure out your request.

Regards,

The Elephantwalker


-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]On Behalf Of Tobias
Streckel
Sent: Monday, March 12, 2001 1:27 AM
To: Orion-Interest
Subject: Cryptography with Orion


Hello,

I want to build a simpel application which verified a password and
username - a loginsystem. :-))

How work orion on the network- in cleartext?

If this is true, how can I use cryptography under the orionserver.

Thanks for your help


Tobi








Error: Cannot convert from class...

2001-03-09 Thread Tobias Streckel

Hello,

if I start the orionserver it tells me:

Auto-unpacking G:\orion\applications\Login.ear... done.
Auto-deploying Login (Assembly had been updated)...
Auto-deploying Login-ejb.jar (ejb-jar.xml had been touched since the
previous deployment).
.. java.lang.IllegalArgumentException: Cannot convert from class
java.lang.Object to class
 com.nl.ejb.framework.Login.ebBenutzerPK
at com.evermind.zip.a.u(Compiled Code)
at com.evermind.server.ejb.compilation.f_.agq(Compiled Code)
at com.evermind.server.ejb.compilation.f0.agq(JAX)
at com.evermind.server.ejb.compilation.fy.s_(JAX)
at com.evermind.server.ejb.compilation.f2.s_(Compiled Code)
at com.evermind.server.ejb.compilation.f4.s_(Compiled Code)
at com.evermind.server.ejb.compilation.ga.s_(Compiled Code)
at com.evermind.server.ejb.EJBContainer.bz(Compiled Code)
at com.evermind.server.Application.bz(Compiled Code)
at com.evermind.server.Application.gf(JAX)
at com.evermind.server.ApplicationServer.rv(JAX)
at com.evermind.server.ApplicationServer.aqb(Compiled Code)
at com.evermind.server.ApplicationServer.gf(JAX)
at com.evermind.server.hg.run(JAX)
at com.evermind.util.f.run(Compiled Code)

Can anyone help me?

Thanks

Tobi





Problems with orion-ejb-jar.xml

2000-12-11 Thread Tobias Streckel




Hello,

I have a full functional ear-file.

The file was bind in orion. Orion deploys me the 
orion-ejb-jar.xml file but if I want to change it and restart the server the 
file will be overwrite and me changes will be lost!

If the are flag or option to use my settings???

Thanks

Tobi


Overwritting: orion-ejb-jar.xml

2000-12-11 Thread Tobias Streckel

Hello,

I have a full functional ear-file.

The file was bind in orion. Orion deploys me the orion-ejb-jar.xml file but
if I want to change it and restart the server the file will be overwrite and
me changes will be lost!

If the are flag or option to use my settings???

Thanks

Tobi





Re: How can I use an BLOB datatype

2000-11-30 Thread Tobias Streckel

Hello again,

my prog. is very easy. I'm only have a String (contain a big Text) and I
will it save on a colmn (Oracle DB) with a BLOB.

Thanks

Tobi

-Ursprüngliche Nachricht-
Von: Tim Endres [EMAIL PROTECTED]
An: Orion-Interest [EMAIL PROTECTED]
Datum: Donnerstag, 30. November 2000 07:10
Betreff: RE: How can I use an BLOB datatype


Gernalizing this one step further. We have a situation where
we want to place large ( larger than 10MB ) into the DB. Thus,
when I get or store I would really like to have an InputStream
or OutputStream to read or write the "object". However, it does
not appear that EJB really supports this. Has anyone build an
entity bean (or session for that matter) that can stream large
amounts of data into and out of the database? How?

Thanks,
tim.

 In CMP, the output streams should be created for you.
 The database config xml file should provide a mapping
 of a Serializable object to a BLOB/Image/etc.  If
 this is done, the object will be serialized before
 insertion automatically.

 -tim








need Help: JNDI - stand alone Client

2000-11-24 Thread Tobias Streckel




Hy,I have a problem with my stand anlone java client. I will start 
my prg:...public void doIt() 
{ try 
{ // Get the initial JNDI 
context Context context = new 
InitialContext(getProperties()); // Get a reference to the 
Hello interface 
System.out.println(); Object boundObject = 
context.lookup(management); ebEintragHome 
EintragHome = (ebEintragHome)PortableRemoteObject.narrow(boundObject, 
ebEintragHome.class); ebEintragPK PKclass = new 
ebEintragPK(1); ebEintrag eintrag = 
EintragHome.findByPrimaryKey(PKclass); 
System.out.println(eintrag.getBereich_Bezeichnung()); 
/* When our HTTP servlet is accessed, the method doGet() 
will be called,which will do the following: String 
answer = _hello.sayHello(); */ 
} catch(NamingException ex) 
{ 
System.out.println(ex.getMessage()); 
} catch(Exception ex) 
{ 
System.out.println(ex.getMessage()); } 
} static public Properties getProperties() throws 
Exception { String user = 
admin; String password = 
123; Properties p = new 
Properties(); 
p.setProperty(Context.INITIAL_CONTEXT_FACTORY, 
com.evermind.server.rmi.RMIInitialContextFactory); 
p.setProperty(Context.PROVIDER_URL, 
ormi://localhost/management); if (user != null 
 password != null) 
{ System.out.println (user: 
 + user); 
p.setProperty(Context.SECURITY_PRINCIPAL, 
user); 
p.setProperty(Context.SECURITY_CREDENTIALS, password); 
} p.list(System.out); return 
p; }I will get the message: management not 
foundWhere did I set the JNDI name for my cmp Entity Java 
Bean?I don't know, where it (JNDI name) will 
set.ThanksTobi


need Help: Where did I set the JNDI by CMP Entity Bean???

2000-11-23 Thread Tobias Streckel




Hello,

I'm a real beginner!

I've a CMP Entity Bean. Now, I have written a stand alone Java 
application. 

Where can I set the JNDI-Name for the Entity Bean to work with 
my stand alone Java Client

Thanks

Tobi