Return-Path: Delivered-To: apmail-cocoon-users-archive@www.apache.org Received: (qmail 39115 invoked from network); 22 Jun 2005 10:19:00 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 22 Jun 2005 10:19:00 -0000 Received: (qmail 83901 invoked by uid 500); 22 Jun 2005 10:18:52 -0000 Delivered-To: apmail-cocoon-users-archive@cocoon.apache.org Received: (qmail 83823 invoked by uid 500); 22 Jun 2005 10:18:52 -0000 Mailing-List: contact users-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: users@cocoon.apache.org List-Id: Delivered-To: mailing list users@cocoon.apache.org Received: (qmail 83805 invoked by uid 99); 22 Jun 2005 10:18:51 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2005 03:18:51 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [202.43.219.169] (HELO web8507.mail.in.yahoo.com) (202.43.219.169) by apache.org (qpsmtpd/0.29) with SMTP; Wed, 22 Jun 2005 03:18:53 -0700 Received: (qmail 7995 invoked by uid 60001); 22 Jun 2005 10:18:47 -0000 DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=s1024; d=yahoo.co.in; h=Message-ID:Received:Date:From:Subject:To:MIME-Version:Content-Type:Content-Transfer-Encoding; b=hMXloEmnz08aMO4FFpuLdzeGbg6e+280SCojFSpaVENgHX7LEv+pZIIwVlxcCvZc01ap/w2p+qG+1ycvcJEssfajgll95WYuYcpGs+b5jQMWo5dNj5zoXeXB0jkjZ8nD0wMqTTUzHeiXeo5KuLcdUEfCHVgVGMWPxMqwCbZPSGQ= ; Message-ID: <20050622101847.7993.qmail@web8507.mail.in.yahoo.com> Received: from [203.212.242.170] by web8507.mail.in.yahoo.com via HTTP; Wed, 22 Jun 2005 11:18:47 BST Date: Wed, 22 Jun 2005 11:18:47 +0100 (BST) From: Peeths Subject: read this: cocoon , ejb and jboss To: users@cocoon.apache.org MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N hi all , read this , working on cocoon . Integrating cocoon with jBoss Download cocoon-war-2.1.7.war and then we have to deploy that to the jboss server , to deploy that , we started jboss server in standard mode and then copied the cocoon war file to /usr/local/jboss-4.0.0/server/standard/deploy/ folder and in the server console we got the message saying that the perticular war file is being deployed .Then run the cocoon home page using http://localhost:8080/cocoon-war-2.1.7/ . Deploying ejb in cocoon To deployment ejb in cocoon you should have an ejb container , so we have to integrate ejb with any application server , here we are using jBoss server. Here i'm using a js (java script ) file to invoke an ejb client , i'm using the command var query = new Packages.hibernate.logging.Query(); where hibernate.logging is the package and Query is the bean's client , and Packages is the inbuilt keyword for accessing packages. Then from the client you can call the bean class as we normally calling the bean. If you are using data base in the bean you have to configure the cocoon.xconf file as jdbc:hsqldb:hsql://localhost:9002 sa jdbc:postgresql://192.168.0.129:5432/hibernatedb xxxxx and in the bean calss we can access the database as public String xxxxxxx(String user, String password,Session session) throws RemoteException { try { if(session == null) System.out.println("Session is null"); Transaction tx = session.beginTransaction(); org.hibernate.Query q = session.createQuery("from hibernate.logging.User as user where user.users = :users and user.password = :passwords"); q.setString("users",user); q.setString("passwords",password); List list = q.list(); tx.commit(); if(list.isEmpty()) return "false"; } catch(Exception e) { e.printStackTrace(); } System.out.println("Called EJB"); return "true"; } and in the client program we'll give String value = remote.Validate(user,password,session); to access the remote method when the program is ready and compiled create the jar file and then deploy it to the deploy folder of jboss and a copy od the same jar file to the cocoon/WEB-INF/lib/. Then you can run the program . regards Peeths __________________________________________________________ How much free photo storage do you get? Store your friends 'n family snaps for FREE with Yahoo! Photos http://in.photos.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org For additional commands, e-mail: users-help@cocoon.apache.org