unsubscribe
-----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of [EMAIL PROTECTED] Sent: Sunday, October 14, 2001 3:10 PM To: [EMAIL PROTECTED] Subject: JBoss-user digest, Vol 1 #1563 - 7 msgs Send JBoss-user mailing list submissions to [EMAIL PROTECTED] To subscribe or unsubscribe via the World Wide Web, visit https://lists.sourceforge.net/lists/listinfo/jboss-user or, via email, send a message with subject or body 'help' to [EMAIL PROTECTED] You can reach the person managing the list at [EMAIL PROTECTED] When replying, please edit your Subject line so it is more specific than "Re: Contents of JBoss-user digest..." Today's Topics: 1. Re: Hi where I can find description of tags from ejb-jar.xml (Tobias Frech) 2. JDBC connections through JNDI DataSource from other programs ([EMAIL PROTECTED]) 3. Re: JDBC connections through JNDI DataSource from other programs (Scott M Stark) 4. RE: JDBC connections through JNDI DataSource from other programs (Ruwei (Randy) Hu) 5. finder methods in JBoss (David Treves) 6. Re: finder methods in JBoss (David Jencks) --__--__-- Message: 1 Date: Sat, 13 Oct 2001 23:16:45 +0200 From: Tobias Frech <[EMAIL PROTECTED]> To: IvanLatysh <[EMAIL PROTECTED]> CC: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Hi where I can find description of tags from ejb-jar.xml ejb-jar.xml is not JBoss specific. Otherwise JBoss would not be J2EE compliant. So go to SUN and look into the DTD. Cheers, Tobias IvanLatysh schrieb: > > Hi all. > > I need manual or description which tag I shold use to describe my EJB. > Now I have problem to create ejb-jar from my Entity bean. > > Thank you. > > Sincerely yours, Ivan Latysh. > [EMAIL PROTECTED] > http://ivan.yourmail.com > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user --__--__-- Message: 2 From: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Date: Sat, 13 Oct 2001 21:39:25 +0000 Subject: [JBoss-user] JDBC connections through JNDI DataSource from other programs I wrote a little test application to ensure that my database DataSource was set up correctly and had successfully connected to the database. My program did a JNDI lookup on the DataSource and ran some simple SQL statements. I got errors accessing the DataSource from my test program. When using the JNDI name directly (ie. "DefaultDS") I got a NameNotFoundException. When using "java:DefaultDS", or anything like that, I get the error: javax.naming.ServiceUnavailableException: jnp [Root exception is java.net.UnknownHostException: jnp]. To check I did a lookup on an object listed in the Global JNDI Namespace as listed in the JNDIView MBean and got ClassCastExceptions as would be expected. Are the DataSource objects just not available outside the server? Am I doing something wrong here? --__--__-- Message: 3 Reply-To: "Scott M Stark" <[EMAIL PROTECTED]> From: "Scott M Stark" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Subject: Re: [JBoss-user] JDBC connections through JNDI DataSource from other programs Date: Sat, 13 Oct 2001 15:04:46 -0700 Organization: JBoss Group No, nothing under the java: namespace is available outside of the server VM. xxxxxxxxxxxxxxxxxxxxxxxx Scott Stark Chief Technology Officer JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 13, 2001 2:39 PM Subject: [JBoss-user] JDBC connections through JNDI DataSource from other programs > I wrote a little test application to ensure that my > database DataSource was set up correctly and had > successfully connected to the database. My program did > a JNDI lookup on the DataSource and ran some simple SQL > statements. > > I got errors accessing the DataSource from my test > program. When using the JNDI name directly > (ie. "DefaultDS") I got a NameNotFoundException. When > using "java:DefaultDS", or anything like that, I get the > error: javax.naming.ServiceUnavailableException: jnp > [Root exception is java.net.UnknownHostException: jnp]. > > To check I did a lookup on an object listed in the > Global JNDI Namespace as listed in the JNDIView MBean > and got ClassCastExceptions as would be expected. > > Are the DataSource objects just not available outside > the server? Am I doing something wrong here? > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > --__--__-- Message: 4 From: "Ruwei \(Randy\) Hu" <[EMAIL PROTECTED]> To: "Scott M Stark" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]> Subject: RE: [JBoss-user] JDBC connections through JNDI DataSource from other programs Date: Sat, 13 Oct 2001 22:14:44 -0500 Also, DataSource is not shared across different VM since DB connection is bounded to process. The alternative way is to use JMX connector for DB connection information, and make a connection to DB to verify it. Here is the code: import javax.management.ObjectName; import org.jboss.jmx.interfaces.JMXConnector; import org.jboss.jmx.client.RMIClientConnectorImpl; //assuming the test application running on the same machine with JBoss String host = InetAddress.getLocalHost().getHostName(); JMXConnector lConnector = new RMIClientConnectorImpl(host); ObjectName jdbc = new ObjectName("DefaultDomain:service=JdbcProvider"); String driver = (String) lConnector.getAttribute(jdbc,"Drivers"); // asumming the DataSource JNDI name is "mydb" ObjectName db = new ObjectName("DefaultDomain:service=XADataSource,n ame=mydb"); String jdbcURL = (String) lConnector.getAttribute(db,"URL"); String user = (String) lConnector.getAttribute(db,"JDBCUser"); String password = (String) lConnector.getAttribute(db,"Password"); // Connect to the DB with above info to verify it. .... Randy -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Scott M Stark Sent: Saturday, October 13, 2001 5:05 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] JDBC connections through JNDI DataSource from other programs No, nothing under the java: namespace is available outside of the server VM. xxxxxxxxxxxxxxxxxxxxxxxx Scott Stark Chief Technology Officer JBoss Group, LLC xxxxxxxxxxxxxxxxxxxxxxxx ----- Original Message ----- From: <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Saturday, October 13, 2001 2:39 PM Subject: [JBoss-user] JDBC connections through JNDI DataSource from other programs > I wrote a little test application to ensure that my > database DataSource was set up correctly and had > successfully connected to the database. My program did > a JNDI lookup on the DataSource and ran some simple SQL > statements. > > I got errors accessing the DataSource from my test > program. When using the JNDI name directly > (ie. "DefaultDS") I got a NameNotFoundException. When > using "java:DefaultDS", or anything like that, I get the > error: javax.naming.ServiceUnavailableException: jnp > [Root exception is java.net.UnknownHostException: jnp]. > > To check I did a lookup on an object listed in the > Global JNDI Namespace as listed in the JNDIView MBean > and got ClassCastExceptions as would be expected. > > Are the DataSource objects just not available outside > the server? Am I doing something wrong here? > > _______________________________________________ > JBoss-user mailing list > [EMAIL PROTECTED] > https://lists.sourceforge.net/lists/listinfo/jboss-user > _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --__--__-- Message: 5 From: "David Treves" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Date: Sun, 14 Oct 2001 09:00:19 +0200 Subject: [JBoss-user] finder methods in JBoss This is a multi-part message in MIME format. ------=_NextPart_000_0028_01C1548E.A6548250 Content-Type: text/plain; charset="windows-1255" Content-Transfer-Encoding: quoted-printable Hi, I am trying to deploy an Entity Bean in JBoss 2.4.0. The thing is that I cannot find how to set the finder methods, I = realized already that I need to add them to the remote interface = (extends EJBObject), that's good for simple finders. But, what about = more complicated finder methods? For example ejbFindMaxSalary(). I = understood from the documentation that JBoss does only "SELECT * FROM = tbl", and adds no WHERE clause to the query. How can I query for = information WITH restrictions? I know that in WebLogic there is a way to define restrictions on the = SELECT query and therefore to filter the results in the SQL level. Is there a way to do so in JBoss? P.S. - Why the GUI ejb-jar.xml creator was removed from 2.4.x versions = of JBoss? What are the solution of JBoss for creating the ejb-jar.xml = and jboss.xml files, manually only? Thanks for your time, David Treves. ------=_NextPart_000_0028_01C1548E.A6548250 Content-Type: text/html; charset="windows-1255" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Dwindows-1255"> <META content=3D"MSHTML 5.50.4807.2300" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY bgColor=3D#ffffff> <DIV><FONT face=3DArial size=3D2>Hi,</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I am trying to deploy an Entity Bean in = JBoss=20 2.4.0.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>The thing is that I cannot find how to = set the=20 finder methods, I realized already that I need to add them to the remote = interface (extends EJBObject), that's good for simple finders. But, what = about=20 more complicated finder methods? For example ejbFindMaxSalary(). I = understood=20 from the documentation that JBoss does only "SELECT * FROM tbl", and = adds no=20 WHERE clause to the query. How can I query for information WITH=20 restrictions?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>I know that in WebLogic there is a way = to=20 define restrictions on the SELECT query and therefore to filter the = results in the SQL level.</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Is there a way to do so in = JBoss?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>P.S. - Why the GUI ejb-jar.xml creator = was removed=20 from 2.4.x versions of JBoss? What are the solution of JBoss for = creating the=20 ejb-jar.xml and jboss.xml files, manually only?</FONT></DIV> <DIV><FONT face=3DArial size=3D2></FONT> </DIV> <DIV><FONT face=3DArial size=3D2>Thanks for your time,</FONT></DIV> <DIV><FONT face=3DArial size=3D2>David = Treves.</FONT></DIV></BODY></HTML> ------=_NextPart_000_0028_01C1548E.A6548250-- --__--__-- Message: 6 Date: Sun, 14 Oct 2001 09:33:37 -0400 From: David Jencks <[EMAIL PROTECTED]> To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] finder methods in JBoss I think you mean Home interface... Read this chapter in the manual: http://www.jboss.org/documentation/HTML/ch06s07.html david jencks On 2001.10.14 03:00:19 -0400 David Treves wrote: > Hi, > > I am trying to deploy an Entity Bean in JBoss 2.4.0. > > The thing is that I cannot find how to set the finder methods, I realized > already that I need to add them to the remote interface (extends > EJBObject), that's good for simple finders. But, what about more > complicated finder methods? For example ejbFindMaxSalary(). I understood > from the documentation that JBoss does only "SELECT * FROM tbl", and adds > no WHERE clause to the query. How can I query for information WITH > restrictions? > > I know that in WebLogic there is a way to define restrictions on the > SELECT query and therefore to filter the results in the SQL level. > > Is there a way to do so in JBoss? > > P.S. - Why the GUI ejb-jar.xml creator was removed from 2.4.x versions of > JBoss? What are the solution of JBoss for creating the ejb-jar.xml and > jboss.xml files, manually only? > > Thanks for your time, > David Treves. > > <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> > <HTML><HEAD> > <META http-equiv=Content-Type content="text/html; charset=windows-1255"> > <META content="MSHTML 5.50.4807.2300" name=GENERATOR> > <STYLE></STYLE> > </HEAD> > <BODY bgColor=#ffffff> > <DIV><FONT face=Arial size=2>Hi,</FONT></DIV> > <DIV><FONT face=Arial size=2></FONT> </DIV> > <DIV><FONT face=Arial size=2>I am trying to deploy an Entity Bean in > JBoss > 2.4.0.</FONT></DIV> > <DIV><FONT face=Arial size=2></FONT> </DIV> > <DIV><FONT face=Arial size=2>The thing is that I cannot find how to set > the > finder methods, I realized already that I need to add them to the remote > interface (extends EJBObject), that's good for simple finders. But, what > about > more complicated finder methods? For example ejbFindMaxSalary(). I > understood > from the documentation that JBoss does only "SELECT * FROM tbl", and adds > no > WHERE clause to the query. How can I query for information WITH > restrictions?</FONT></DIV> > <DIV><FONT face=Arial size=2></FONT> </DIV> > <DIV><FONT face=Arial size=2>I know that in WebLogic there is a way to > define restrictions on the SELECT query and therefore to filter the > results in the SQL level.</FONT></DIV> > <DIV><FONT face=Arial size=2></FONT> </DIV> > <DIV><FONT face=Arial size=2>Is there a way to do so in > JBoss?</FONT></DIV> > <DIV><FONT face=Arial size=2></FONT> </DIV> > <DIV><FONT face=Arial size=2>P.S. - Why the GUI ejb-jar.xml creator was > removed > from 2.4.x versions of JBoss? What are the solution of JBoss for creating > the > ejb-jar.xml and jboss.xml files, manually only?</FONT></DIV> > <DIV><FONT face=Arial size=2></FONT> </DIV> > <DIV><FONT face=Arial size=2>Thanks for your time,</FONT></DIV> > <DIV><FONT face=Arial size=2>David Treves.</FONT></DIV></BODY></HTML> > --__--__-- _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user End of JBoss-user Digest _________________________________________________________ Do You Yahoo!? Get your free @yahoo.com address at http://mail.yahoo.com _______________________________________________ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user