[JBoss-user] [JBoss jBPM] - Re: Spring is in the air

2006-02-28 Thread Costin
anonymous wrote : I have looked jbpm 3.0 code ,please show some code for 
jbpm3.1 integration ?
  | Thank you
I'll commit the code in Spring Modules repository in the upcoming days (today 
dev.java.net CVS is down for maintainance).

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926819#3926819

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926819


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: Spring + jBPM 3.1 + Single Hibernate Session

2006-02-27 Thread Costin
I forgot to mention some details:
The current code allows actions to be declared and injected from Spring 
application context. It is possible to use either a Spring application context 
or a configuration file for your jbpm configuration.

One nice feature is that it integrates with Spring transaction support.
You can find the current jbpm 3.0 code here: 
http://cvs.sourceforge.net/viewcvs.py/springframework/spring-projects/spring-jbpm/

In the upcoming days the jbpm 3.0 and 3.1 integration code will be moved to 
Spring Modules.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926544#3926544

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926544


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: Spring is in the air

2006-02-27 Thread Costin
Not sure if you are aware but there is already jbpm integration code available 
as part of Spring Modules (springmodules.dev.java.net).
Jbpm 3.1 has been already integrated but needs more tests - the code will be 
committed in the upcoming days.
See the forums for more information : 
http://forum.springframework.org/forumdisplay.php?f=37

The current code allows actions to be declared and injected from Spring 
application context. It is possible to use either a Spring application context 
or a configuration file for your jbpm configuration.

One nice feature is that it integrates with Spring transaction support.
You can find the current jbpm 3.0 code here: 
http://cvs.sourceforge.net/viewcvs.py/springframework/spring-projects/spring-jbpm/

In the upcoming days the jbpm 3.0 and 3.1 integration code will be moved to 
Spring Modules.

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926543#3926543

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926543


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [JBoss jBPM] - Re: Spring + jBPM 3.1 + Single Hibernate Session

2006-02-27 Thread Costin
Not sure if you are aware but there is already jbpm integration code available 
as part of Spring Modules (springmodules.dev.java.net).
Jbpm 3.1 has been already integrated but needs more tests - the code will be 
committed in the upcoming days.
See the forums for more information : 
http://forum.springframework.org/forumdisplay.php?f=37

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3926541#3926541

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3926541


---
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
___
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - Re: JBoss UCL and EAR packaging

2004-09-26 Thread Costin
Anyone?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849559#3849559

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849559


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] [Installation & Configuration] - JBoss UCL and EAR packaging

2004-09-21 Thread Costin
Hello.

I know that classloading has been talked over and over again this forum and I searched 
for relevant information but without success. I have browsed the documentation and the 
WIKI, google and still no solution

Here is my problem: I have an application based on WebWork, EJBs and Hibernate. It's 
big and is getting bigger, so far we have around 30 hbms and the same number of POJOs 
which map to the same number of tables.

Also the number of EJB si beyond 60 so deployment takes a while.  The web side is very 
reach and changes happen very often. In our current deployment environment we use EAR 
which makes the EJB and HB part to happen *every* time a small change occurs on the 
web tier.

This is like banging the head against the wall - the server runs out of memory every 4 
deploys. The solution would be to deploy only the web tier and have the EAR unpack.

I'm using JBoss 3.2.5 and I have the following 
jboss-tomcat.sar/META-INF/jboss-service.xml


  | 
  | 
  |
  | 
  |   
  |   true
  | 
  |   true
  | 
  |   
  |   false
  |   ...
  | 
  | 

At EAR lvl I have enabled the Java2ClassLoading flag off to allow servlet 2.3 
behaviour. If I have both class loaders turned off then all my local interfaces don't 
work - I only get remote interfaces and the whole application goes down (I don't even 
have remote interfaces in the project).

Here is my application.xml

  | 
  | http://java.sun.com/dtd/application_1_3.dtd";>
  | 
  | MyApp
  | 
  | ejb.jar
  | 
  | 
  | 
  | web.war
  | www
  | 
  | 
  | 
  | common.jar
  | 
  | 
  | 
  | commons-lang-2.0.jar
  | 
  | 
  | webwork-2.1.1.jar
  | 
  | 
  | xwork.jar
  | 
  | 
  | velocity-dep.jar
  | 
  | 
  | 
  | velocity-tools-view-1.1.jar
  | 
  | 
  | 
  | ognl-2.6.5.jar
  | 
  | 
  | oscore-2.2.4.jar
  | 
  | 
  | sitemesh-2.1.jar
  | 
  | 
  | 
  | 

and jboss-app.xml


  | 
  | 
  |   app:loader=dev.ear
  | 
  |   
  |  java2ParentDelegaton=false
  |   
  |   
  | hibernate.sar
  |   
  | 
  | 

I have to mention that the hibernate.sar is deployed accordingly to the documentation 
from hibernate.org http://www.hibernate.org/66.html as an mbean and due to an 
interceptor it has dependecies on the webwork2 libraries which belong to the web tier.

However, if I unpack the EAR and deploy the WAR, EJBs and HB SAR separately even 
though I mention the same loader repository and delegation module I get a big 
ClassCastException due to Remote interfaces (no more local interfaces) not to mention 
that I have to put the libraries that are shared in SAR and WAR (and this means 2 
MB!!!).

Basically, I need help on:

1. how to avoid the remote interfaces from appearing when changing the java delegation 
(2.3 servlet specs on) and JBossWebCL off (to use tomcat loading and not have the 
libraries along the other share libs)?

2. how can I share jars between different components inside the same loader 
repository? I am looking for something similar to 

  | 
  |   
  | 

for the EAR descriptor.


Thank you.

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849026#3849026

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849026


---
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re[2]: [JBoss-user] problem/mistake with CMP/CMR settings - solved

2003-05-29 Thread costin
Thanks a lot!

I've switched the beans from the normal use to the auto-gen key and
this last bean was basically overlooked in the process.

It worked like a charm from the first time. Thanks a lot for your
help. You saved me quite a few brain-cells. :)

AL> First, you should have

AL> public void ejbPostCreate(ALocal a ) {

AL> do you have it?

AL> alex

AL> Wednesday, May 28, 2003, 1:45:32 PM, costin costin wrote:

c>>   Hello!

c>>   I am having difficulties with a CMR relation on one of my web-apps.

c>>   I am using JBoss 3.2.0 and MySql 4.0.12 on Linux 2.4.18.

c>>   I have the following diagram:

c>>   ++
c>>   | A bean |
c>>   ++
c>>   A 1
c>>   |
c>>   V *
c>>   +--+
c>>   |B bean|
c>>   +--+

c>>   The problem appears when creating the B bean. Using middlegen and
c>>   xdoclet I have the following create method:

c>>   

c>> public java.lang.Integer ejbCreate(ALocal a ) throws javax.ejb.CreateException {
c>>   // Set CMP fields
c>>   // EJB 2.0 spec says return null for CMP ejbCreate methods.
c>>   return null;
c>>}

c>>public void ejbPostCreate( java.lang.Integer id, , ALocal a ) throws 
javax.ejb.CreateException {
c>>   // Set CMR fields
c>>   setA(a);
c>>}
c>>

c>> So, basically I need a A reference before I can make some B beans.

c>> Typically, the A beans gets created first and then I have to add
c>> some B beans to the mix

c>> Even though , I am finding a reference to the
c>> ALocal (I am logging it and test it to be != null), after I make the call to 
the create() method
c>> the database field (I am using ForeingKeys) gets only NULL.

c>> 
c>>try
c>> {
c>> referenceA = getABean();

c>> if (referenceA== null)
c>> logger.debug("*** reference A == null");
c>> else
c>> logger.debug("*** reference A NOT null");

c>> facade.create(
c>> referenceA
c>> );

c>> logger.debug("Done writing into the database");

c>> }
c>> catch (Exception e)
c>> {
c>> logger.error("I have an exception");
c>> }

c>> 

c>> Can anyone give me a clue here about what is going wrong...



AL> ---
AL> This SF.net email is sponsored by: ObjectStore.
AL> If flattening out C++ or Java code to make your application fit in a
AL> relational database is painful, don't do it! Check out ObjectStore.
AL> Now part of Progress Software. http://www.objectstore.net/sourceforge
AL> ___
AL> JBoss-user mailing list
AL> [EMAIL PROTECTED]
AL> https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 
 costinmailto:[EMAIL PROTECTED]



---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] problem/mistake with CMP/CMR settings

2003-05-28 Thread costin
  Hello!

  I am having difficulties with a CMR relation on one of my web-apps.

  I am using JBoss 3.2.0 and MySql 4.0.12 on Linux 2.4.18.

  I have the following diagram:

  ++
  | A bean |
  ++
  A 1
  |
  V *
  +--+
  |B bean|
  +--+

  The problem appears when creating the B bean. Using middlegen and
  xdoclet I have the following create method:

  

public java.lang.Integer ejbCreate(ALocal a ) throws javax.ejb.CreateException {
  // Set CMP fields
  // EJB 2.0 spec says return null for CMP ejbCreate methods.
  return null;
   }

   public void ejbPostCreate( java.lang.Integer id, , ALocal a ) throws 
javax.ejb.CreateException {
  // Set CMR fields
  setA(a);
   }
   

So, basically I need a A reference before I can make some B beans.

Typically, the A beans gets created first and then I have to add
some B beans to the mix

Even though , I am finding a reference to the
ALocal (I am logging it and test it to be != null), after I make the call to the 
create() method
the database field (I am using ForeingKeys) gets only NULL.


   try
{
referenceA = getABean();

if (referenceA== null)
logger.debug("*** reference A == null");
else
logger.debug("*** reference A NOT null");

facade.create(
referenceA
);

logger.debug("Done writing into the database");

}
catch (Exception e)
{
logger.error("I have an exception");
}



Can anyone give me a clue here about what is going wrong...

-- 
 costin  



---
This SF.net email is sponsored by: ObjectStore.
If flattening out C++ or Java code to make your application fit in a
relational database is painful, don't do it! Check out ObjectStore.
Now part of Progress Software. http://www.objectstore.net/sourceforge
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] MySql, Transactions and deployment

2003-04-05 Thread costin
Hi!

I am using the same combination (in fact I use MysqlMax 4.0.1x) which
have InnoDB by default.

However, I have support for transaction but without any InnoDB option.
I can query CMR relations and all that which require transaction.
I don`t know how this good this is (I am open for solutions however).

So, try to just install mysql-max or whatever and start doing your
thing and see how well the database behaves


BM> Hi all,

BM> I'm using mysql version 3.23.52

BM> I've read that for transactions to be supported you have to use the 
BM> mysql process mysqld-max and have to have it set up to support 
BM> transactions by enabling tables of type InnoDB or BDB as opposed 
BM> to the default of type ISAM.

BM> My question is, I want to be able to create tables by dropping an 
BM> ear into JBoss using CMP, however I think the default CREATE TABLE creates 
BM> tables as type ISAM, which does not support transaction. 

BM> Is there a way to include the clause "type=InnoDB" using hot deploy 
BM> in JBoss to enable transaction support?

BM> thanks,
BM> Brian


-- 
 costinmailto:[EMAIL PROTECTED]



---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] separate config files for log4j (per application)

2003-03-31 Thread costin
  Hi!

  I am posting this question as searching the forums didn`t revealed
  anything. I have seen a thread in february about this question,
  using the log4j repository to make each web-app load their own
  log4j.xml file configuration (so no editing of jboss log4j.xml is
  needed). How ever, after 29 replies there isn`t an answer there.
  This is dated back to the just_before_3.0_days.

  Can anyone give me an info on this? Is this feature enabled in
  3.0.6? Or in 3.2?
  

--
Thanks
 costin  



---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re[2]: [JBoss-user] transaction restarts + log4j

2003-03-31 Thread costin

Well, not really. I`ve just finished reading the log4j 1.2.7 manual and
there is a chapter for upgrades ; moving from category/priory to
logger/level is very well encouraged.

SMS> 3.0.6 uses log4j1.2.2. Why does the use of category/priority vs logger/level
SMS> in the config file affect you?

SMS> 
SMS> Scott Stark
SMS> Chief Technology Officer
SMS> JBoss Group, LLC
SMS> 

SMS> - Original Message - 
SMS> From: "costin" <[EMAIL PROTECTED]>
SMS> To: <[EMAIL PROTECTED]>
SMS> Sent: Saturday, March 29, 2003 2:53 AM
SMS> Subject: [JBoss-user] transaction restarts + log4j

>> 
>>   And now a problem regarding log4j: I have configured the log4j for
>>   my application but I see that the log4j.xml still uses
>>   category/priority tags which as I see from the log4j manual belong
>>   to the 1.1.x version. Any plans to fully upgrade to 1.2 version?
>>   
>> 
>> -- 
>>  costin  



SMS> ---
SMS> This SF.net email is sponsored by:
SMS> The Definitive IT and Networking Event. Be There!
SMS> NetWorld+Interop Las Vegas 2003 -- Register today!
SMS> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
SMS> _______
SMS> JBoss-user mailing list
SMS> [EMAIL PROTECTED]
SMS> https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 
 costinmailto:[EMAIL PROTECTED]



---
This SF.net email is sponsored by: ValueWeb: 
Dedicated Hosting for just $79/mo with 500 GB of bandwidth! 
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] transaction restarts + log4j

2003-03-29 Thread costin
  Hi!

  I am developing a small jsp/servlet combo using UserTransaction. My
  JBoss is 3.0.6. However loading the jsp from the browser messes the
  transaction module...:

  
 HTTP ERROR: 500 Find failed: org.jboss.util.NestedSQLException: Could not enlist in 
transaction on entering
 meta-aware object!javax.transaction.SystemException: Could not enlist XAResource!
 javax.transaction.RollbackException: Already marked for rollback; -
 nested throwable: (javax.resource.ResourceException: Could not enlist in transaction 
on entering meta-aware
 object!javax.transaction.SystemException: Could not enlist 
XAResource!javax.transaction.RollbackException:
 Already marked for rollback)
  

  I am not proficient with transaction and even my module is very
  simple probably there is something I am doing wrong there.

  However to overcome this error I must restart the server which
  starts to become very quite burdening. Is there any method to reset
  the transaction manager (maybe from the jmx-console)?

  Loading the application has no result (touch
  ~app/META-INF/application.xml).

  And now a problem regarding log4j: I have configured the log4j for
  my application but I see that the log4j.xml still uses
  category/priority tags which as I see from the log4j manual belong
  to the 1.1.x version. Any plans to fully upgrade to 1.2 version?
  

-- 
 costin  



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] separate logs for my apss

2003-03-28 Thread costin
  Hi!

  I want to use different logs for my application. I have searched the
  archives but haven`t find any information. Searched the forums but
  it seems that all I get is some commercial - maybe I have to be
  logged in.

  How can I make another log for my application?
  

-- 
 costin  



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re[2]: [JBoss-user] simple Class-Path/ jar dependency question

2003-03-28 Thread costin
Okay, great; than why  :

  import org.apache.log4j;

doesn`t work?

As least that`s the log4j import statement AFAIK.

DW> Log4J comes with JBoss, and you have *no need* to include it in *any* of your
DW> application units.  Ready to use, out of the box - no messing with classpath! 
DW> Why would you want log4j available *only* to one app?  IMHO a logging service is
DW> a nice thing for an app server to provide to all deployed applications, and
DW> Log4J's the way to go...

DW> David



DW> Mensaje citado por costin <[EMAIL PROTECTED]>:

>>   Hi!
>> 
>>   I have a very little and common question about a problem I can`t get
>>   solved. I have the following directories:
>> 
>> [EMAIL PROTECTED] my]$ tree ./
>> ./
>> |-- META-INF
>> |   `-- application.xml
>> |-- ejb.jar
>> |   |-- META-INF
>> |   |   |-- ejb-jar.xml
>> |   |   |-- jboss.xml
>> |   |   `-- jbosscmp-jdbc.xml
>> |   `-- app
>> |   |-- ejb
>> |   |   `-- *.class
>> |   `-- interfaces
>> |   `-- *.class
>> |-- lib
>> |   `-- log4j-1.2.7.jar
>> `-- web.war
>> |-- WEB-INF
>> |   |-- classes
>> |   |   `-- log4j-1.2.7.jar -> ../../../lib/log4j-1.2.7.jar
>> |   |-- lib
>> |   |   `-- log4j-1.2.7.jar -> ../../../lib/log4j-1.2.7.jar
>> |   `-- web.xml
>> `-- a.jsp
>> 
>> In a.jsp I`m doing a simple import org.apache.log4j;
>> 
>> Unfortunatelly this gives me an error as the file cannot be find.
>> I`ve put even links to the jar in the appropriate directories (as you
>> can see) but at no effect.
>> 
>> What I am doing wrong? I want to make the log4j available to my
>> application in the jar form without adding it to the class-path(i.e.
>> available only to this ear).
>> 
>> 
>> --
>> Thanks,
>>  costin  
>> 
>> 
>> 
>> ---
>> This SF.net email is sponsored by:
>> The Definitive IT and Networking Event. Be There!
>> NetWorld+Interop Las Vegas 2003 -- Register today!
>> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
>> ___
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/jboss-user
>> 


DW> -
DW> David Ward
DW> [EMAIL PROTECTED]
DW> http://www.dotech.com


DW> ---
DW> This SF.net email is sponsored by:
DW> The Definitive IT and Networking Event. Be There!
DW> NetWorld+Interop Las Vegas 2003 -- Register today!
DW> http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
DW> ___
DW> JBoss-user mailing list
DW> [EMAIL PROTECTED]
DW> https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 
 costinmailto:[EMAIL PROTECTED]



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] simple Class-Path/ jar dependency question

2003-03-28 Thread costin
  Hi!

  I have a very little and common question about a problem I can`t get
  solved. I have the following directories:

[EMAIL PROTECTED] my]$ tree ./
./
|-- META-INF
|   `-- application.xml
|-- ejb.jar
|   |-- META-INF
|   |   |-- ejb-jar.xml
|   |   |-- jboss.xml
|   |   `-- jbosscmp-jdbc.xml
|   `-- app
|   |-- ejb
|   |   `-- *.class
|   `-- interfaces
|   `-- *.class
|-- lib
|   `-- log4j-1.2.7.jar
`-- web.war
|-- WEB-INF
|   |-- classes
|   |   `-- log4j-1.2.7.jar -> ../../../lib/log4j-1.2.7.jar
|   |-- lib
|   |   `-- log4j-1.2.7.jar -> ../../../lib/log4j-1.2.7.jar
|   `-- web.xml
`-- a.jsp

In a.jsp I`m doing a simple import org.apache.log4j;

Unfortunatelly this gives me an error as the file cannot be find.
I`ve put even links to the jar in the appropriate directories (as you
can see) but at no effect.

What I am doing wrong? I want to make the log4j available to my
application in the jar form without adding it to the class-path(i.e.
available only to this ear).


--
Thanks,
 costin  



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re[6]: [JBoss-user] effective and secure logging (again!)

2003-03-28 Thread costin
Hi!

I`ve restarted this thread as more information was aquired and other
questions aroused.

I have followed Dain advice and got my hands over log4j complete
manual. Great stuff I must say, really easy to follow.

However, browsing the book and the EJB specifications I have found the
following:

1.
Log4j Manual - Chapter 3 : Initialization in Application Servers


You should also avoid using the FileAppender because it writes directly to a file.
Although writing to files does not seem to cause problems in most application servers,
it is explicitly forbidden by the EJB specification. You should consider the
SocketAppender or JMSAppender instead. Similarly, avoid using the AsyncAppender
because it creates a thread of its own which is forbidden by the EJB
specification.


2. EJB 2.0 - specs - 24.1.2 Programming restrictions


• An enterprise bean must not use the java.io package to attempt to access files and 
directories
in the file system.
- The file system APIs are not well-suited for business components to access data. 
Business components
should use a resource manager API, such as JDBC, to store data.

</>

• The enterprise bean must not attempt to directly read or write a file descriptor.
- Allowing the enterprise bean to read and write file descriptors directly could 
compromise security.




Basically, the EJBs should do just that, managing the database. Using
the java.io is not allowed and probably wrapping java.nio.* isn`t such
a good idea what`s so ever.

Even the log4j suggests a different approach. Both of the documents
says that one should rely on the container for this matter.
Now, what can I find in Jboss. As this problem gets hairy and I don`t
want to enter the JMS realm just yet what solution can I choose?


P.S. please just don`t give me a plain answer. Any insights will be
helpful.

Thanks a lot!

DS> Sorry if I wasn't clear. I suggest you write a log4j appender with NIO 
DS> that has the features you need.  Your application would continue to use 
DS> the enterprise log4j API but  the underling implementation would have 
DS> the features you need.  I suggest you buy the excellent log4j 
DS> documentation.  Hey he may already have what you need implemented.  You 
DS> could also contract with Ceki to have him write it for you.

DS> -dain

DS> On Monday, March 24, 2003, at 11:00 AM, costin wrote:

>> Hi!
>>
>> Thanks. I was actually looking through an oreilly book about NIO. The
>> only problem is how will this break the whole enterprise concept.
>>
>> Don`t get me wrong, this is okay - thanks; but isn`t there something
>> in the enterprise arena. Having logs in an "enterprise manner" is no
>> new idea.
>>
>> My concern is that this thing will have to evolve and it will simply
>> eat too much time (logging is a feature of the application but not the
>> only one) and I simply don`t have the man power to do it corectly.
>>
>> Anyway, thanks again for the tip.
>>
>> DS> On Monday, March 24, 2003, at 09:49 AM, costin wrote:
>>
>>>> I was thinking of wrapping the logging procedure into an transaction
>>>> but I don`t really know how the flushing of the files and all that is
>>>> handled by the virtual machine(some form of caching can prevent any
>>>> move I make).
>>
>> DS> The only way to get close to a guaranteed flush is to use NIO.  If 
>> you
>> DS> want it to be efficient and reliable you will have to use NIO.  I
>> DS> suggest you take a look at java.nio.MappedByteBuffer.
>>
>> DS> -dain
>>
>>
>>
>> DS> ---
>> DS> This sf.net email is sponsored by:ThinkGeek
>> DS> Welcome to geek heaven.
>> DS> http://thinkgeek.com/sf
>> DS> ___
>> DS> JBoss-user mailing list
>> DS> [EMAIL PROTECTED]
>> DS> https://lists.sourceforge.net/lists/listinfo/jboss-user
>>
>>
>> --
>> Thanks,
>>  costinmailto:[EMAIL PROTECTED]
>>
>>
>>
>> ---
>> This sf.net email is sponsored by:ThinkGeek
>> Welcome to geek heaven.
>> http://thinkgeek.com/sf
>> ___
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/jboss-user



DS> ---
DS> This sf.net email is sponsored by:ThinkGeek
DS> Welcome to geek heaven.
DS> http://thinkgeek.com/sf
DS> ___
DS> JBoss-user mailing list
DS> [EMAIL PROTECTED]
DS> https://lists.s

[JBoss-user] jetty jsp cache

2003-03-27 Thread costin
  Hi!

  I am developing the jsp section of our application and I deploy
  quite a lot of jsp (due to the run-time compiling). I don`t use a
  web.xml as I don`t have servlets yet involved. How can I force Jetty
  to recompile the JSP?
  I can see the new file on the server but the output is unchanged...

--
Thanks,
 costin  



---
This SF.net email is sponsored by:
The Definitive IT and Networking Event. Be There!
NetWorld+Interop Las Vegas 2003 -- Register today!
http://ads.sourceforge.net/cgi-bin/redirect.pl?keyn0001en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re[4]: [JBoss-user] effective and secure logging

2003-03-24 Thread costin
Hi!

Thanks. I was actually looking through an oreilly book about NIO. The
only problem is how will this break the whole enterprise concept.

Don`t get me wrong, this is okay - thanks; but isn`t there something
in the enterprise arena. Having logs in an "enterprise manner" is no
new idea.

My concern is that this thing will have to evolve and it will simply
eat too much time (logging is a feature of the application but not the
only one) and I simply don`t have the man power to do it corectly.

Anyway, thanks again for the tip.

DS> On Monday, March 24, 2003, at 09:49 AM, costin wrote:

>> I was thinking of wrapping the logging procedure into an transaction
>> but I don`t really know how the flushing of the files and all that is
>> handled by the virtual machine(some form of caching can prevent any
>> move I make).

DS> The only way to get close to a guaranteed flush is to use NIO.  If you 
DS> want it to be efficient and reliable you will have to use NIO.  I 
DS> suggest you take a look at java.nio.MappedByteBuffer.

DS> -dain



DS> ---
DS> This sf.net email is sponsored by:ThinkGeek
DS> Welcome to geek heaven.
DS> http://thinkgeek.com/sf
DS> ___
DS> JBoss-user mailing list
DS> [EMAIL PROTECTED]
DS> https://lists.sourceforge.net/lists/listinfo/jboss-user


--
Thanks,
 costinmailto:[EMAIL PROTECTED]



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re[2]: [JBoss-user] effective and secure logging

2003-03-24 Thread costin
Hi!
First of all thanks for the reply.
I know that the two attributes I`m looking for are basically exlusive
but to make my point clearer here.

The first priority is failure-proof. Logging in to a database isn`t
actually a solution. A lot of information will be kept in database for
no reason at all - a simple file will just do.
By fast, I mean something that it will be  "lightweight" in comparison
with the whole transaction.
I was thinking of wrapping the logging procedure into an transaction
but I don`t really know how the flushing of the files and all that is
handled by the virtual machine(some form of caching can prevent any
move I make).

Anyway, thanks again for the idea. Btw, can you describe in detail the
database you are using for logging (principle / ideas / any thing will
do).



jon> "fast" and "failure-proof" are to a certain extent mutually exclusive.
jon> If you want to be absolutely sre about your logging, than the log record
jon> has to be written as part of the same transaction in which the event being
jon> logged is executed. The ACID semantics of transactions ensure that 
jon> the log and the action are either atomically executed, or not at all.

jon> Practically this is most easily achieved using databases. Since this is
jon> not acceptable to you, my advise would be to develop you own Log4J
jon> appender that logs a message to two files (on two different disks) and
jon> flushes after every write...

jon> ++Jos.es

jon> And thus it came to pass that costin wrote:
jon> (on Mon, Mar 24, 2003 at 11:54:49AM +0200 to be exact)

>>   Hi!
>> 
>>   I`ve approached this subject before on the list but I haven`t found
>>   any satisfactory responses.
>> 
>>   I have an application where logging is a HUGE priority. The usual
>>   e-commerce one, where every "action" has to be logged. Now my
>>   problem is this one.
>> 
>>   Logging has to be fast and most importantly failure-proof - (meaning
>>   that it will survive a power crash or any similar event - EJB alike).
>> 
>>   Now, the log4j suite is very flexible and elegant but I haven`t
>>   found any failure-proof proprieties. There is no guarantee that the
>>   logging will succeed if the power/network or what ever goes down.
>> 
>>   Makeing an EJB and logging everything in a database is not an option
>>   even though it has one of the propriety I`m looking for.
>> 
>>   I imagine that this is not an unsual problem and there have to be
>>   solutions to it. Can anyone give me a clue or point me to some
>>   resource...
>> 
>> 
>> --
>> Thanks,
>>  costin  
>> 
>> 
>> 
>> ---
>> This sf.net email is sponsored by:ThinkGeek
>> Welcome to geek heaven.
>> http://thinkgeek.com/sf
>> ___
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/jboss-user



--
Thanks,
 costinmailto:[EMAIL PROTECTED]



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] effective and secure logging

2003-03-24 Thread costin
  Hi!

  I`ve approached this subject before on the list but I haven`t found
  any satisfactory responses.

  I have an application where logging is a HUGE priority. The usual
  e-commerce one, where every "action" has to be logged. Now my
  problem is this one.

  Logging has to be fast and most importantly failure-proof - (meaning
  that it will survive a power crash or any similar event - EJB alike).

  Now, the log4j suite is very flexible and elegant but I haven`t
  found any failure-proof proprieties. There is no guarantee that the
  logging will succeed if the power/network or what ever goes down.

  Makeing an EJB and logging everything in a database is not an option
  even though it has one of the propriety I`m looking for.

  I imagine that this is not an unsual problem and there have to be
  solutions to it. Can anyone give me a clue or point me to some
  resource...


--
Thanks,
 costin  



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re[4]: [JBoss-user] default JNDI location for entity beans

2003-03-24 Thread costin
Hi!

You got it wrong. Don`t do any lookups except the one I`ve told you.
Searc only once in the initial context


_context = (Context) new InitialContext().lookup("local/Message");
/**or what is your bean name **/




MH> With this code:

MH> try{
MH> _context = (Context) new 
InitialContext().lookup("java:comp/env/");
MH> _messageLocalHome = (MessageLocalHome) 
MH> _context.lookup("local/Message");
MH> }catch(NamingException ned){
MH> _systemLogger.error("Couldn't initialize all of the 
business 
MH> objects: " + ned.getMessage());
MH> } 

MH> I now get this on the console:

MH> 13:27:01,385 ERROR [system] Couldn't initialize all of the business 
MH> objects: local not bound

MH> Do I need something different in the arguments to lookup() than this:

MH> _context = (Context) new InitialContext().lookup("java:comp/env/");

MH> Thanks,
MH> -M@

MH> On Saturday, March 22, 2003, at 02:04 AM, costin wrote:

>> Hi!
>>
>> I`ve had the same problem when moving from Resin. As far as I can tell
>> deploying a bean without any jndi configuration(i.e. jboss.xml) will
>> deploy your beans under local:
>>
>> i.e.you should search your bean like this:
>> 
>> _contex.lookup("local/Message");
>> 
>>
>> I don`t why this isn`t specified in the docs - I am using Jboss 3.0.6
>> btw.
>>
>> Anyway a great tool to see where your beans are deployed is using the
>> jmx-console. Start the jboss server and then point your web browser at
>> localhost:8080 (or whatever settings you have). Then enter the
>> jmx-console(by default it won`t ask for a user/pass). The there select
>>
>> service=JNDIView and at the bottom of the page invoke the list bean.
>>
>> In the end you`ll see all the deployed names in the JNDI space.
>>
>> Hope it helps...
>>
>>
>>
>> MH> On Friday, March 21, 2003, at 07:11 PM, Guy Rouillier wrote:
>>
>>>> Note I changed your subject - don't use the digest as the subject for
>>>> a particular question, many people may skip it.
>>
>> MH> And I've changed it back to the original because I almost skipped 
>> this
>> MH> one.
>>
>>>>>
>>>>
>>>> I do things the old fashioned way, with deployment descriptors.  But
>>>> your context isn't being properly constructed.  You don't do a lookup
>>>> to establish a context.
>>
>> MH> Here's my code again since the original got mangled.
>>
>> MH>   try{
>> MH> _context = (Context) new
>> MH> InitialContext().lookup("java:comp/env/ejb");
>> MH> _messageLocalHome = (MessageLocalHome) 
>> _context.lookup("Message");
>> MH> }catch(NamingException ned){
>> MH> _systemLogger.error("Couldn't initialize 
>> all of the business
>> MH> objects: " +
>>
>> MH> ned.getMessage());
>> MH> }
>>
>> MH> The above code is currently working with Resin.  I'm trying to 
>> make it
>> MH> work with JBoss, but don't know if Resin is doing something
>> MH> non-standard or not.  I think maybe Resin is doing something that 
>> is
>> MH> allowing me to skip the PortableRemoteObject.narrow() call.  Do I 
>> need
>> MH> to do that when using JBoss?
>> MH>Thanks,
>> MH>  -M@
>>
>>>> Here is an example from some code I wrote; this would get the params
>>>> to construct the context from the jndi.properties file:
>>>>
>>>> Object metricsRef = new
>>>> InitialContext().lookup("com/masergy/ejb/NetworkMetrics/
>>>> NetworkMetrics");
>>>> NetworkMetricsHome metricsHome = (NetworkMetricsHome)
>>>> PortableRemoteObject.narrow(metricsRef,
>>>> NetworkMetricsHome.class);
>>>> metrics = metricsHome.create();
>>>>
>>>> If you want to specify explicit properties to your context, you can 
>>>> do
>>>> something like this:
>>>>
>>>>java.util.Hashtable env = new java.util.Hashtable();
>>>>env.put("java.naming.factory.initial",
>>>> "org.jnp.interfaces.NamingContextFactory");
>>>>env.put("java.naming.fact

Re[2]: [JBoss-user] default JNDI location for entity beans

2003-03-22 Thread costin
Hi!

I`ve had the same problem when moving from Resin. As far as I can tell
deploying a bean without any jndi configuration(i.e. jboss.xml) will
deploy your beans under local:

i.e.you should search your bean like this:

_contex.lookup("local/Message");


I don`t why this isn`t specified in the docs - I am using Jboss 3.0.6
btw.

Anyway a great tool to see where your beans are deployed is using the
jmx-console. Start the jboss server and then point your web browser at
localhost:8080 (or whatever settings you have). Then enter the
jmx-console(by default it won`t ask for a user/pass). The there select

service=JNDIView and at the bottom of the page invoke the list bean.

In the end you`ll see all the deployed names in the JNDI space.

Hope it helps...



MH> On Friday, March 21, 2003, at 07:11 PM, Guy Rouillier wrote:

>> Note I changed your subject - don't use the digest as the subject for  
>> a particular question, many people may skip it.

MH> And I've changed it back to the original because I almost skipped this  
MH> one.

>>>
>>
>> I do things the old fashioned way, with deployment descriptors.  But  
>> your context isn't being properly constructed.  You don't do a lookup  
>> to establish a context.

MH> Here's my code again since the original got mangled.

MH>   try{
MH> _context = (Context) new  
MH> InitialContext().lookup("java:comp/env/ejb");
MH> _messageLocalHome = (MessageLocalHome) 
_context.lookup("Message");
MH> }catch(NamingException ned){
MH> _systemLogger.error("Couldn't initialize all of the 
business  
MH> objects: " +
  
MH> ned.getMessage());
MH> } 

MH> The above code is currently working with Resin.  I'm trying to make it  
MH> work with JBoss, but don't know if Resin is doing something  
MH> non-standard or not.  I think maybe Resin is doing something that is  
MH> allowing me to skip the PortableRemoteObject.narrow() call.  Do I need  
MH> to do that when using JBoss?
MH>Thanks,
MH>  -M@

>> Here is an example from some code I wrote; this would get the params  
>> to construct the context from the jndi.properties file:
>>
>> Object metricsRef = new  
>> InitialContext().lookup("com/masergy/ejb/NetworkMetrics/ 
>> NetworkMetrics");
>> NetworkMetricsHome metricsHome = (NetworkMetricsHome)
>> PortableRemoteObject.narrow(metricsRef,  
>> NetworkMetricsHome.class);
>> metrics = metricsHome.create();
>>
>> If you want to specify explicit properties to your context, you can do  
>> something like this:
>>
>>java.util.Hashtable env = new java.util.Hashtable();
>>env.put("java.naming.factory.initial",  
>> "org.jnp.interfaces.NamingContextFactory");
>>env.put("java.naming.factory.url.pkgs", "org.jboss.naming;");
>>env.put("java.naming.provider.url", jndiNamingProviderUrl);
>>
>>   Object ref = new  
>> InitialContext(env).lookup("com/masergy/ejb/NCC/NCC");
>>   NCCHome home = (NCCHome) PortableRemoteObject.narrow(ref,  
>> NCCHome.class);
>>   ncc = home.create();
>>
>>
>>
>>
>> ---
>> This SF.net email is sponsored by:Crypto Challenge is now open! Get  
>> cracking and register here for some mind boggling fun and the chance  
>> of winning an Apple iPod:
>> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
>> ___
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/jboss-user
>>



MH> ---
MH> This SF.net email is sponsored by:Crypto Challenge is now open!
MH> Get cracking and register here for some mind boggling fun and
MH> the chance of winning an Apple iPod:
MH> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
MH> ___
MH> JBoss-user mailing list
MH> [EMAIL PROTECTED]
MH> https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 
 costinmailto:[EMAIL PROTECTED]



---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re[2]: [JBoss-user] CMP - Primary Key Strategies?

2003-03-19 Thread costin
Hi!

So basically you can use the autoincrement feature with:

- not doing anything in ejbCreate

(the rest is standard - get/set methods/descriptor/etc...)?

Is this correct?


BS> Hi Eric 
BS> Well this is good to used db based sequence number as the primary key 
. I m currently using the mysql and its auto_increment sequence as primary key
BS> But to use this feature u have to use jboss 3.2.03 beta ..As  unique sequence no 
is managed by the db not but the EJB container . so while inserted the new record . u 
dont have to pass the value
BS> for the unique sequence no. 
BS> Like u have a User Entity EJB
BS> User have DB schema

BS> userID int(11) auto_increment primary key  --- now this is 
acting as the primary key  
BS> username varchar(30)
BS> password varchar(30)
BS> email varchar(30)
BS> ur 

BS> ejbCreate(String username, String password, String email)
BS> {
BS> //here u havent provided the value of userID as it inserted by DB // it 
can any sequence no 
BS> }
BS> ejbPostCreate(String username, String password, String email)
BS> {

BS> }
BS> Deployment decriptor entor

BS>   User
BS>   com.n4i.ejb.test.UserLocalHome
BS>   com.n4i.ejb.test.UserLocal
BS>   com.n4i.ejb.test.UserBean
BS>   Container
BS>   java.lang.Integer  // I m using int(11) as 
the primary key if ur using some unique string the specify java.lang.String 

BS>  False
BS>   2.x
BS>   User
BS>   
BS> userID
BS>   
BS>   
BS> username
BS>   
BS>   
BS> password
BS>   
BS>   
BS> email
BS>   
BS>   userID



BS> But u need to have getter and setter for this unique sequence no primary key field 
... as its  getter method will be used when u call getUserID on local/Remote refernce 
of the entityBean .
BS> // One thing that is to noted here .is userID field is managed by the DB not by 
EJB Container but have to declare in the deployment descriptor as CMP field

BS> Eric this thing is working with mysql for mee .. in oracle if ur using sequence as 
primary key its value is integer .. and it will work tooo .

BS> Rgds

BS> Brijesh


BS> - Original Message - 
BS> From: "Eric Tim" <[EMAIL PROTECTED]>
BS> To: <[EMAIL PROTECTED]>
BS> Sent: Tuesday, March 18, 2003 11:08 AM
BS> Subject: [JBoss-user] CMP - Primary Key Strategies?


>> I'm working on a CMP EntityBean with JBoss3 on
>> Oracle8.
>> 
>> My primary key must be a unique number. Oracle has a
>> nice facility for handling sequences, which doesn't
>> seam possible with this senerio because i'd need to
>> write some jdbc code in the ejbCreate method to get
>> the nextval.
>> 
>> I'm aware that there are several J2EE
>> patterns/blueprints to solve this...most have
>> not-so-clean side effects that i'd like to
>> avoid...such as extra tables..etc.
>> 
>> Is there anything that i can do with JBoss to solve
>> this problem in a simple and clean manner?
>> 
>> Someone told me that there is a cmp engine that i can
>> buy that plugs into jboss that makes this easy. Does
>> anyone know what product this is? Does anyone have
>> experience with it?
>> 
>> thanks,
>> -et
>> 
>> __
>> Do you Yahoo!?
>> Yahoo! Platinum - Watch CBS' NCAA March Madness, live on your desktop!
>> http://platinum.yahoo.com
>> 
>> 
>> ---
>> This SF.net email is sponsored by:Crypto Challenge is now open! 
>> Get cracking and register here for some mind boggling fun and 
>> the chance of winning an Apple iPod:
>> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
>> ___
>> JBoss-user mailing list
>> [EMAIL PROTECTED]
>> https://lists.sourceforge.net/lists/listinfo/jboss-user
>> 


-- 
 costinmailto:[EMAIL PROTECTED]



---
This SF.net email is sponsored by: Does your code think in ink? 
You could win a Tablet PC. Get a free Tablet PC hat just for playing. 
What are you waiting for?
http://ads.sourceforge.net/cgi-bin/redirect.pl?micr5043en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re[2]: [JBoss-user] offtopic - generating abstract get/set

2003-03-14 Thread costin

Yes but I didn`t notice any tag for it.
I`ve seen  but for me that only created only the basic methods
for the bean. If you have any ideas please do tell.

FO> have you tried xdoclet?

FO> costin wrote:

>>  Hello!
>>
>>  Just wondering. I`m using Eclipse but haven`t found any plugin for
>>  generating the abstract get/set fields in the beans. When working
>>  with a very complex database writing a lot of dummy methods by hand
>>  drives one insane.
>>
>>  Just wondering, isn`t there a tool to make this a LOT easier?
>>
>>--
>>Thanks,
>> costin  
>>
>>
>>
>>---
>>This SF.net email is sponsored by:Crypto Challenge is now open! 
>>Get cracking and register here for some mind boggling fun and 
>>the chance of winning an Apple iPod:
>>http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
>>___
>>JBoss-user mailing list
>>[EMAIL PROTECTED]
>>https://lists.sourceforge.net/lists/listinfo/jboss-user
>>  
>>




FO> ---
FO> This SF.net email is sponsored by:Crypto Challenge is now open! 
FO> Get cracking and register here for some mind boggling fun and 
FO> the chance of winning an Apple iPod:
FO> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
FO> ___
FO> JBoss-user mailing list
FO> [EMAIL PROTECTED]
FO> https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 
 costinmailto:[EMAIL PROTECTED]



---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] offtopic - generating abstract get/set

2003-03-14 Thread costin
  Hello!

  Just wondering. I`m using Eclipse but haven`t found any plugin for
  generating the abstract get/set fields in the beans. When working
  with a very complex database writing a lot of dummy methods by hand
  drives one insane.

  Just wondering, isn`t there a tool to make this a LOT easier?

--
Thanks,
 costin  



---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] what`s the most elegant way to include helper classes in an ear?

2003-03-14 Thread costin
  Hi!

  I`m looking for the easiest and most elegant way to include into an
  application helper classes. This may be a silly question but I`ve
  seen different approaces even though this problem is very common.

  For example in an example from a book, the author simply used
  symlinks to include files (doesn`t work too well under Win).
  Also I`m looking for a non-poluting one - when using servlets and
  ejbs one must provide the bean`s class to the web-tier.

  A simple example/tar/pattern will sufice.

--
Thanks,
 costin  



---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re: [JBoss-user] Jboss-ide xdoclet build.xml

2003-03-12 Thread costin
Hello again!

Using xdoclet the last version (1.2beta2) got over the problem.
Actually it was something regarding javadoc that didn`t worked under
win2k. With the new version of xdoclet and with their xjavadoc tool
everything now it`s okay.

c>   Hi!

c>   Again this is somewhat off topic but I`m sure the subject is
c>   familiar to many. I have JBoss-IDE /xdoclet /Eclipse (w2k) but
c>   even though I have a working build.xml file for ant running it from
c>   eclipse gives me a

c>   java.io.IOException: CreateProcess : .

c>   while running it from the cmd line works okay.

c>   I must be missing something here but I have no clue -
c>   I am "working" on this thing for a couple of days and still I can
c>   get it to work.
  
c>   Can anyone send me a basic/standard build.xml for xdoclet or another
c>   clue on how can I integrate xdoclet in eclipse. I don`t usually use
c>   ant - i just made a couple of rules as I find it harder to maintaint
c>   in the long run.


c> --
c> Thanks,
c>  costin  



c> ---
c> This SF.net email is sponsored by:Crypto Challenge is now open! 
c> Get cracking and register here for some mind boggling fun and 
c> the chance of winning an Apple iPod:
c> http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
c> ___
c> JBoss-user mailing list
c> [EMAIL PROTECTED]
c> https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 
 costinmailto:[EMAIL PROTECTED]



---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Jboss-ide xdoclet build.xml

2003-03-12 Thread costin
  Hi!

  Again this is somewhat off topic but I`m sure the subject is
  familiar to many. I have JBoss-IDE /xdoclet /Eclipse (w2k) but
  even though I have a working build.xml file for ant running it from
  eclipse gives me a

  java.io.IOException: CreateProcess : .

  while running it from the cmd line works okay.

  I must be missing something here but I have no clue -
  I am "working" on this thing for a couple of days and still I can
  get it to work.
  
  Can anyone send me a basic/standard build.xml for xdoclet or another
  clue on how can I integrate xdoclet in eclipse. I don`t usually use
  ant - i just made a couple of rules as I find it harder to maintaint
  in the long run.


--
Thanks,
 costin  



---
This SF.net email is sponsored by:Crypto Challenge is now open! 
Get cracking and register here for some mind boggling fun and 
the chance of winning an Apple iPod:
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0031en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re[2]: [JBoss-user] somewhat off topic - compressing database fields into classes

2003-03-06 Thread costin
Thank a lot! I`ll look into it.

NT> | From: costin [mailto:[EMAIL PROTECTED]
NT> | Subject: [JBoss-user] somewhat off topic - compressing database fields
NT> | into classes
NT> | 
NT> |   For ease, I was wondering if it wouldn`t be easier to make a class
NT> |   (a.k.a JavaBean) to easily transport the primitives and to
NT> |   create EntityBeans or whatever using this class(in the create method
NT> |   the bean would just get the values from the bean and that`s it).

NT> Sounds like an application of the TransferObject pattern, see
NT> http://java.sun.com/blueprints/corej2eepatterns/Patterns/TransferObject.html


NT> ---
NT> This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
NT> for complex code. Debugging C/C++ programs can leave you feeling lost and 
NT> disoriented. TotalView can help you find your way. Available on major UNIX 
NT> and Linux platforms. Try it free. www.etnus.com
NT> ___
NT> JBoss-user mailing list
NT> [EMAIL PROTECTED]
NT> https://lists.sourceforge.net/lists/listinfo/jboss-user


-- 
 costinmailto:[EMAIL PROTECTED]



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] somewhat off topic - compressing database fields into classes

2003-03-05 Thread costin
  Hi!

  Never tried this again and haven`t seen any info. I would appreciate
  any info on this one.
  
  I am using a big database with a lot of fields. Every entity bean
  has about 10 fields each so using a lot of parameters is making the
  code bloated.

  For ease, I was wondering if it wouldn`t be easier to make a class
  (a.k.a JavaBean) to easily transport the primitives and to
  create EntityBeans or whatever using this class(in the create method
  the bean would just get the values from the bean and that`s it).

  However I don`t know how good this approach with respect to the
  persistence, multi-threading and JBoss container.

-- 
 costin  



---
This SF.net email is sponsored by: Etnus, makers of TotalView, The debugger 
for complex code. Debugging C/C++ programs can leave you feeling lost and 
disoriented. TotalView can help you find your way. Available on major UNIX 
and Linux platforms. Try it free. www.etnus.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re[2]: [JBoss-user] Jboss integration with Eclipse (remote deployment and control)

2003-02-28 Thread costin
Okay, thanks!

But I seem to miss something. I can see the log for jboss but only
because I`ve mapped the file to a local directory (samba - mapped the
file from linux to win2k).

Know the problem is that one - the logs doesn`t refresh automatically
(not a big problem), second I cannot start/stop the server - I
probably have to give some special commands to the VM to start.

All the tutorials I`ve were based on only one machine, the whole
server is in just one place - no good for me.
When I am trying to connect to the ip it gives me the famous
VM exception.

Regarding ant, I know it`s a great tool (everyone says so) but I am in
a real hurry so I try to avoid any learning for now. I didn`t find any
good tutorials on the web (a cookbook actually) so after spending some
time I managed to make the eclipse to give me the proper output (the
remote machine is again mapped on a local path) so the maintaing is
easy now.

I am going for XDoclet now, cause Eclipse AFAIK, has no similar
function to XDoclet, it generates the setter/getter but for JavaBeans
not for EJBs. I`ve seen that XDoclet is somewhat supported in JBoss
IDE but the official document didn`t offer any clue. If there is a
source of information out-there(and I mean more of a cook-book) please
let me know.

--
Thanks again,
 costinmailto:[EMAIL PROTECTED]

   
JH> I do this with a combonation of JBoss IDE (rocks!) and an ant deploy
JH> target. You can see the logs, console output of jboss when the hotdeploy
JH> occurs from within JBoss IDE.. Give it a shot, its nice! Actually making
JH> me split my time between Emacs/JDE (opening non-project files and such)
JH> and Eclipse. 

JH> James

>> -Original Message-
>> From: Hans Dockter [mailto:[EMAIL PROTECTED] 
>> Sent: Friday, February 28, 2003 9:35 AM
>> To: costin
>> Subject: Re: [JBoss-user] Jboss integration with Eclipse 
>> (remote deployment and control)
>> 
>> 
>> Hello costin,
>> 
>> c>   I am working on win2k with eclipse md5 and I`m trying to 
>> develop for
>> c>   a jboss 3.0.6 on a remote machine running RH 7.3.
>> 
>> c>   Basically, I want not so much to control the server remotly (even
>> c>   though this will be fine) but to read the logs without 
>> switching the
>> c>   terminals and more importantly to deploy on the remote machine
>> c>   through eclipse.
>> 
>> Controlling and monitoring can be done with JBoss-IDE 1.0.2. 
>> Deploying is planned to be possible with the next non-service release.
>> 
>> Hans
>> 
>> 
>> 
>> ---
>> This sf.net email is sponsored by:ThinkGeek
>> Welcome to geek heaven.
>> http://thinkgeek.com/sf 
>> ___
>> JBoss-user mailing list
>> [EMAIL PROTECTED] 
>> https://lists.sourceforge.net/lists/listinfo/j> boss-user
>> 


JH> ---
JH> This sf.net email is sponsored by:ThinkGeek
JH> Welcome to geek heaven.
JH> http://thinkgeek.com/sf
JH> ___
JH> JBoss-user mailing list
JH> [EMAIL PROTECTED]
JH> https://lists.sourceforge.net/lists/listinfo/jboss-user



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] somewhat off topic - Operations logging

2003-02-28 Thread costin
  Hi!

  This is somewhat off-topic but here goes. I need to implement some
  sort of logging in my application, meaning each time an operation on
  the database is done (or more precise an operation happining with
  tranzaction) I need to log it in a safe manner.

  I am thinking about the log4j but this is just a simple output - I
  need a very strong logging facility (I don`t want to lose packets).

  Can anyone give me a clue?

--
Thanks,
 costin  



---
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Jboss integration with Eclipse (remote deployment and control)

2003-02-27 Thread costin
  Hello!

  Before starting any flames, I know that this topic is maybe
  discussed somewhere in detail. I don`t have a very good internet
  connection (a LOT of lagging in fact) so that`s why I want from you
  guys a place to start.

  I have read the notes from the jboss site and from the forum but
  still I got no clue about my situation.

  I am working on win2k with eclipse md5 and I`m trying to develop for
  a jboss 3.0.6 on a remote machine running RH 7.3.

  Basically, I want not so much to control the server remotly (even
  though this will be fine) but to read the logs without switching the
  terminals and more importantly to deploy on the remote machine
  through eclipse.

  I have the sftp plugin but I am still looking for an elegant and
  automatic solution.

--
Thanks,
 costin  



---
This SF.NET email is sponsored by:
SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See!
http://www.vasoftware.com
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] server doesn`t reload when hot-deploying in 3.0.6

2003-02-26 Thread costin
  Hi!

  I`ve run into a problem with hot deploying on JB 3.0.6. When I
  modify my descriptors (especially web.xml), the server doesn`t
  reload the ear(I have to restart the server).

  Is there way around this (touching the dir didn`t help) ?

--
Thanks,
 costin  



---
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re[5]: [JBoss-user] help with bounding entity bean

2003-02-26 Thread costin

>> 
>> Btw, how can I use the general context search, i.e.
>> "java:/comp/env/..."
>>
 
AS> use ejb-ref or ejb-local-ref in your web.xml


Just to see that I am sure(please correct me and ofc any explanation
is appreciated).

the ejb-ref and ejb-local-ref work also with "local/HandlerBean"
meaning I still a re-map from local/HandlerBean to something else.

The ejb-ref and friends as far as I know is used together with the
session bean. In my case I could access the bean without using the
ejb-ref (I found it`s name from the jmx-console). (can anyone shed
some light in this area?).

Also, I am not sure how to use java:/comp/env/. I`ve tried the
official docs but I keep on missing it - any docs relevant is really
appreciated(this topic in particular - the whole j2ee docs are huge).
Basically, I would like to know how the java:/comp/env/ is mapped into JBoss
JNDI.

P.S. my mail is reaching the list with a huge delay. I don`t know why
but that`s why the discussion is so asynchronous.

AS> ---
AS> This SF.net email is sponsored by: Scholarships for Techies!
AS> Can't afford IT training? All 2003 ictp students receive scholarships.
AS> Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
AS> www.ictp.com/training/sourceforge.asp
AS> ___
AS> JBoss-user mailing list
AS> [EMAIL PROTECTED]
AS> https://lists.sourceforge.net/lists/listinfo/jboss-user


--
Thanks,
 costinmailto:[EMAIL PROTECTED]



---
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re[3]: [JBoss-user] help with bounding entity bean

2003-02-26 Thread costin
Evrika!

I have finally did it. The problem was that without using a jboss.xml
the local ejbs are mapped under "local".

Basically you have to do a search like this:

#
  home = (HandlerHome) initial.lookup("local/HandlerBean");
  getServletContext().log("Got reference");


I have found this using a jmx-console(which btw, I recommend to
everyone on a daily basis).

Using the JNDIView MBean, and invoking the list method you get a
couple of names. Browse under the global ones and there you are...

Btw, how can I use the general context search, i.e.
"java:/comp/env/..."

c> Hi!

c> First of all thanks a lot. I know I made a childish mistake and until
c> the money for the official docs will come I have to stick with ones
c> I`ve got.

c> I finally got the structure right:

c> [EMAIL PROTECTED] deploy]$ tree bs.ear
c> bs.ear
c> |-- META-INF
c> |   `-- application.xml
c> |-- bs-ejb.jar
c> |   |-- META-INF
c> |   |   |-- ejb-jar.xml
c> |   |   |-- jboss.xml
c> |   |   `-- jbosscmp-jdbc.xml
c> |   `-- test
c> |   |-- Handler.class
c> |   |-- HandlerBean.class
c> |   `-- HandlerHome.class
c> `-- bs-web.war
c> |-- WEB-INF
c> |   `-- web.xml
c> |-- index.html
c> `-- test.jsp

c> 6 directories, 10 files


c> And with the application.xml pointing to the proper directions.

c> I know have to handle the beans configurations as I finally have a
c> different message :).


c> Thanks a lot, now I have a starting point.

c> P.S. btw, except the payed docs can you recommend something else?
c> P.P.S how important are the payed docs? (on a scale from 1 to 10)?


AS>> First of the names of the beans should match in your
AS>> ejb-jar.xml (HandlerBean) and jbosscmp-jdbc.xml (you have TestBean)

AS>> Second of all I am not sure if you can deploy your app in
AS>> a single war. My suspision is that you would nedd to break
AS>> it up on war [put your web stuff in here] and ejb.jar [put
AS>> your ejbs in here] then merge them together into ear.

AS>> Basically the structure should look something like the following:

AS>> your-ejb.jar
AS>>   test/
AS>>  YourEjb.class
AS>>   META-INF/
AS>>  jbosscmp-jdbc.xml
AS>>  jboss.xml
AS>>  ejb-jar.xml

AS>> your-app.war
AS>>   index.jsp
AS>>   WEB-INF/
AS>>  web.xml
AS>>  jbossweb.xml
AS>>  lib/
AS>> ejb-client.jar

AS>> app.ear
AS>>   your-app.war
AS>>   your-ejb.jar
AS>>   MEAT-INF/
AS>>  application.xml

AS>> and you only copy app.ear into deploy directory

AS>> you basically have anywhere from 3 to 6 xml descriptors
AS>> to figure out :-)

AS>>   ejb-jar.xml [required]
AS>>   web.xml [required]
AS>>   application.xml [required]

AS>>   jbosscmp-jdbc.xml [optional]
AS>>   jboss.xml [optional]
AS>>   jbossweb.xml  [optional]

>>> -Original Message-
>>> From: [EMAIL PROTECTED]
>>> [mailto:[EMAIL PROTECTED] Behalf Of costin
>>> Sent: Wednesday, February 26, 2003 7:33 AM
>>> To: [EMAIL PROTECTED]
>>> Subject: [JBoss-user] help with bounding entity bean
>>>
>>>
>>>   Hi!
>>>
>>>   I know that there are responses on the list for this kind of
>>>   problem but there is no archive...yet.
>>>
>>>   I am new to JBoss after moving from Resin EE and I am trying to get
>>>   the hand of it - especially in the deployment area.
>>>
>>>   I have read a lot of tutorials based on ant (includind the official
>>>   doc) but I can`t make the entity bean bound.
>>>
>>>   I have been banging my head agains the wall for the last day and it`s
>>>   starting to hurt really bad so any help will be greatly appreciated.
>>>
>>>
>>>   Okay, before giving the details here is the behaviour:
>>>
>>>   the war is deployed okay and I can see the index.html page. The bean
>>>   classes are very simple - I have listed them at the end of the
>>>   message. The problem is that when I am accessing the jsp I cannot
>>>   get the entity bean reference:
>>>
>>> 
>>>
>>> 14:11:10,217 INFO  [jbossweb] Started
>>> WebApplicationContext[/bs,file:/usr/local/jboss-3.0.6/server/defau
>>> lt/deploy/bs.war/]
>>> 14:11:10,394 INFO  [jbossweb] successfully deployed
>>> file:/usr/local/jboss-3.0.6/server/default/deploy/bs.war/ to /bs
>>> 14:11:10,394 INFO  [MainDeployer] Deployed package:
>>> file:/usr/local/jboss-3.0.6/server/default/deploy/bs.war/
>>> 14

Re[4]: [JBoss-user] help with bounding entity bean

2003-02-26 Thread costin
Okay, thanks for the tips.

I have deployed the apps to the destination but still I can`t get the
reference to the bean.

Again, here is the directory list:

bs.ear
|-- META-INF
|   `-- application.xml
|-- bs-ejb.jar
|   |-- META-INF
|   |   `-- ejb-jar.xml
|   `-- test
|   |-- Handler.class
|   |-- HandlerBean.class
|   `-- HandlerHome.class
|-- bs-web.war
|   |-- WEB-INF
|   |   `-- web.xml
|   |-- index.html
|   `-- test.jsp
`-- lib
`-- test -> ../bs-ejb.jar/test
#

and here is a snip from the logs:

[MainDeployer] Starting deployment of package: 
file:/usr/local/jboss-3.0.6/server/default/deploy/bs.ear/
[EARDeployer] Init J2EE application: 
file:/usr/local/jboss-3.0.6/server/default/deploy/bs.ear/
[EjbModule] Creating
[EjbModule] Deploying HandlerBean
[EjbModule] Created
[EjbModule] Starting
[HandlerBean] Table 'HANDLERBEAN' already exists
[EjbModule] Started
[Manager] cloning Manager: [EMAIL PROTECTED]
[JBossWebApplicationContext] setDistributableSessionManager [EMAIL PROTECTED]
[jbossweb] Registered jboss.web:Jetty=0,JBossWebApplicationContext=2,context=/bs
[jbossweb] Started 
WebApplicationContext[/bs,file:/usr/local/jboss-3.0.6/server/default/deploy/bs.ear/bs-web.war/]
[jbossweb] successfully deployed 
file:/usr/local/jboss-3.0.6/server/default/deploy/bs.ear/bs-web.war/ to /bs
[MainDeployer] Deployed package: 
file:/usr/local/jboss-3.0.6/server/default/deploy/bs.ear/


So, the bean is finally deploying.
However the jsp can`t see it:



<%
HandlerHome home;

try
{

InitialContext initial = new InitialContext();
getServletContext().log("Got context");

home = (HandlerHome) initial.lookup("HandlerBean");
   getServletContext().log("Got reference");
} 
catch (NamingException e)
{
getServletContext().log("Naming Exception 
"+System.currentTimeMillis(),
e.fillInStackTrace());
}

%>
#


I didn`t post the dtds because the logs is pretty obvious. As you can
see there is no jboss*.xml so the mapping should be straight forward -
however the seeking doesn`t work.

Where`s the glitch?

--
Thanks,
 costinmailto:[EMAIL PROTECTED]



---
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


Re[2]: [JBoss-user] help with bounding entity bean

2003-02-26 Thread costin
Hi!

First of all thanks a lot. I know I made a childish mistake and until
the money for the official docs will come I have to stick with ones
I`ve got.

I finally got the structure right:

[EMAIL PROTECTED] deploy]$ tree bs.ear
bs.ear
|-- META-INF
|   `-- application.xml
|-- bs-ejb.jar
|   |-- META-INF
|   |   |-- ejb-jar.xml
|   |   |-- jboss.xml
|   |   `-- jbosscmp-jdbc.xml
|   `-- test
|   |-- Handler.class
|   |-- HandlerBean.class
|   `-- HandlerHome.class
`-- bs-web.war
|-- WEB-INF
|   `-- web.xml
|-- index.html
`-- test.jsp

6 directories, 10 files


And with the application.xml pointing to the proper directions.

I know have to handle the beans configurations as I finally have a
different message :).


Thanks a lot, now I have a starting point.

P.S. btw, except the payed docs can you recommend something else?
P.P.S how important are the payed docs? (on a scale from 1 to 10)?


AS> First of the names of the beans should match in your
AS> ejb-jar.xml (HandlerBean) and jbosscmp-jdbc.xml (you have TestBean)

AS> Second of all I am not sure if you can deploy your app in
AS> a single war. My suspision is that you would nedd to break
AS> it up on war [put your web stuff in here] and ejb.jar [put
AS> your ejbs in here] then merge them together into ear.

AS> Basically the structure should look something like the following:

AS> your-ejb.jar
AS>   test/
AS>  YourEjb.class
AS>   META-INF/
AS>  jbosscmp-jdbc.xml
AS>  jboss.xml
AS>  ejb-jar.xml

AS> your-app.war
AS>   index.jsp
AS>   WEB-INF/
AS>  web.xml
AS>  jbossweb.xml
AS>  lib/
AS> ejb-client.jar

AS> app.ear
AS>   your-app.war
AS>   your-ejb.jar
AS>   MEAT-INF/
AS>  application.xml

AS> and you only copy app.ear into deploy directory

AS> you basically have anywhere from 3 to 6 xml descriptors
AS> to figure out :-)

AS>   ejb-jar.xml [required]
AS>   web.xml [required]
AS>   application.xml [required]

AS>   jbosscmp-jdbc.xml [optional]
AS>   jboss.xml [optional]
AS>   jbossweb.xml  [optional]

>> -Original Message-
>> From: [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED] Behalf Of costin
>> Sent: Wednesday, February 26, 2003 7:33 AM
>> To: [EMAIL PROTECTED]
>> Subject: [JBoss-user] help with bounding entity bean
>>
>>
>>   Hi!
>>
>>   I know that there are responses on the list for this kind of
>>   problem but there is no archive...yet.
>>
>>   I am new to JBoss after moving from Resin EE and I am trying to get
>>   the hand of it - especially in the deployment area.
>>
>>   I have read a lot of tutorials based on ant (includind the official
>>   doc) but I can`t make the entity bean bound.
>>
>>   I have been banging my head agains the wall for the last day and it`s
>>   starting to hurt really bad so any help will be greatly appreciated.
>>
>>
>>   Okay, before giving the details here is the behaviour:
>>
>>   the war is deployed okay and I can see the index.html page. The bean
>>   classes are very simple - I have listed them at the end of the
>>   message. The problem is that when I am accessing the jsp I cannot
>>   get the entity bean reference:
>>
>> 
>>
>> 14:11:10,217 INFO  [jbossweb] Started
>> WebApplicationContext[/bs,file:/usr/local/jboss-3.0.6/server/defau
>> lt/deploy/bs.war/]
>> 14:11:10,394 INFO  [jbossweb] successfully deployed
>> file:/usr/local/jboss-3.0.6/server/default/deploy/bs.war/ to /bs
>> 14:11:10,394 INFO  [MainDeployer] Deployed package:
>> file:/usr/local/jboss-3.0.6/server/default/deploy/bs.war/
>> 14:11:31,375 INFO  [jbossweb] Registered
>> jboss.web:Jetty=0,HttpContext=0,context=/
>> 14:11:31,389 INFO  [jbossweb] Registered
>> jboss.web:Jetty=0,HttpContext=0,context=/,RootNotFoundHandler=0
>> 14:11:31,390 INFO  [jbossweb] Started HttpContext[/]
>> 14:11:44,567 INFO  [jbossweb] Got context
>> 14:11:44,644 WARN  [jbossweb] WARNING: Naming Exception 1046261504621
>> javax.naming.NameNotFoundException: HandlerBean not bound
>> at org.apache.jsp.test$jsp.jspInit(test$jsp.java:52)
>> at org.apache.jasper.runtime.HttpJspBase.init(HttpJspBase.java:90)
>> at
>> org.apache.jasper.servlet.JspServlet$JspServletWrapper.load(JspSer
>> vlet.java:142)
>> at
>> org.apache.jasper.servlet.JspServlet$JspServletWrapper.loadIfNeces
>> sary(JspServlet.java:178)
>> at
>> org.apache.jasper.servlet.JspServlet$JspServletWrapper.service(Jsp
>> Servlet.java:188)
>> at
>> org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java

Re: Re: [JBoss-user] help with bounding entity bean

2003-02-26 Thread costin
Hello!

>If you deployed the directory shown I'm surprised anything at all deployed.
>
>You need to package ejbs separately from jsp/servlets.  If you want one
>deployment unit use and .ear

>david jencks

Maybe I am missing something here but I am using hot deployment. I
don`t pack/jar or archive in away the files.

Is there a different strucure I need to use when hot-deploying...?

-- 
 costin  



---
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] help with bounding entity bean

2003-02-26 Thread costin
   e.fillInStackTrace());
}
}
%>

<%
%>


##

As you can see this jsp only get`s the context and then a reference to
the entity bean.

The deployment files is listed here:

### ejb-jar.xml

http://java.sun.com/dtd/ejb-jar_2_0.dtd";>

  
   

HandlerBean

test.HandlerHome
test.Handler
test.HandlerBean

Container
2.x
True

java.lang.String
entry

ejbtest

 
entry

 
name


  




#
# jboss-cmp

http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd";>



   

  
 TestBean
 TestBean

 
entry
entry
 
 
name
name
 
 
  

   


#


the classes:

# Handler.java
package test;

import javax.ejb.EJBLocalObject;

public interface Handler extends EJBLocalObject
{
 public String getName();
 void setName(String name);
 
 public String getEntry();
 void setEntry(String id);
}
##

# HandlerBean.java
package test;

import javax.ejb.*;

public abstract class HandlerBean implements EntityBean {
  
  public abstract String getName();
  public abstract void setName(String name);

  public abstract String getEntry();
  public abstract void setEntry(String id);


  public String ejbCreate(String id, String name)
throws CreateException
  {
setEntry(id);
setName(name);

return null;
  }

  public void ejbPostCreate(String name, String id)
  {
  }

}
###
# HandlerHome.java
package test;

import javax.ejb.EJBLocalHome;
import javax.ejb.CreateException;
import javax.ejb.FinderException;

public interface HandlerHome extends EJBLocalHome
{
public Handler create(String id, String name)
throws CreateException;

public Handler findByPrimaryKey(String entry)
throws FinderException;

}
##


P.S. Sorry about this huge email.


-- 
Thanks,
 costin  



---
This SF.net email is sponsored by: Scholarships for Techies!
Can't afford IT training? All 2003 ictp students receive scholarships.
Get hands-on training in Microsoft, Cisco, Sun, Linux/UNIX, and more.
www.ictp.com/training/sourceforge.asp
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user