[JBoss-user] It's not jboss, it's java!

2001-08-07 Thread Roy Yip

Sorry for sending this non-jboss material. But I think some people (or
most...) will be interested.




THE O'REILLY NETWORK NEWSLETTER
 -
 The latest from http://oreillynet.com


Sponsored by Oracle Think 9i

Join the community that powers the internet. Oracle Technology Network 
(OTN) - your FREE resource for online development, cutting edge news, 
training, support and software!!  Find out why over 1.5 million members
have joined this online community behind the software that powers the 
internet. Get Oracle's latest development software FREE, with your 
membership.  Join OTN today. http://oreillynet.com/nlr/network/08/06/top



Dear Reader,

We've just posted some pretty good Java content. I'm mentioning 
this because this batch of articles has something for just about 
everyone, from the experienced programmer to the unsure novice.

If you have no Java experience at all, and have wanted to experiment 
with writing code, Daniel Steinberg has published a terrific entry 
article, Building a Simple Java Application in Mac OS X, which shows 
you how fun writing Java is on Apple's new Unix-based platform, 
Mac OS X.

More savvy programmers should definitely jump over to ONJava.com 
and take a look at Steve Anglin's Open Source Java Week. Steve has 
put together a comprehensive report of Java activity from O'Reilly's 
Open Source Convention, posted links to the Java tutorials presented 
at the conference, and assembled a handy reading list of solid 
Java articles.

So whether you're a seasoned developer, aspiring programmer, or 
simply curious about the latest Java news, we have something that's 
bound to catch your eye.

Until next time,

Derrick
--
Derrick Story, Managing Editor
O'Reilly Network
[EMAIL PROTECTED]

=
Sponsored by Ericsson Mobility World

Ericsson Mobility World launches Ericsson's global 
partnering program at Wireless Developer 2001, Santa 
Clara, CA, August 21st. Learn how to write applications 
for Ericsson technologies, including Bluetooth, Messaging, 
Location Based Services. For information and registration 
go to: http://www.wirelessdeveloper2001.com/ericsson.htm
=

*** Featured Articles ***

Building a Simple Java Application in Mac OS X
>From the Mac DevCenter
The word is getting out that Mac OS X is a terrific development
platform for Java. In this article, Daniel Steinberg shows you the
basic steps needed to develop a simple GUI application.

http://oreillynet.com/pub/a/mac/2001/08/03/osx_java.html

***

Open Source Java Week
>From ONJava.com
This Open Source Java Week package will help you see the many open 
source Java projects and tools that are out there. 

http://www.onjava.com/pub/a/onjava/2001/08/01/osjava.html

***

Multithreading with C#  
>From the .NET DevCenter
Raffi Krikorian will focus on the syntactical differences between 
Java and C# threading capabilities, as well as presenting a 
translation of a few common Java usage patterns into C#.  

http://www.oreillynet.com/pub/a/dotnet/2001/08/06/csharp.html

***

IPFilter on OpenBSD
>From ONLamp.com
IPFilter is a firewall widely used by BSD and Solaris. 
Mike DeGraw-Bertsch explains how to set it up on OpenBSD and 
explains a basic ruleset. 

http://onlamp.com/pub/a/onlamp/2001/08/02/obsd_ipfilter.html

***

Amazing Media Player Brings PDA Video to Life
>From the Mac DevCenter
Generic Media's version 2 of its Palm OS player enables QuickTime 
video and audio playback on Visors, Palms, and Clies. And if you 
have have a color PDA, it's downright amazing. 

http://www.oreillynet.com/pub/a/mac/2001/07/31/qt_authoring.html

***

Next Step for P2P? Open Services
>From OpenP2P.com
Not satisfied to share merely their MP3 files, users are building 
a movement to share all manner of services between peers, writes 
Gene Kan.

http://openp2p.com/pub/a/p2p/2001/08/02/openservices.html

***

Using Squid on Intermittent Connections
>From linux.oreillynet.com
Need to access important web sites without being connected to the 
Internet? Jennifer Vesperman shows you how to use Squid in offline 
mode with intermittent connections. 

http://linux.oreillynet.com/pub/a/linux/2001/08/02/offline_squid.html

***

Introducing the Mac Open Source Software Directory
>From the Mac DevCenter
This directory of open-source software for the Mac has more than
100 entries and will continue to grow in the coming months as new
titles are released.

http://oreillynet.com/pub/a/mac/2001/08/03/mac_directory_intro.html


*** O'Reilly Network Top Five Articles Last Week ***

1. Deploying Web Applications to Tomcat 
James Goodwill takes us through the web application deployment 
process for the Apac

Re: [JBoss-user] jboss.xml DTD missing from jboss.org website

2001-08-04 Thread Roy Yip

Please find enclosed the old version of jboss.dtd that I've downloaded
previously.

Bryan Field-Elliot wrote:

> The standard URL for the jboss.xml DTD, at:
>
> http://www.jboss.org/j2ee/dtd/jboss.dtd
>
> Appears to not be on the server -- has the "official" location been changed?
>
> Thank you,
>
> Bryan
>
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user









































































































































































Re: [JBoss-user] jboss/tomcat with Xalan & Xerces ?

2001-07-20 Thread Roy Yip

It's a bit tricky here. In my case, WEB-INF/lib doesn't work for jar
which involved Remote Method Invocation. I had to put it in
%TOMCAT_HOME%/lib to make the class "loadable".

Steve Slatcher wrote:
> 
> "Roy Yip" <[EMAIL PROTECTED]> wrote in message 
>[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> 
> > Simply put those jar files in %JBOSS_HOME%/lib/ext.
> 
> This make them available to the EJBs, but does can JSPs really find them here?
> 
> > > I already tried with puting these jars in jboss/lib/  tomcat/lib , even i
> > > tried with making a lib/ directory in the WEB-INF/ directory of my .war
> 
> WEB-INF/lib is the location for jars that JSPs and Servlets need.
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

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



Re: [JBoss-user] jboss/tomcat with Xalan & Xerces ?

2001-07-20 Thread Roy Yip

Simply put those jar files in %JBOSS_HOME%/lib/ext.

[EMAIL PROTECTED] wrote:
> 
> I need the packages in xalan.jar and xerces.jar  to  execute my Entity
> Bean.
> 
> I don't find the way to indicate to my  JBoss-2.2.2/Tomcat-3.2.2   server
> how  to find them in execution of my JSP.
> 
> If somebody had this problem ? or anybody's suggestions..
> 
> thanks.
> 
> I already tried with puting these jars in jboss/lib/  tomcat/lib , even i
> tried with making a lib/ directory in the WEB-INF/ directory of my .war
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

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



Re: [JBoss-user] How to map to cloudscape database

2001-07-04 Thread Roy Yip

Hi!

You should have defined both "JdbcProvider" & "XADataSource" services in
your jboss.jcml as something like :-
...

  COM.cloudscape.core.RmiJdbcDriver

...

  Cloudscape
  ...
  jdbc:rmi://localhost:1099/jdbc:cloudscape:CloudscapeDB;create=true
  ...

...
That should bring up something like :-
...
[JDBC provider] Initializing
[JDBC provider] Loaded COM.cloudscape.core.RmiJdbcDriver
[JDBC provider] Initialized
...
[Cloudscape] Starting
[Cloudscape] XA Connection pool Cloudscape bound to java:/Cloudscape
[Cloudscape] Started
...
when you start jboss. Then in jboss.xml in your META-INF, do something
like :-
...

  jdbc/ConferenceDB  
  java:/Cloudscape  

...

ralph wrote:
> 
> I copied the cloudscape driver files to [jboss-home] \ lib \ ext.
> Edited jboss.conf
> Started jBoss.
> Deployed a few beans in a jar-file.
> Everything appears to be okay according to server.log and standard output.
> :-)
> 
> Now:
> What do I need to do in order to map my datasource name correctly, meaning:
> 
> In my beans I want to connect to Cloudscape this way:
> 
> DataSource ds = (DataSource)
> nitial.lookup( "java:comp/env/jdbc/ConferenceDB" );
> 
> The beans which should access cloudscape have the following resource-ref in
> ejb-jar.xml:
> 
> jdbc/ConferenceDB 
> javax.sql.DataSource 
> Container 
> Shareable 
> 
> 
> Currently, after deploying my jar file, the output on port 8082 looks like
> this for these beans:
> 
>   + env (class: org.jnp.interfaces.NamingContext)
>   |   + jdbc (class: org.jnp.interfaces.NamingContext)
>   |   |   + ConferenceDB[link -> java: / DefaultDS] (class:
> javax.naming.LinkRef)
> 
> I guess that should say Cloudscape instead of DefaultDS - or not ?
> 
> I know it has something to do with jBoss.xml, but didn't find an example
> for that. What has to go into jboss.xml ?
> 
> Thanks
> Ralph
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

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



Re: [JBoss-user] why?

2001-06-29 Thread Roy Yip

Hi!

Create a directory "jbossmq" under %JBOSS_HOME%/db/ and that should
work.

Sky Yin wrote:
> 
> hi
> I know it's no problem to start jboss with sun's jdk1.3.0, but when I switch to 
>jdk1.3.1 I encounter the following error
> but still go on starting:
> 
> ..
> [JBossMQ] Starting
> [JBossMQ] Cannot start the JMS server ! Invalid configuration.
> [JBossMQ] javax.jms.JMSException: Invalid configuration.
> [JBossMQ]   at 
>org.jbossmq.server.PersistenceManager.(PersistenceManager.java:107)
> [JBossMQ]   at org.jbossmq.server.StartServer.run(StartServer.java:170)
> [JBossMQ]   at org.jbossmq.server.StartServer.start(StartServer.java:70)
> [JBossMQ]   at 
>org.jbossmq.server.JBossMQService.startService(JBossMQService.java:66)
> [JBossMQ]   at 
>org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
> [JBossMQ]   at java.lang.reflect.Method.invoke(Native Method)
> [JBossMQ]   at 
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [JBossMQ]   at 
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [JBossMQ]   at org.jboss.util.ServiceControl.start(ServiceControl.java:97)
> [JBossMQ]   at java.lang.reflect.Method.invoke(Native Method)
> [JBossMQ]   at 
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [JBossMQ]   at 
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [JBossMQ]   at org.jboss.Main.(Main.java:217)
> [JBossMQ]   at org.jboss.Main$1.run(Main.java:121)
> [JBossMQ]   at java.security.AccessController.doPrivileged(Native Method)
> [JBossMQ]   at org.jboss.Main.main(Main.java:117)
> [JBossMQ] Linked Exception:
> [JBossMQ] javax.jms.JMSException: Could not open the queue's tranaction log:
> /C:/net/JBoss/jboss/db/jbossmq/transactions.dat
> [JBossMQ]   at 
>org.jbossmq.persistence.SpyTxLog.throwJMSException(SpyTxLog.java:95)
> [JBossMQ]   at org.jbossmq.persistence.SpyTxLog.(SpyTxLog.java:35)
> [JBossMQ]   at 
>org.jbossmq.server.PersistenceManager.(PersistenceManager.java:104)
> [JBossMQ]   at org.jbossmq.server.StartServer.run(StartServer.java:170)
> [JBossMQ]   at org.jbossmq.server.StartServer.start(StartServer.java:70)
> [JBossMQ]   at 
>org.jbossmq.server.JBossMQService.startService(JBossMQService.java:66)
> [JBossMQ]   at 
>org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
> [JBossMQ]   at java.lang.reflect.Method.invoke(Native Method)
> [JBossMQ]   at 
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [JBossMQ]   at 
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [JBossMQ]   at org.jboss.util.ServiceControl.start(ServiceControl.java:97)
> [JBossMQ]   at java.lang.reflect.Method.invoke(Native Method)
> [JBossMQ]   at 
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [JBossMQ]   at 
>com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [JBossMQ]   at org.jboss.Main.(Main.java:217)
> [JBossMQ]   at org.jboss.Main$1.run(Main.java:121)
> [JBossMQ]   at java.security.AccessController.doPrivileged(Native Method)
> [JBossMQ]   at org.jboss.Main.main(Main.java:117)
> [JBossMQ] Started
> [DefaultJMSProvider] Starting
> [DefaultJMSProvider] JMS provider Adapter DefaultJMSProvider bound to 
>java:/DefaultJMSProvider
> [DefaultJMSProvider] Started
> [StdJMSPool] Starting
> [StdJMSPool] JMS provider Adapter StdJMSPool bound to java:/StdJMSPool
> [StdJMSPool] Started
> ..
> 
> I use JBoss-2.2.2-Jetty-3.1.RC5 under win2000, current classpath is 
>c:\softeng\ant\lib\ant.jar;C:\java\tools\xerces
> 
>\xerces.jar;c:\java\jdk\lib\tools.jar;c:\softeng\junit\junit.jar;c:\database\ozone\;.\;
> 
> BTW, I've installed IBM jdk1.3 for win before. JBoss couldn't start under that at 
>all.
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

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



Re: [JBoss-user] does JBoss include a JMS provider

2001-06-25 Thread Roy Yip

No!

JBossMQ is already included in your downloaded JBoss package. It's
started automatically whenever you start the JBoss "run" script. There
should be a "%JBOSS_HOME%\db\jbossmq" directory (if you can't find it,
just manually create one.) to hold the defined topics and queues and you
can define your own list in jbossmq.xml found in
"%JBOSS_HOME%\conf\default". There is a "jms.jar" in
"%JBOSS_HOME%\lib\ext%" and you should include this file in your
classpath to "javac" and "java" the jms client.

"G.L. Grobe" wrote:
> 
> Does just started mean there is currently no JMS support for JBoss and I'll
> have to use my own provider now?
> 
> - Original Message -
> From: "Roy Yip" <[EMAIL PROTECTED]>
> To: <[EMAIL PROTECTED]>
> Sent: Sunday, June 24, 2001 5:38 AM
> Subject: Re: [JBoss-user] does JBoss include a JMS provider
> 
> > Hi!
> >
> > I just start working on the JBossMQ included within the JBoss 2.2.1
> > package. This should be the JMS provider you're looking for.
> >
> > "G.L. Grobe" wrote:
> > >
> > > I'm thinking about switching over to JBoss and would like to know if
> JBoss
> > > includes a JMS provider, and if so, what state is it in. Most servers
> I've
> > > been dealing with have JMS providers needing about another years worth
> of
> > > work to do. Fortunately my J2EE app is quite simple with the JMS as it
> only
> > > does PTP queueing.
> > >
> > > Any help much appreciated. Please point to docs if their available on
> how to
> > > do this w/ JBoss.
> > >
> > > ___
> > > JBoss-user mailing list
> > > [EMAIL PROTECTED]
> > > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> >
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

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



Re: [JBoss-user] does JBoss include a JMS provider

2001-06-24 Thread Roy Yip

Hi!

I just start working on the JBossMQ included within the JBoss 2.2.1
package. This should be the JMS provider you're looking for.

"G.L. Grobe" wrote:
> 
> I'm thinking about switching over to JBoss and would like to know if JBoss
> includes a JMS provider, and if so, what state is it in. Most servers I've
> been dealing with have JMS providers needing about another years worth of
> work to do. Fortunately my J2EE app is quite simple with the JMS as it only
> does PTP queueing.
> 
> Any help much appreciated. Please point to docs if their available on how to
> do this w/ JBoss.
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

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



Re: [JBoss-user] jboss.jcml, MySQL

2001-06-22 Thread Roy Yip

Is it still the "ClassNotFoundException"?

Richard Bottoms wrote:
> 
> At 05:52 PM 6/22/01 +0800, you wrote:
> >Hi Richard,
> >
> >It seems your JBOSS couldn't load
> >"org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl".class from the
> >classpath.
> 
> I downloaded a fresh copy, but still no dice.
> 
> r.b.
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

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



Re: [JBoss-user] jboss.jcml, MySQL

2001-06-22 Thread Roy Yip

Hi Richard,

It seems your JBOSS couldn't load
"org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl".class from the
classpath. This class file should be packed in "minerva-1_0b3.jar" and
you should be able to find it in %JBOSS_HOME%\lib\ext (I'm using JBOSS
2.2.1). If you find you've missed the jar file, try :-

http://cvs.sourceforge.net/cgi-bin/viewcvs.cgi/jboss/jboss/src/lib/Attic/

Richard Bottoms wrote:
> 
> >1. Make sure you've got the JDBC driver jar file
> >"mm.mysql-2.0.4-bin.jar" and put it into %JBOSS_HOME%\lib\ext. It will
> >be loaded into classpath automatically when you start JBOSS.
> >2. Create a new database record in mysql, let's call it "sample".
> >3. Create a new "temp" table with sql statement such as "create table
> >temp (...)".
> >4. You need to modify the jboss.jcml file with the following sections :-
> 
> All done. Looks like it failed. Here's the jboss.jcml changes & exceprt
> from server log:
> 
> jboss.jcml
>   
>  name="DefaultDomain:service=JdbcProvider">
> org.gjt.mm.mysql.Driver
> 
> 
>  name="DefaultDomain:service=XADataSource,name=mySQL">
> mySQL
> 
>   org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
> 
> 
> jdbc:mysql://localhost/test
> 120
> root
> 10
> xx
> false
> false
> false
> true
> 12
> 180
> false
> false
> 1.0
> 0
> 
> 
> server.log
> [JDBC provider] Initializing
> [JDBC provider] Loaded JDBC-driver:org.hsql.jdbcDriver
> [JDBC provider] Loaded JDBC-driver:org.enhydra.instantdb.jdbc.idbDriver
> [JDBC provider] Initialized
> [mySQL] Initializing
> [mySQL] Initialized
> 
> 
> 
> [JDBC provider] Starting
> [JDBC provider] Started
> [mySQL] Starting
> [mySQL] Stopped
> [mySQL] java.lang.ClassNotFoundException:
> [mySQL]   org/opentools/minerva/jdbc/xa/wrapper/XADataSourceImpl
> [mySQL]
> [mySQL] at java.lang.Class.forName0(Native Method)
> [mySQL] at java.lang.Class.forName(Class.java:120)
> [mySQL] at
> org.jboss.jdbc.XADataSourceLoader.startService(XADataSourceLoader.java:270)
> [mySQL] at
> org.jboss.util.ServiceMBeanSupport.start(ServiceMBeanSupport.java:93)
> [mySQL] at java.lang.reflect.Method.invoke(Native Method)
> [mySQL] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [mySQL] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [mySQL] at org.jboss.util.ServiceControl.start(ServiceControl.java:97)
> [mySQL] at java.lang.reflect.Method.invoke(Native Method)
> [mySQL] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1628)
> [mySQL] at
> com.sun.management.jmx.MBeanServerImpl.invoke(MBeanServerImpl.java:1523)
> [mySQL] at org.jboss.Main.(Main.java:217)
> [mySQL] at org.jboss.Main$1.run(Main.java:121)
> [mySQL] at java.security.AccessController.doPrivileged(Native Method)
> [mySQL] at org.jboss.Main.main(Main.java:117)
> [Service Control] Could not start
> DefaultDomain:service=XADataSource,name=mySQL
> [Service Control] java.lang.ClassNotFoundException:
> [Service Control]   org/opentools/minerva/jdbc/xa/wrapper/XADataSourceImpl
> 
> Any ideas?
> 
> Thanks,
> r.b.
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

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



Re: [JBoss-user] jboss.jcml, MySQL

2001-06-21 Thread Roy Yip

Hi!

I'm not sure about the Allen Fogleson's example but I can list the steps
as follow and hope they will help :-

1. Make sure you've got the JDBC driver jar file
"mm.mysql-2.0.4-bin.jar" and put it into %JBOSS_HOME%\lib\ext. It will
be loaded into classpath automatically when you start JBOSS.
2. Create a new database record in mysql, let's call it "sample".
3. Create a new "temp" table with sql statement such as "create table
temp (...)".
4. You need to modify the jboss.jcml file with the following sections :-
-> 
 org.gjt.mm.mysql.Driver  
   
-> 
 mySQL
 org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl
 
 jdbc:mysql://localhost/sample 

 120
 username  
 10
 password  
 false
 false
 false
 true
 12
 180
 false
 false
 1.0
 0
   
5. Start JBOSS and you'll see something like...
   [JDBC provider] Initializing
   [JDBC provider] Loaded JDBC-driver:org.gjt.mm.mysql.Driver
   [JDBC provider] Initialized
   [mySQL] Initializing
   [mySQL] Initialized
   ...
   [JDBC provider] Starting
   [JDBC provider] Started
   [mySQL] Starting
   [mySQL] XA Connection pool Sac bound to java:/mySQL
   [mySQL] Started
   So the JNDI name "java:/mySQL" is bound.
6. Modify the jboss.xml of your EJB with the following line :-
   
 jdbc/xxxDB  
 java:/mySQL
   
   Pack it together with ejb-jar.xml and all your EJB class file into
jar file and deploy it.

Richard Bottoms wrote:
> 
> At 05:30 PM 6/21/01 +0800, you wrote:
> >Hi,
> >
> >This is the one I use to make mySQL work. Hope it's useful to you too.
> >Don't forget to put mm.mysql-2.0.4-bin.jar in %JBOSS_HOME%\lib\ext.
> 
> It's installed. Could you give a simple example of how to use it?
> 
> May I suggest using Allen Fogleson's Simple Hello tutorial and expanding it
> to access a MySQL database.
> 
> Thanks,
> r.b.
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

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



Re: [JBoss-user] O'Reilly example with JBossMQ...

2001-06-21 Thread Roy Yip

Thanks! It works well after "topic/beginner" is used.

Peter Antman wrote:
> 
> On 21 Jun, Roy Yip wrote:
> > Hi!
> >
> > I'm trying out the Chat example from O'Reilly's JMS text. I've
> > configured the jbossmq.xml file to include :-
> >
> > ...
> > beginner
> >
> > and
> >
> > 
> >   myname
> >   mypassword
> > 
> >
> > and the source is :-
> >
> > ...
> > Properties env = new Properties();
> > env.setProperty("java.naming.factory.initial",
> > "org.jnp.interfaces.NamingContextFactory");
> > env.setProperty("java.naming.provider.url", "localhost:1088");
> > InitialContext jndi = new InitialContext(env);
> > TopicConnectionFactory conFactory =
> > (TopicConnectionFactory)jndi.lookup("TopicConnectionFactory");
> > TopicConnection connection =
> > conFactory.createTopicConnection(username,   password);
> > TopicSession pubSession = connection.createTopicSession(false,
> > Session.AUTO_ACKNOWLEDGE);
> > TopicSession subSession = connection.createTopicSession(false,
> > Session.AUTO_ACKNOWLEDGE);
> 
> ---> String topicName = "topic/beginner"
> 
> //Peter
> > Topic chatTopic = (Topic)jndi.lookup(topicName);
> >
> > When I run it with all required classpath set, the outcome is :-
> >
> >>java Chat beginner myname mypassword
> >
> > javax.naming.NameNotFoundException: beginner not bound at
> >   sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown
> >   Source)
> > ...
> >
> > It seems "beginner" in jbossmq.xml is not bound into JNDI registry and I
> > cannot find the DTD for jbossmq.xml.
> >
> > Can anyone help?
> >
> > ___
> > JBoss-user mailing list
> > [EMAIL PROTECTED]
> > http://lists.sourceforge.net/lists/listinfo/jboss-user
> 
> --
> Jobba hos oss: http://www.tim.se/weblab
> 
> Peter Antman Technology in Media, Box 34105 100 26 Stockholm
> Systems ArchitectWWW: http://www.tim.se
> Email: [EMAIL PROTECTED]WWW: http://www.backsource.org
> Phone: +46-(0)8-506 381 11 Mobile: 070-675 3942
> 
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

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



Re: [JBoss-user] Cutting down the default configuration

2001-06-21 Thread Roy Yip

Steve,

You can also cut out the JMS and the mail stuff :-


...

...



...

Better just comment them out! You'll probably need them for the Message
Driven Bean and JavaMail stuff later.

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



[JBoss-user] O'Reilly example with JBossMQ...

2001-06-21 Thread Roy Yip

Hi!

I'm trying out the Chat example from O'Reilly's JMS text. I've
configured the jbossmq.xml file to include :-

...
beginner

and


  myname
  mypassword


and the source is :-

...
Properties env = new Properties();
env.setProperty("java.naming.factory.initial",  
"org.jnp.interfaces.NamingContextFactory");
env.setProperty("java.naming.provider.url", "localhost:1088");
InitialContext jndi = new InitialContext(env);
TopicConnectionFactory conFactory =  
(TopicConnectionFactory)jndi.lookup("TopicConnectionFactory");
TopicConnection connection =
conFactory.createTopicConnection(username,   password);
TopicSession pubSession = connection.createTopicSession(false,  
Session.AUTO_ACKNOWLEDGE);
TopicSession subSession = connection.createTopicSession(false,  
Session.AUTO_ACKNOWLEDGE);
Topic chatTopic = (Topic)jndi.lookup(topicName);

When I run it with all required classpath set, the outcome is :-

>java Chat beginner myname mypassword

javax.naming.NameNotFoundException: beginner not bound at
  sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(Unknown
  Source)
...

It seems "beginner" in jbossmq.xml is not bound into JNDI registry and I
cannot find the DTD for jbossmq.xml.

Can anyone help?

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



Re: [JBoss-user] Cutting down the default configuration

2001-06-21 Thread Roy Yip

Hi!

Simply delete (or comment out!!!) the Hypersonic and InstantDB lines in
your jboss.jcml and jboss-auto.jcml.

Steve Slatcher wrote:
> 
> Hi Guys
> 
> Well, OK, actually I'm wanting to cut down the "with tomcat" configuration,
> with a view to keeping things tidy, and possibly reducing the JBoss
> footprint.  I am now using JBoss 2.2.2.
> 
> Any ideas are welcome.
> 
> I am actually using Sybase, so my first stab was to remove references
> to Hypersonic and InstantDB from jboss.jcml.  This was not entirely
> successful as evidenced from the JBoss startup messages.  Are these
> databases required by JBoss for some (to me) non-obvious purpose?
> 
> (with apologies if you see this twice - I seem to be having some mailing
> problems at my end)
> 
> Many thanks
> 
> --
> Steve Slatcher
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

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



Re: [JBoss-user] jboss.jcml, MySQL

2001-06-21 Thread Roy Yip

Hi,

This is the one I use to make mySQL work. Hope it's useful to you too.
Don't forget to put mm.mysql-2.0.4-bin.jar in %JBOSS_HOME%\lib\ext.


org.gjt.mm.mysql.Driver



mySQL

  org.opentools.minerva.jdbc.xa.wrapper.XADataSourceImpl


jdbc:mysql://localhost/mysql
120
username
10
password
false
false
false
true
12
180
false
false
1.0
0


Good luck!

Jonathan Gibbons wrote:
> 
> Hi,
> 
> Yes!  Take a look at the jboss on-line documentation for how to do it.  Also
> download the LowRoad (http://www.faraway.co.uk/tallsoft/lowroad/) and read
> the jboss_mysql_guide.txt.
> 
> Jonathan
> 
> >Anyone successfully load and use mm.mysql.jdbc or other MySQL driver from
> >an entry in jboss.jcml.
> >
> >
> >Thanks,
> >r.b.
> _
> Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
> 
> ___
> JBoss-user mailing list
> [EMAIL PROTECTED]
> http://lists.sourceforge.net/lists/listinfo/jboss-user

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



[JBoss-user] is jbossmq.dtd available...

2001-06-20 Thread Roy Yip

hi,

i'm using jboss 2.2.1 and need to know more about the structure of
jbossmq.xml. can someone tell me where to get a copy of that jbossmq.dtd
file?

thanks in advance.

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