Re: JDBC connection port?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 On Tue, 6 Jun 2000, Y. J. Chun wrote: Hi. I just installed Orion and enabled specified database-source url like following url="jdbc:mysql://monac.pe.kr:3306/monac" but when i try the ejb demo, (cart product) it fails reporting Cannot connect to MySQL server on localhost:1306 what i dont understand is that i speficied PORT number in jdbc url but it still tries to connect to localhost:1306 how is it like this? Any number of reasons for this, but note that MySQL is entirely inappropriate for use with EJBs due to its lack of transaction support. Also note that MySQL's planned transaction support goes something like this: "We don't support them, nor will we ever do so." More specifically, you probably don't have the security settings for mysql correctly set up, and you need ALL of the data source attributes set up (the XA attribute, etc.) - --- Joseph B. Ottinger [EMAIL PROTECTED] http://cupid.suninternet.com/~joeo HOMES.COM Developer -BEGIN PGP SIGNATURE- Version: PGP 6.5.1i iQA/AwUBOTya9ghcVZKknQwGEQJl1wCgqSuhGQgD78m5LNYH6Opv+ncgma0AoPRA NkwX1dEuf8uQGLas17GwVmxM =TEY3 -END PGP SIGNATURE-
Re: admin.jar -shutdown
I haven't been able to get admin.jar to work for the last few releases. I get the same error (Orion 1.0, WinNT 4.0). But where did you learn about admin.jar in the first place, anyway? I found no references to it in the docs..
Passing Collections or arrays to finder methods.
Say I have 2 cmp entities with properties: Office - int id - String tel - String fax - String address Employee - int id - String name - Office office I have 2 finders in EmployeeHome that finds all employees in a particular office: public Collection findByOffice(int officeId) throws... public Collection findByOffice(Office office) throws... and they both have the following entries in orion-ejb-jar.xml: finder-method query="$office = $1" ... All's good and working fine, but I need to pass across to the Employee finder method a group of Offices (either in a Collection or an array). I have tried adding the following methods: public Collection findByOffice(int[] officeIds) throws... public Collection findByOffice(Office[] offices) throws... public Collection findByOffice(Collection offices) throws... with: finder-method query="$office IN ($1)" / But I get the following errors: - When using int[], upon deploying the ejb-jar file: Bean-type 'int' used in or-mapping not found - When using Office[], upon deployment: java.lang.NullPointerException: at com.evermind.server.ejb.deployment.eg.vk(JAX) at com.evermind.server.ejb.database.eh.yw(JAX) at com.evermind.server.ejb.compilation.e2.aad(JAX) at com.evermind.server.ejb.compilation.ew.o6(JAX) ... very long stack trace. - When using Collection, the ejb deploys fine, but upon calling the finder method, an SQL error msg is thrown by the db (Sybase 11.9.2): Operand type clash: IMAGE is incompatible with INT This suggests that orion is simply passing across the serialized Collection as a blob of data. (IMAGE is Sybase's equivalent of BLOB). Does anyone know if it's possible to pass across Collections or arrays to finder methods, and if so what I'm doing wrong. I'm convinced it's possible because in the orion documention for orion-ejb-jar/enterprise-beans/entity-deployment/finder-method/method/method -params/method-param, it uses int[] as the example. Thanks in advance. -Joe Walnes
1.0 admin.jar shutdown
I am using NT 40 workstation and Windows 2000 Server with Orion 1.0 final release. It doesn't look like you solved your shutdown problems yet. I installed Orion and first ran java -jar orion.jar -install After entering my pw for admin I ran: java -jar orion.jar I then opened another command console and did the following: java -jar admin.jar ormi://localhost admin admin -shutdown Error: com.evermind.reflect.UndeclaredExceptionTypeException: java.lang.ClassNotFoundException ava -jar admin.jar ormi://localhost:80 admin admin -shutdown Error: javax.naming.NamingException: Lookup error: java.io.StreamCorruptedException: Caught EOFException while reading the stream header; nested exception is: java.io.StreamCorruptedException: Caught EOFException while reading the stream header What am I doing wrong? I want to be able to shutdown nicely without using ctl+c Dale