[jboss-user] [Beginners Corner] - Re: Call a console client inside an ear file

2008-05-16 Thread fermat42
At the moment I do not understand why you deployed the console client to the server. I guess you have an EAR containing an application. further there is a console client that should be used outside the server and connect to a EJB inside your EAR. Is that right? View the original post : http://

[jboss-user] [Beginners Corner] - replacement for ServerSocket

2008-05-16 Thread fermat42
Hello, I read that it is not allowed to use a ServerSocket in a J2EE EAR. This is clear besause of the component architecture. But now I am asking me how to integrate a new Protokoll. What would be the right way if I e.g. want to implement an ftp-Server, so if I want that my application is conn

[jboss-user] [EJB/JBoss] - reusable SessionBean

2007-10-12 Thread fermat42
Hello, I am writing a Metadata-Server for a Storage virtualisation using JBoss 4.2.1. There I have a couple of physical disks used to build a virtual disk. There are EntityBeans for the the virtual disks and the physical disk. Next there exists a SessionBean to be called by the storage servers whi

[jboss-user] [Beginners Corner] - permanent SessionBean

2007-10-11 Thread fermat42
Hello, I have following Problem: I have multiple SessionBeans Si, each responsible for the administration of one resource Xi. The initalisation of the SessionBean is very expensive (some seconds to some Minutes) but then the answers can be computed very fast. Secondary there are multiple clien

[jboss-user] [Beginners Corner] - Re: Login for Web-Application

2007-08-14 Thread fermat42
Thank you, it works now. Sorry for the wrong tag... For others reading this: I realized the the directory in the module-options is relative to the conf-directory of the server I started (e.g. $JBOSS_HOME/se4rver/default/conf/). It seems not to be possible to use an absolute path, because than y

[jboss-user] [Beginners Corner] - Re: Login for Web-Application

2007-08-13 Thread fermat42
To avoid questions: The protected page is vdrive/test.jsp, not protected/test.jsp View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073532#4073532 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073532

[jboss-user] [Beginners Corner] - Login for Web-Application

2007-08-13 Thread fermat42
Hi, I want to build a web-application using JBoss. The Application should only be usable for authorized users. So I have build a protected Webside called protected/test.jsp. Then I used the following web.xml: http://java.sun.com/xml/ns/j2ee"; xmlns:xsi="http://www.w3.org/2001/XMLSchema-instan

[jboss-user] [EJB 3.0] - Re: JBoss and PostgreSQL 8.1

2007-08-02 Thread fermat42
Hmmm... Much more strange: if I keep my compound primary key but remove the line @GeneratedValue(strategy = GenerationType.AUTO) and calculate both parts of the key myself, then everything is o.k. I do not understand what is going wrong there... Is there a Problem using @GeneratedValue together

[jboss-user] [EJB 3.0] - Re: JBoss and PostgreSQL 8.1

2007-08-02 Thread fermat42
Very Strange... As soon as I remove the line @IdClass(ComponentPK.class) and the @Id before the second part of the key everything runs fine. And the same happens with HSQL as DB: I get Exceptions if I use a composed primary key, but there is no error with a normal primary key. The Problem is:

[jboss-user] [EJB 3.0] - Re: JBoss and PostgreSQL 8.1

2007-08-02 Thread fermat42
For sure I can. Sorry I copied only one of the ID Fields: Server.java: package de.douglas2a.components; import java.io.Serializable; import java.util.Set; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.I

[jboss-user] [EJB 3.0] - JBoss and PostgreSQL 8.1

2007-07-31 Thread fermat42
Hello, I am using jboss 4.2.1 with PostgreSQL 8.1. With this I tried to bouild an Entity Bean that stores informations about some servers. One of the fields is the IP of the server. It looks like this: @Entity @IdClass(ComponentPK.class) public class Server implements Serializable { @Id

[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - EJB 2.0: Compound Primary Key and CMR

2007-03-01 Thread fermat42
Hello, ist it possible with EJB 2.0 and 2 EJBs (CMP) with Compound Primary Keays to use a CMR? I tried it with Netbeans 5.5 and JBoss 4.0.4. There I got following error: | 14:52:27,539 INFO [BaseLocalProxyFactory] Bound EJB | LocalHome 'StoragePoolBean' to jndi 'local/[EMAIL PROTECTED]'