[JBoss-user] How to make a service depends of a EAR ?

2004-02-27 Thread Danilo Luiz Rheinheimer
Hi,

 My services classes are packaged in a JAR,  and this JAR is inside a EAR.
 My service definition is in a -service.xml file.
 Sometimes, when I start the server, jboss try to deploy the service 
before the deployment the EAR. So I got a class not found error.
 I think I must use the depends tag on the -service.xml file.
 This is what I try to do :

service
  mbean code=org.sigea.ibatis.deployer.Ibatis 
name=ibatis:service=IbatisDeployer

dependsjboss.management.local:J2EEServer=Local,j2eeType=J2EEApplication,name=Sigea-Util.ear/depends
attribute name=DataSourceNamejava:/InfoBrDS/attribute
  /mbean
/service

 But this do not work. It ignores the depends tag.
 This is a bug or am I doing something wrong here ?
Danilo.



---
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps  Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356alloc_id=3438op=click
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Single signon on Tomcat/JBoss

2003-09-29 Thread Danilo Luiz Rheinheimer
Hi,

  I need to use the single signon feature of Tomcat on JBoss
3.2.x/Tomcat.

  I was looking on this page :

http://218.223.25.90:8080/docs/singlesignon.html

  and on some old messages of this list.
  
  But looks like the instructions are outdated.
  There are some instructions of how make this workwith JBoss 3.2.x ? If
someone can tell me if it works then this is a big help.

Danilo.




---
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] Who is using JBoss in production?

2003-06-21 Thread Danilo Luiz Rheinheimer
Hello Thomas,

THL We use it as base for our company product, that is sold on CD as any
THL other off-the-shelf software.
THL We got 30-40 + a uncounted number of demo installations out there that
THL are running with almost no problems, and they are all installed using a
THL standard installer - no consulting on top.

  Can you please give more datails about this ?
  I am doing a software on JBoss, and I want to sold it on CD. And I
need to make a demo cd to be installed by very non technical people.
  So this standard installer - no consulting on top is what I really
need.

  Your demo works on Windows (and linux) ? What it installs ? The
JBoss server runs as a service on windows (or it show the DOS
screen) ?

  What problems did you have on creating this ? Can you share more
datails about the installer ?

-- 
Best regards,
 Danilomailto:[EMAIL PROTECTED]




---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Jetty error message : could not get AbstractReplicatedStore

2003-06-16 Thread Danilo Luiz Rheinheimer
Hello,

  When I run a Web application (deployed as a war) on JBoss-Jetty
3.2.1 I got a lot of this error printed on the JBoss console :

  23:45:50,496 ERROR [SubscribingInterceptor] could not get AbstractReplicatedStore

  Looks like the error is when it try to get a attribute from the
session. But I am not sure about this. This methods is always
returning null to me.
  What can be wrong ?

-- 
Best regards,
 Danilo  mailto:[EMAIL PROTECTED]




---
This SF.Net email is sponsored by: INetU
Attention Web Developers  Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


[JBoss-user] Protegra JBuilder/JBoss plugin

2003-03-28 Thread Danilo Luiz Rheinheimer
Hello,

  I am using the Protegra JBuilder Open Tool on JBuilder 8 with JBoss 3.2.
  I am able to create a EJB module and deploy them to JBoss.

  But I am not able to use entity beans.
  This is because I can not put the datasource and datasource-mapping
values on jbosscmp-jdbc.xml

 defaults
   datasourcejava:/UnicaEjbDs/datasource
   datasource-mappingHypersonic SQL/datasource-mapping
 /defaults

  I had set this on JBossCMP-JDBC tab of EJB module, but this is not
show on jbosscmp-jdbc.xml

  Any help ?
  
-- 
Best regards,
 Danilo  mailto:[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] Listing all session beans deployed

2003-03-20 Thread Danilo Luiz Rheinheimer
Hello,

  How I can list all session beans deployed on a JBoss server ?
  I need this information : type (stateless, statefull), Jndi name,
implementation class name, home interface name, remote interface name.
  I think I will need list some MBeans to do this. Any idea ?

-- 
 Danilo  mailto:[EMAIL PROTECTED]




---
This SF.net email is sponsored by: Tablet PC.  
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] Listing all session beans deployed

2003-03-20 Thread Danilo Luiz Rheinheimer
Felipe,

Thursday, March 20, 2003, 6:06:04 PM, you wrote:

FO have you looked at the jmx-console.war?
FO http://localhost:8080/jmx-console/

  Yes, I know what jmx-console is.
  It lists the MBeans instances on the server.
  I already know how list this information from java code.
  
  What I want to know is in what MBeans look to get the information I
need.
  On the jboss.j2ee domain name I can see a list of deployed beans. I
can find his JNDI names and type (stateless, statefull). But I need
other informations like implementation class name, home interface name
and remote interface name.
  When I can find this from the mbeans ?

  Danilo.

FO thanks,

FO felipe

FO Danilo Luiz Rheinheimer wrote:

Hello,

  How I can list all session beans deployed on a JBoss server ?
  I need this information : type (stateless, statefull), Jndi name,
implementation class name, home interface name, remote interface name.
  I think I will need list some MBeans to do this. Any idea ?

  





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




-- 
Best regards,
 Danilomailto:[EMAIL PROTECTED]




---
This SF.net email is sponsored by: Tablet PC.  
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] Error while deployin MBean

2003-03-15 Thread Danilo Luiz Rheinheimer
Hello,

  The problem is the service.xml file is being deployed before of the .jar
file with his classes.
  A solution can be include a classpath tag on the service file with the jar file it
uses :

service
  classpath codebase=. archives=PalmServer.jar/
   mbean code=com.sigea.palmserver.mbean.PalmServerControl 
name=Sigea:service=SigeaPalmServer
   /mbean
/service  

Saturday, March 15, 2003, 10:30:54 AM, you wrote:

DJ On 2003.03.15 03:03 Muraly R wrote:
 Hi All,
   I am writing an MBean which extends the ServiceMBeanSupport. This
 will 
 start the customised services for my application.
   Instead of using 'sar', I am using '-service.xml' file for
 deployin the MBean.
   All the classes related to the MBean and the MBean itself are
 inside the 
 'jar' of my application.
   When I start JBoss, I get the following error:
 snip
 13:16:07,954 WARN  [ServiceConfigurator] Failed to complete install
 java.lang.ClassNotFoundException: No ClassLoaders found for: 
 com.cisco.nm.qpm.se
 rver.framework.services.PreLoadService
  at org.jboss.mx.loading.LoadMgr.beginLoadTask(LoadMgr.java:138)
  at 
 org.jboss.mx.loading.UnifiedClassLoader3.loadClass(UnifiedClassLoader
 3.java:140)
 snip
 
 snip
 13:16:07,970 ERROR [URLDeploymentScanner] Failed to deploy: 
 org.jboss.deployment
 [EMAIL PROTECTED] url=file:/C:/Program 
 Files/C
 SCOpx/MDC/Shared/jboss-3.0.4/server/default/deploy/preload-service.xml, 
 deployed
 LastModified=0 }
 org.jboss.deployment.DeploymentException:
 qpm.preload:service=PreLoadService is
 not registered.; - nested throwable: 
 (javax.management.InstanceNotFoundException
 : qpm.preload:service=PreLoadService is not registered.)
  at org.jboss.deployment.SARDeployer.create(SARDeployer.java:227)
 snip.
 
 Does this mean that, 'sar' is required.
 Can anybody please clarify this.
 
 My -service.xml file
 ?xml version=1.0 encoding=UTF-8?
 
 server
mbean code=com.cisco.nm.qpm.server.framework.services.PreLoadService
   name=qpm.preload:service=PreLoadService
attribute name=EjbJndiNameKeyGenerator/attribute
 dependsjboss.j2ee:service=EJB,jndiName=KeyGenerator/depends
/mbean
 /server
 
 Regards
 Muraly
 
 
 
 ---
 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
 
 


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




-- 
Best regards,
 Danilomailto:[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] Deploy a struts application on JBoss

2003-03-11 Thread Danilo Luiz Rheinheimer
Hello,

  I am not able to deploy a Struts application on the JBoss server.
  I am having problems with the issues show in this message :

  http://www.mail-archive.com/[EMAIL PROTECTED]/msg61363.html

  There are some solution for this ?

-- 
Best regards,
 Danilo  mailto:[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] deploying to JBoss from Eclipse

2003-02-11 Thread Danilo Luiz Rheinheimer
Hello Aleksandr,

Tuesday, February 11, 2003, 11:06:18 AM, you wrote:
AS What would be really cool if there where some tools to create an
AS EJB, configure your deploymnet descriptors (ejb-jar, jboss,
AS jboss-cmp etc.). I mean XDoclet is nice but it is so entrenched
AS in your code that you really have to know what you are looking
AS to find it. And even then it is easy to miss it.

  Yes, I agree.
  Another step can be integrate it with UML2EJB
(http://uml2ejb.sf.net). If you do not know it is a tool to generate
EJBs code (xdoclet source) from a UML model. This UML model has tags
to all bean types it must create.
  If this is done the enviroment will be better than JBuilder to
create EJBs.

-- 
Best regards,
 Danilomailto:[EMAIL PROTECTED]




---
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



Re: [JBoss-user] Debugging JBoss Src under Win2K

2003-01-20 Thread Danilo Luiz Rheinheimer
Hello,

Monday, January 20, 2003, 8:11:49 AM, you wrote:
ngd I am working with Eclipse as IDE under Win2k. I downloaded the JBOSS 3.2.0
ngd as source. How can I debug JBoss from Eclipse?

  I can not say how to debug it using Eclipse (or another IDE) because
I never did it.
  But I did it using Karmira Bug Seeker (http://www.karmira.com/) and
it is very easy of use.
  It uses the remote debug feature. So you do not need to setup any
project on a IDE, just load the source code you want to debug and set
breakpoints.

-- 
Best regards,
 Danilomailto:[EMAIL PROTECTED]




---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Disable nested deployments

2003-01-16 Thread Danilo Luiz Rheinheimer
Hello,

  How I can disable the nested deployments in a SAR file ?
  The problem is I have many .bsh files on it and when I deploy it on
3.2RC1 it deploy this files. This files are bean shell scripts but to
be used by my mbean and not to be deployed.

  

-- 
Best regards,
 Danilo  mailto:[EMAIL PROTECTED]




---
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] How to get the Classloader of a EJB Module ?

2003-01-16 Thread Danilo Luiz Rheinheimer
Hello,

  I am doing a MBean where I need to get the ClassLoader of a
EjbModule.
  The EjbModule class has the method I need :

  public ClassLoader getClassLoader()

  but I need to call it using server.invoke, something like this :

  ObjectName name = new ObjectName(ejbModuleName);

  String[] sig = {};
  Object[] opArgs = {};

  ClassLoader o = (ClassLoader) server.invoke(name, getClassLoader, opArgs, sig);

  but this don´t work because getClassLoader is not on the
EjbModuleMBean interface.
  So how can I do it ?

-- 
Best regards,
 Danilo  mailto:[EMAIL PROTECTED]




---
This SF.NET email is sponsored by: Thawte.com
Understand how to protect your customers personal information by implementing
SSL on your Apache Web Server. Click here to get our FREE Thawte Apache 
Guide: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0029en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] blah-service.xml deployment problem

2003-01-14 Thread Danilo Luiz Rheinheimer
Hello James,

Tuesday, January 14, 2003, 1:54:22 PM, you wrote:

JW This might be a very dumb question, but I can't figure it out.
JW I have a blah.jar file which contains a blahMBean
JW I have a blah-service.xml which uses the blahMBean
JW When I drop both files into the deploy dir at the same time, JBoss
JW always tries to load the blah-service.xml before the blah.jar get's
JW loaded.  What's up with that?
JW If I then wait for the blah.jar to deploy and touch the blah-service.xml
JW file, everything works fine, but it's annoying.
JW Thanks for you help in advance.

  Use something like this on blah-service.xml :

?xml version=1.0 encoding=UTF-8?

server
  classpath codebase=. archives=blah.jar/
  mbean code=com.blah name=Sigea:service=BlahServer
  ...
  /mbean
/server


-- 
Best regards,
 Danilomailto:[EMAIL PROTECTED]




---
This SF.NET email is sponsored by: Take your first step towards giving 
your online business a competitive advantage. Test-drive a Thawte SSL 
certificate - our easy online guide will show you how. Click here to get 
started: http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0027en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re[2]: [JBoss-user] Store large pdfs with JBoss

2003-01-13 Thread Danilo Luiz Rheinheimer
Monday, January 13, 2003, 12:14:44 PM, you wrote:
GB Darren Hartford [mailto:[EMAIL PROTECTED]] wrote:
 Outside of JBoss, with Content Management Systems, the most 
 common problem is how to handle large amounts of data,
GB That's what RDBMSs are designed to do well.  There are plenty of
GB databases out there that contain terabytes of data in tables.
 The best approach to this is to have two keys in your
 database - one that is the unique identifier of the file you 
 are looking for, the the second is the actual pointer to the 
 file.  This way, if you HSM and move files to CD/DVD, you're 
 system still maintains integrity of the unique identifier for 
 lookups, but the pointer can change as-needed.

GB If your application crashes (or your network goes down, or whatever)
GB after writing the database row, but before writing the file, your
GB database will contain invalid data (a pointer to a nonexistent or
GB outdated file).  If it crashes after writing the file, but before
GB writing the database row, you'll have lost a file (it will be there on
GB disk, but there will be no pointer to it in the database).  Worse yet,
GB your application could crash while it's in the middle of writing a file,
GB in which case you're left with a corrupt file.

  The solution for this is write a JCA adaptor for a file based
persistent store, as already pointed on this thread.
  With this the file store will support transactions too.

-- 
Best regards,
 Danilomailto:[EMAIL PROTECTED]




---
This SF.NET email is sponsored by: FREE  SSL Guide from Thawte
are you planning your Web Server Security? Click here to get a FREE
Thawte SSL guide and find the answers to all your  SSL security issues.
http://ads.sourceforge.net/cgi-bin/redirect.pl?thaw0026en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] No ejb-relationship-role-name element found error

2002-12-07 Thread Danilo Luiz Rheinheimer
Hello,

  When I try to deploy my JAR file I had many error messages like this :

2002-12-08 02:42:10,738 WARN  [org.jboss.system.ServiceController] Problem starting 
service jboss.j2ee:jndiName=DisciplinaLocal,service=EJB
org.jboss.deployment.DeploymentException: No ejb-relationship-role-name element found

at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationMetaData.getEJBRelationshipRoleElement(JDBCRelationMetaData.java:402)
at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCRelationMetaData.init(JDBCRelationMetaData.java:305)
at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.init(JDBCApplicationMetaData.java:383)
  

   I am using CMR on JBoss 3.0.4
   The ejb-relationship-role-name tags on jbosscmp-jdbc.xml and on
 ejb-jar.xml are ok.

   So what can be wrong ?
   
-- 
Best regards,
 Danilo  mailto:[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] Problems with JetSpeed on JBoss

2002-11-29 Thread Danilo Luiz Rheinheimer
Thursday, November 28, 2002, 1:36:29 PM, you wrote:
JG I can't help with Tomcat problems, but if you have no particular
JG preference, try downloading the standard JBoss (w/o Tomcat) and 
JG deploying your app in that. JBoss' default webcontainer, Jetty, will be 
JG used to deploy your webapp. If you have any problems with this I will 
JG help you on this list.

  Using the instruction provided on
http://www.shiftat.com/blog/page/werner/20021027 I am able to run it
on JBoss-Jetty too.

  The problems had no relation with Tomcat/Jetty but how Jetspeed is
configured to run.
  The biggest problem is the hypersonic database who comes with the
war file inside \WEB-INF\db. On the instructions we have to remove the hypersonic jars 
from
JBoss and the hsqldb-service.xml too. This works but it is wrong. It
is best if we can remove the jars from the jetspeed war and use the
hypersonic database who is running inside JBoss. Another problem is
this database is used by other services like JBossMQ I think.
  I do not know how make this but if someone who know hypersonic
better can look at this should be easy.

-- 
Best regards,
 Danilomailto:[EMAIL PROTECTED]




---
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power  Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re[2]: [JBoss-user] Mapping of relationships

2002-08-22 Thread Danilo Luiz Rheinheimer

Hello David,

Wednesday, August 21, 2002, 9:41:44 PM, you wrote:
DJ Well, the persistent storage doesn't have to be a relational database: for
DJ instance it could be an object database such as Versant.  It also might be
DJ something like SAP, or an xml database.  So relationships can't really be
DJ specified by the spec, and you can't rely on any particular representation
DJ if you want your app to be completely portable.

  Yes, you are right about completly portable.
  I want this but I know it is difficult so I will be happy if I can
port it on JBoss and some popular AppServers (WebLogic and WS) and
some databases (Firebird and Oracle).

DJ david jencks

DJ On 2002.08.21 20:27:13 -0400 Danilo Luiz Rheinheimer wrote:
 Hello,
 
   On another mail Dain Sundstrom says the spec does not say anything
 about mapping of CMR to database tables.
   I need on my application the kind of feature of the JBoss DynamicQL.
 But I will not want use it because I do not want use features
 proprietary features, I want my application portable.
   But I need to be able to create sql querys at run time.
   My question is all applications server did the mapping of
 relationships on the same way ? If I have a relationship Order to
 OrderItens (1 - N) in all applications server this will be mapped as a
 Integer field called Order in the table OrderItem ?
   If this happen I can do a select * from Order, OrderItem where
 Order.Id=OrderItem.Id and this will work on all applications servers.
   I think the way JBoss maps the relationships is very logic and
 clear. And Dain is not responsible by the implementations of other
 application severs.
   But what you know about that ? Is a good idea make select this way ?
 
 -- 
 Best regards,
  Danilo  mailto:[EMAIL PROTECTED]
 
 
 
 ---
 This sf.net email is sponsored by: OSDN - Tired of that same old
 cell phone?  Get a new here for FREE!
 https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user
 
 


DJ ---
DJ This sf.net email is sponsored by: OSDN - Tired of that same old
DJ cell phone?  Get a new here for FREE!
DJ https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
DJ ___
DJ JBoss-user mailing list
DJ [EMAIL PROTECTED]
DJ https://lists.sourceforge.net/lists/listinfo/jboss-user



-- 
Best regards,
 Danilomailto:[EMAIL PROTECTED]



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re[2]: [JBoss-user] Mapping of relationships

2002-08-22 Thread Danilo Luiz Rheinheimer

Hello Alex,

Thursday, August 22, 2002, 4:28:14 AM, you wrote:
AL if I understand you right, you let JBossCMP to create and name fields
AL and tables. In this case there is no gaurantee your
AL query will be portable across different servers.
AL To have database schema the same using different app servers you need
AL to name all the fields and tables yourself and configure appropriate
AL DD file ( jbosscmp-jdbc.xml for JBoss ). Equivalent files should be
AL present in other app servers.

  On the moment I am letting JBoss CMP create name fields and tables.
But if this will increse portability I can name them and gerate the DD
file for the target application server.
  If I can map the relationships too in the same way I have no problem.
  
AL And another issue with dynamic queries. The implementation of dynamic
AL queries may differ form server to server. The following is a WL's
AL code. Compare it to JBoss approach:

  But note I do not want to use dynamic queries. Just because of that,
different approachs. What I want to do is make direct SQL (not EJB-QL)
queries to the database. As David Jencks noted this will limit it to
work on relational databases but I can accept that.
  I want this to implement the Value List Handler pattern, so I can
make a dynamic query of a large number os record without the overhead
of a finder method.

AL InitialContext ic=new InitialContext();
AL FooHome fh=(FooHome)ic.lookup(fooHome);
AL QueryHome qh=(QueryHome)fh;
AL Sring ejbql=SELECT OBJECT(e)FROM EmployeeBean e WHERE e.name='rob'
AL Query query=qh.createQuery();
AL query.setMaxElements(10)
AL Collection results=query.find(ejbql);

DLR   On another mail Dain Sundstrom says the spec does not say anything
DLR about mapping of CMR to database tables.
-- 
Best regards,
 Danilomailto:[EMAIL PROTECTED]



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Mapping of relationships

2002-08-21 Thread Danilo Luiz Rheinheimer

Hello,

  On another mail Dain Sundstrom says the spec does not say anything
about mapping of CMR to database tables.
  I need on my application the kind of feature of the JBoss DynamicQL.
But I will not want use it because I do not want use features
proprietary features, I want my application portable.
  But I need to be able to create sql querys at run time.
  My question is all applications server did the mapping of
relationships on the same way ? If I have a relationship Order to
OrderItens (1 - N) in all applications server this will be mapped as a
Integer field called Order in the table OrderItem ?
  If this happen I can do a select * from Order, OrderItem where
Order.Id=OrderItem.Id and this will work on all applications servers.
  I think the way JBoss maps the relationships is very logic and
clear. And Dain is not responsible by the implementations of other
application severs.
  But what you know about that ? Is a good idea make select this way ?

-- 
Best regards,
 Danilo  mailto:[EMAIL PROTECTED]



---
This sf.net email is sponsored by: OSDN - Tired of that same old
cell phone?  Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1refcode1=vs3390
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Dynamic QL error

2002-08-11 Thread Danilo Luiz Rheinheimer

Hello,

  I need to use DynamicQL on my application without success.
  I have the documentation of JBoss CMP 2.0 and I am adapting the
examples from there.
  The first step to make this work is declare a select generic on my
entity bean class like this :

public abstract Set ejbSelectGeneric(String jbossQl, Object[] arguments) throws 
FinderException;

  After this I declare it on jbosscmp-jdbc.xml :

?xml version=1.0 encoding=UTF-8?

!DOCTYPE jbosscmp-jdbc PUBLIC   
   -//JBoss//DTD JBOSSCMP-JDBC 3.0//EN
   http://jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd;

jbosscmp-jdbc
   defaults   .../defaults
 enterprise-beans
  entity
ejb-nameKeyCreator/ejb-name
query
  query-method
method-nameejbSelectGeneric/method-name
method-params
  method-paramjava.lang.String/method-param
  method-paramjava.lang.Object[]/method-param
/method-params
  /query-method
  dynamic-ql/
/query 
  /entity
 /enterprise-beans
/jbosscmp-jdbc

  But when I try deploy my bean I got this error :

org.jboss.deployment.DeploymentException: Unknown query method : public abstract
 java.util.Set com.sigea.ejb.util.KeyCreatorBean.ejbSelectGeneric(java.lang.Stri
ng,java.lang.Object[]) throws javax.ejb.FinderException

  I can not see what is the problem. It look the same thing of the
example. Any idea ? The complete console log is :

00:54:23,433 INFO  [MainDeployer] Starting deployment of package: file:/C:/prg/j
boss/server/default/deploy/sigea-util.jar
00:54:23,493 INFO  [EjbModule] Creating
00:54:23,503 INFO  [EjbModule] Deploying KeyCreator
00:54:23,523 INFO  [EjbModule] Created
00:54:23,523 INFO  [EjbModule] Starting
00:54:23,613 WARN  [ServiceController] Problem starting service jboss.j2ee:servi
ce=EJB,jndiName=KeyCreator
org.jboss.deployment.DeploymentException: Unknown query method : public abstract
 java.util.Set com.sigea.ejb.util.KeyCreatorBean.ejbSelectGeneric(java.lang.Stri
ng,java.lang.Object[]) throws javax.ejb.FinderException
at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCQueryMetaDataFactory.crea
teJDBCQueryMetaData(JDBCQueryMetaDataFactory.java:71)
at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCEntityMetaData.init(JDB
CEntityMetaData.java:525)
at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCApplicationMetaData.init
(JDBCApplicationMetaData.java:282)
at org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCXmlFileLoader.load(JDBCXm
lFileLoader.java:75)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.loadJDBCEntityMetaDat
a(JDBCStoreManager.java:677)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.initStoreManager(JDBC
StoreManager.java:389)
at org.jboss.ejb.plugins.cmp.jdbc.JDBCStoreManager.start(JDBCStoreManage
r.java:339)
at org.jboss.ejb.plugins.CMPPersistenceManager.start(CMPPersistenceManag
er.java:198)
at org.jboss.ejb.EntityContainer.start(EntityContainer.java:376)
at org.jboss.ejb.Container.invoke(Container.java:755)
at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:1055)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:967)
at $Proxy6.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:396)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy256.start(Unknown Source)
at org.jboss.ejb.EjbModule.startService(EjbModule.java:430)
at org.jboss.system.ServiceMBeanSupport.start(ServiceMBeanSupport.java:1
64)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at org.jboss.system.ServiceController$ServiceProxy.invoke(ServiceControl
ler.java:967)
at $Proxy6.start(Unknown Source)
at org.jboss.system.ServiceController.start(ServiceController.java:396)
at java.lang.reflect.Method.invoke(Native Method)
at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBea
nDispatcher.java:284)
at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:491)
at org.jboss.util.jmx.MBeanProxy.invoke(MBeanProxy.java:174)
at $Proxy5.start(Unknown Source)
at org.jboss.ejb.EJBDeployer.start(EJBDeployer.java:394)
at org.jboss.deployment.MainDeployer.start(MainDeployer.java:796)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:616)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:580)
at 

[JBoss-user] Serialization error on JBoss

2002-06-27 Thread Danilo Luiz Rheinheimer

Hello,

There are some issue about methods on the EJB returning Value Objects to clients ?
I got this error when I try to get a value object using a remote call :

java.lang.reflect.InvocationTargetException:
java.lang.reflect.UndeclaredThrowableException:
java.io.InvalidClassException: com.sigea.acad.vo.CursoVO; is not Serializable

The class to be serialized is that :

package com.sigea.acad.vo;
import java.io.*;

public class CursoVO implements java.io.Serializable {

private int aCodCurso;
private String aNomeCurso;

public java.lang.Integer getCodCurso () {
return new Integer(aCodCurso);
}

public void setCodCurso (java.lang.Integer codCurso) {
aCodCurso = codCurso.intValue();
}

public String getNomeCurso () {
return aNomeCurso;
}

public void setNomeCurso (String nomeCurso) {
aNomeCurso = nomeCurso;
}
}

There are something wrong with this ?

-- 
Best regards,
 Danilo  mailto:[EMAIL PROTECTED]



---
This sf.net email is sponsored by:ThinkGeek
Bringing you mounds of caffeinated joy.
http://thinkgeek.com/sf
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re[2]: [JBoss-user] Firebird type map

2002-06-26 Thread Danilo Luiz Rheinheimer

Hello David,

Wednesday, June 26, 2002, 1:47:29 AM, you wrote:
DJ On 2002.06.26 00:16:02 -0400 Danilo Luiz Rheinheimer wrote:
 Hello,
 
   I am using Firebird as my database to store my CMP beans.
   When I deploy them I got a error of unknown domain name.
   ...
   This is right ?
   What is this type BIT ? Why a boolean maps to a smallint on the
 database ?
DJ What would you prefer? Thats the shortest numerical type.

  I do not have problems with this.
  But the question is the CMP is executing this to create my table :

2002-06-26 10:58:55,362 DEBUG [org.firebirdsql.jca.FBManagedConnection]
preparing sql: CREATE TABLE COMPANY (codCompany INTEGER NOT NULL,
companyName VARCHAR(256), myField BIT, CONSTRAINT PK_COMPANY PRIMARY KEY (codCompany))

  This gives me the error : Specific domain or source collumn BIT does not
exist. I do not care what type is used if it works.

   It is possible inform the dialect of the dabase created with the
   FBManager mbean on firebird-service.xml ?  

DJ I don't think so, as I recall it always creates dialect 3.  Why would you
DJ want to create a new db in dialect 1?

  I do not. Just be sure this was not the problem.

-- 
Best regards,
 Danilomailto:[EMAIL PROTECTED]



---
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabberConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re[2]: [JBoss-user] Firebird type map

2002-06-26 Thread Danilo Luiz Rheinheimer

Hello Dain, David, List,

  I found the bug.
  The problem is I am using the firebird with the DefaultDS name, and
to do it I remove the hsqldb-service.xml from my deploy directory.
  As I do not want any field override to my beans and I will use the
DefaultDS datasource I do not have the jbosscmp-jdbc.xml !
  This make the create table generator make this odd things.
  I just add a very simple jbosscmp-jdbc.xml file (without any entity
override and the things are working now).
  Anyway I think JBoss should work on this case or at least say a
clear message as for example jbosscmp-jdbc.xml is missing.
  Thanks Dain and David by your time.

Wednesday, June 26, 2002, 12:31:11 PM, you wrote:

DS This too weird to be correct.  Double check you jbosscmp-jdbc.xml file 
DS for a specific field override.  If you can't find it, post a bug report 
DS with the ejb-jar.xml file, jbosscmp-jdbc.xml file and the implementation 
DS class of the bean that is failing (so I can see the java types).

DS -dain

DS David Jencks wrote:
 This is very odd.  It should be using the sql type for create table, not
 the jdbc type.  I'd ask on the database forum about this.  Also check you
 have an up to date jboss, Dain is always fixing things.
 
 david
 
 On 2002.06.26 10:11:10 -0400 Danilo Luiz Rheinheimer wrote:
 
Hello David,

Wednesday, June 26, 2002, 1:47:29 AM, you wrote:
DJ On 2002.06.26 00:16:02 -0400 Danilo Luiz Rheinheimer wrote:

Hello,

  I am using Firebird as my database to store my CMP beans.
  When I deploy them I got a error of unknown domain name.
  ...
  This is right ?
  What is this type BIT ? Why a boolean maps to a smallint on the
database ?

DJ What would you prefer? Thats the shortest numerical type.

  I do not have problems with this.
  But the question is the CMP is executing this to create my table :

2002-06-26 10:58:55,362 DEBUG [org.firebirdsql.jca.FBManagedConnection]
preparing sql: CREATE TABLE COMPANY (codCompany INTEGER NOT NULL,
companyName VARCHAR(256), myField BIT, CONSTRAINT PK_COMPANY PRIMARY KEY
(codCompany))

  This gives me the error : Specific domain or source collumn BIT does
not
exist. I do not care what type is used if it works.


  It is possible inform the dialect of the dabase created with the
  FBManager mbean on firebird-service.xml ?  

DJ I don't think so, as I recall it always creates dialect 3.  Why would
you
DJ want to create a new db in dialect 1?

  I do not. Just be sure this was not the problem.

-- 
Best regards,
 Danilomailto:[EMAIL PROTECTED]



---
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabberConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user


 
 
 
 ---
 This sf.net email is sponsored by: Jabber Inc.
 Don't miss the IM event of the season | Special offer for OSDN members! 
 JabberConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
 ___
 JBoss-user mailing list
 [EMAIL PROTECTED]
 https://lists.sourceforge.net/lists/listinfo/jboss-user





-- 
Best regards,
 Danilomailto:[EMAIL PROTECTED]



---
This sf.net email is sponsored by: Jabber Inc.
Don't miss the IM event of the season | Special offer for OSDN members! 
JabberConf 2002, Aug. 20-22, Keystone, CO http://www.jabberconf.com/osdn
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re[2]: [JBoss-user] CMR bug fixed?

2002-06-21 Thread Danilo Luiz Rheinheimer

Hello Douglas,

DS version? Is this the Branch_3_0 and Head you are talking about?  This

  I ask this before, but I do not got a clear answer.
  As Douglas ask this too I can see I am not the only one with this
question.
  If I download the version from CVS and do this :

  cd build
  build

  The version I will get on the output dir is the version of the Branch_3_0 and 
Head you are
 talking about ? With the CMR fixes ?
   *Please* Dain make this clear to us.

-- 
Best regards,
 Danilomailto:[EMAIL PROTECTED]



---
Sponsored by:
ThinkGeek at http://www.ThinkGeek.com/
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



Re: [JBoss-user] Maintain JBoss HSQL DB?

2002-06-06 Thread Danilo Luiz Rheinheimer

At 17:18 6/6/2002 +0200, you wrote:
Hi!

is there any tool to admin the hsql db which is the standard db shipped
with jboss?

Type on you browser :

http://127.0.0.1:8082

then click for a link like with service=Hypersonic on it. It is on the 
JBoss section.

  On the new page click on the StartDatabaseManager button.



Danilo Luiz Rheinheimer
Florianopolis/SC Brasil
Sony Clié 615C
mailto:[EMAIL PROTECTED]



___

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas -- http://devcon.sprintpcs.com/adp/index.cfm

___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user



[JBoss-user] Warning and error on .jar deploy

2002-05-13 Thread Danilo Luiz Rheinheimer

   Hi,

   When I deploy my .jar to JBoss 3.0 rc2 I get this warning :

INFO [EjbDeployer]
Bean : MyBeanName
Section : 10.3.4
Warning : the entity bean class must be defined as public and abstract

What cause this message ?

After this I get a error :

ERROR [EntityContainer] Exception in sevice lifecyle operation: create
org.jboss.deployment.DeploymentException: No abstract accessors for field 
named 'codDisc' found in entity class.
   at 
org.jboss.ejb.plugins.cmp.jdbc.metadata.JDBCCMPFFieldMetaData.loadFieldType(JDBCCMPFFieldMetaData.java:603)

   But I have the getter and setter methods on my bean class.
   What can be wrong ?


Danilo Luiz Rheinheimer
Florianopolis/SC Brasil
Sony Clié 615C
mailto:[EMAIL PROTECTED]



___

Have big pipes? SourceForge.net is looking for download mirrors. We supply
the hardware. You get the recognition. Email Us: [EMAIL PROTECTED]
___
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user