Win a copy of Hello World this week in the Python forum!

Sam Cala

Ranch Hand
+ Follow
since Jan 03, 2001
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
0
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Sam Cala

hi Ko Ko!

I planned to take the exam soon. but wasn't able to make it coz of project work pressure.

The planned work rarely materialize ! Atleast with me
Thats Gr8! But because I haven't worked on a single J2ME project, I might be wrong.

I myself want J2ME to make mark on wirless technologies, if its happenning - Lets Cheer up !
You ppl. are right. Some chapters of MIDP Specs., whole of JTWI specs. and many things in MMAPI specs. are good enough for us to escape sleeping pills. Ko Ko suggested a good idea to start with some book first and then get on with all the specs.

I really wonder if studying all these specs. gonna help us in practical wireless applications... I don't know but I have hardly seen J2ME applications being developed. Those that are being developed are simple UI and RMS based applications, and that too are not being used in phones today because most of manufacturers like to use their own applications developed in customized languages like BREW, C++. And Games obviously are developed using C++. I don't really think J2ME is comparable to C++ when it comes to Game developement for wireless devices.
Yes Michael, I can very well do so using Bluetooth/Infrared.

But I mentioned I want to do this using USB port. I want my cell phone to be connected to the printer through USB and fire print on printer...

15 years ago
Can an application be developed that captures MMS images on the device and send it to the printer.

Obviosly, for this mobile device should be able to be connected to printer.

Let us say if I connect my cell phone to a printer through USB port. In that case, now I will be treating my cell phone as a PC so that I can transfer an image stored on it to a printer. Is it possible ?

If anyone from you have an idea, share it with me pls...
15 years ago
I understand that Protection Domain is a set of 'Allowed' and/or 'User' permissions. I have following confusions :

1. Is developer responsible for defining protection domain ?
2. A protection domain and a security policy file are one and the same thing?
3. Where to keep this security policy file and while delivery of application - how to deliver along with protection domain.

Get up guys... Sleeping time is over
What is the difference b/w Trusted and untrusted MidLet Suites.

I think Permissions are only granted to MIDLET suites that we intend to make 'Trusted'. Right ? All other MidLet suites with no permissions to protected APIs are 'Untrusted'.

Correct me if I am srong somwhere...
I think I gonna take it by Oct. 10.

Do u guys think reading of 'Wireless Java' is required ?
Right now - I'm stressing on 'Complete Ref.' & specs. Thtz it.

Could not get the copy of 'Wireless java 2n edition'... Is it available in India ?

Ko ko - you mean there gonna be less theortical questions ?
Yes, I think I gonna take it around the same time....
right now I am busy studying 'Complete Reference' and specs. Will then move to Sathya's notes.

Let's hope for the best.

Best Rgds,
Agreed - SCJP is the core exam wherein one can put his programming skills to display/test.
SCWCD - doesn't test one's programming experience but more focused on knowledge of APIs, Web Development scenerios, jsp thread model, servlet thread model etc.
SCBCD - focused exclusively on EJB. Haven't taken this test so I cant comment what the contents are like ?
SCD - Real exam. with assignment - typical hardcore - no doubt.
SCEA - again include programming, scenerios type qtns., assignments, EJBs.
Sometimes, I too just wonder if Sun can come up with exams like on - java.lang, java.util, javax.sql, javax.security .....
They are becoming too commercial
[ September 01, 2003: Message edited by: Sam Cala ]
Davide,
No doubt, J2EE projects exist in software market today. And it is the fav. platform for any enterprise/financial/production level projects. Just that you hv'nt had an opportunity to work on some 'real' J2EE projects doesn't mean they dont exist. Projects on these platforms are definitely there though nowadays focus is shifted from development work to enhancement work.
This is what my view is !

[ August 31, 2003: Message edited by: Sam Cala ]
I must mention that on JBoss startup, I'm also getting following exceptions :
1.
element; - nested throwable: (java.lang.IllegalAccessException: Class java.lang.reflect.Method can not access a member of class org.jboss.resource.RARMetaData wi
th modifiers "private"))
at org.jboss.resource.RARDeployer.init(RARDeployer.java:148)
at org.jboss.deployment.MainDeployer.init(MainDeployer.java:679)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:615)
at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:591)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAcces
sorImpl.java:25)
2.
15:00:28,472 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope
ration 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
<none>
Incompletely deployed packages:
[org.jboss.deployment.DeploymentInfo@dc5d0b9a { url=file:/D:/JBoss3/server/defau
lt/deploy/jboss-local-jdbc.rar }
deployer: org.jboss.resource.RARDeployer@88
status: null
state: FAILED
watch: file:/D:/JBoss3/server/default/deploy/jboss-local-jdbc.rar
lastDeployed: 1061976625206
lastModified: 1061976625159
mbeans:
, org.jboss.deployment.DeploymentInfo@eab91e62 { url=file:/D:/JBoss3/server/defa
ult/deploy/jboss-xa-jdbc.rar }
deployer: org.jboss.resource.RARDeployer@88
status: null
state: FAILED
watch: file:/D:/JBoss3/server/default/deploy/jboss-xa-jdbc.rar
, org.jboss.deployment.DeploymentInfo@d7100093 { url=file:/D:/JBoss3/server/defa
ult/deploy/jms-ra.rar }
deployer: org.jboss.resource.RARDeployer@88
status: null
state: FAILED
watch: file:/D:/JBoss3/server/default/deploy/jms-ra.rar
lastDeployed: 1061976625425
lastModified: 1061976625409
Depends On Me: , ObjectName: jboss.jca:service=XaTxDS,name=jmsra
state: CONFIGURED
I Depend On: jboss.jca:service=RARDeployment,name=JMS Adapter
Depends On Me: jboss.jca:service=XaTxCM,name=jmsra
, ObjectName: jboss.jca:service=LocalTxCM,name=msSQLDS
state: CONFIGURED
I Depend On: jboss.jca:service=LocalTxDS,name=msSQLDS
jboss.jca:service=LocalTxPool,name=msSQLDS
jboss.jca:service=CachedConnectionManager
jboss.security:service=JaasSecurityManager
jboss.jca:service=RARDeployer
Depends On Me: , ObjectName: jboss.jca:service=LocalTxDS,name=msSQLDS
state: CONFIGURED
I Depend On: jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC
Wrapper
jboss:service=Hypersonic
Depends On Me: jboss.jca:service=LocalTxCM,name=msSQLDS
]
15:00:28,472 INFO [URLDeploymentScanner] Started
15:00:28,472 INFO [MainDeployer] Deployed package: file:/D:/JBoss3/server/defau
lt/conf/jboss-service.xml
16 years ago
Hi Norman,
I'm posting relevant code here, pls. try helping...
ejb-jar.xml
<?xml version = '1.0' encoding = 'windows-1252'?>
<!DOCTYPE ejb-jar PUBLIC "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN" "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
<ejb-jar>
<enterprise-beans>
<entity>
<description>Entity Bean ( BMP )</description>
<display-name>AccountBean</display-name>
<ejb-name>AccountBean</ejb-name>
<home>encompass.interfaces.AccountHome</home>
<remote>encompass.interfaces.Account</remote>
<ejb-class>encompass.ejb.AccountBean</ejb-class>
<persistence-type>Bean</persistence-type>
<prim-key-class>encompass.ejb.AccountPK</prim-key-class>
<reentrant>False</reentrant>
<resource-ref>
<res-ref-name>msSQLDS</res-ref-name>
<jndi-name>msSQLDS</jndi-name>
<res-type>javax.sql.DataSource</res-type>
<res-auth>Container</res-auth>
</resource-ref>
</entity>
</enterprise-beans>
</ejb-jar>

jboss.xml
<?xml version = '1.0' encoding = 'windows-1252'?>
<jboss>
<enterprise-beans>
<entity>
<ejb-name>AccountBean</ejb-name>
<resource-ref>
<res-ref-name>msSQLDS</res-ref-name>
<resource-name>AccountDBResource</resource-name>
</resource-ref>
</entity>
<resource-managers>
<resource-manager>
<res-name>AccountDBResource</res-name>
<res-jndi-name>msSQLDS</res-jndi-name>
</resource-manager>
</resource-managers>
</enterprise-beans>
</jboss>

mssqldb-service.xml
<?xml version="1.0" encoding="UTF-8"?>
<server>
<mbean code="org.jboss.resource.connectionmanager.LocalTxConnectionManager" name="jboss.jca:service=LocalTxCM,name=msSQLDS">
<depends optional-attribute-name="ManagedConnectionFactoryName">
<!--embedded mbean-->
<mbean code="org.jboss.resource.connectionmanager.RARDeployment" name="jboss.jca:service=LocalTxDS,name=msSQLDS">
<attribute name="JndiName">msSQLDS</attribute>
<attribute name="ManagedConnectionFactoryProperties">
<properties>
<config-property name="ConnectionURL" type="java.lang.String">jdbc:JSQLConnect://localhost:1433/databaseName=BankAccount</config-property>
<config-property name="DriverClass" type="java.lang.String">com.jnetdirect.jsql.JSQLDriver</config-property>
<config-property name="UserName" type="java.lang.String">sa</config-property>
<config-property name="Password" type="java.lang.String">sa</config-property>
</properties>
</attribute>
<depends optional-attribute-name="OldRarDeployment">jboss.jca:service=RARDeployment,name=JBoss LocalTransaction JDBC Wrapper</depends>
</mbean>
</depends>
<depends optional-attribute-name="ManagedConnectionPool">
<!--embedded mbean-->
<mbean code="org.jboss.resource.connectionmanager.JBossManagedConnectionPool" name="jboss.jca:service=LocalTxPool,name=msSQLDS">
<attribute name="MinSize">0</attribute>
<attribute name="MaxSize">50</attribute>
<attribute name="BlockingTimeoutMillis">5000</attribute>
<attribute name="IdleTimeoutMinutes">15</attribute>
<attribute name="Criteria">ByContainer</attribute>
</mbean>
</depends>
<depends optional-attribute-name="CachedConnectionManager">jboss.jca:service=CachedConnectionManager</depends>
<depends optional-attribute-name="JaasSecurityManagerService">jboss.security:service=JaasSecurityManager</depends>
<attribute name="TransactionManager">java:/TransactionManager</attribute>
<!--make the rar deploy! hack till better deployment-->
<depends>jboss.jca:service=RARDeployer</depends>
</mbean>
</server>
login-config.xml
<application-policy name = "msSQLDS">
<authentication>
<login-module code = "org.jboss.resource.security.ConfiguredIdentityLoginModule" flag = "required">
<module-option name = "principal">sa</module-option>
<module-option name = "userName">sa</module-option>
<module-option name = "password">sa</module-option>
<module-option name = "managedConnectionFactoryName">jboss.jca:service=LocalTxCM,name=msSQLDS</module-option>
</login-module>
</authentication>
</application-policy>

EJB (BMP)
Context ctx = new InitialContext(System.getProperties());
javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup("java:msSQLDS");
Pls. advise if I hv made anything wrong or if some additional step needs to be taken.
Rgds,
16 years ago
Believe me Norman - I'm frustrated now...
I had JBoss 3.2.1 and was using *-ds.xml files. When I wasnt able to get Datasource working on 3.2.1, I switched to 3.0.2 and tried *-service.xml files.
Though with 3.0.2 and *-service.xml files, I was able to see the following lines at http://localhost:8080/jmx-console/index.jsp :
name=msSQLDS,service=LocalTxCM
name=msSQLDS,service=LocalTxDS
name=msSQLDS,service=LocalTxPool
These lines, according to me , indicates that my DataSource named 'msSQLDS' has been registered. But unfortunately I'm not being able to get datasource from my EJB (BMP) by saying :
javax.sql.DataSource ds = (javax.sql.DataSource) ctx.lookup("java:comp/msSQLDS");
I have also tried using "java:msSQLDS" and "java:env/msSQLDS".
Also , I tried :
Enumeration enum = ctx.list("/");
while (enum.hasMoreElements())
System.out.println(" -- " + enum.nextElement() );
which prints all other namings except msSQLDS (though it is getting printed in jmx-console) :
14:30:09,655 INFO [STDOUT] -- UIL2XAConnectionFactory: org.jboss.mq.SpyXAConn
ctionFactory
14:30:09,655 INFO [STDOUT] -- topic: org.jnp.interfaces.NamingContext
14:30:09,655 INFO [STDOUT] -- jmx:vkhattar:rmi: org.jboss.jmx.adaptor.rmi.RMI
daptorImpl
14:30:09,655 INFO [STDOUT] -- queue: org.jnp.interfaces.NamingContext
14:30:09,655 INFO [STDOUT] -- ConnectionFactory: org.jboss.mq.SpyConnectionFa
tory
14:30:09,655 INFO [STDOUT] -- RMIConnectionFactory: org.jboss.mq.SpyConnectio
Factory
14:30:09,655 INFO [STDOUT] -- UserTransaction: org.jboss.tm.usertx.client.Cli
ntUserTransaction
14:30:09,655 INFO [STDOUT] -- ejb: org.jnp.interfaces.NamingContext
14:30:09,655 INFO [STDOUT] -- invokers: org.jnp.interfaces.NamingContext
14:30:09,655 INFO [STDOUT] -- jmx: org.jnp.interfaces.NamingContext
14:30:09,655 INFO [STDOUT] -- UILXAConnectionFactory: org.jboss.mq.SpyXAConne
tionFactory
14:30:09,655 INFO [STDOUT] -- AccountBean: $Proxy30
14:30:09,655 INFO [STDOUT] -- UILConnectionFactory: org.jboss.mq.SpyConnectionFactory
Pls. Help.
16 years ago
Hi,
I tried deploying mssql-ds.xml and the log displays these errors :
09:17:40,263 INFO [MainDeployer] Starting deployment of package: file:/D:/JBoss
3/server/default/deploy/mssql-ds.xml
09:17:40,279 INFO [MainDeployer] deployment waiting for deployer: file:/D:/JBos
s3/server/default/deploy/mssql-ds.xml
09:17:40,279 INFO [MainDeployer] Deployment of package: file:/D:/JBoss3/server/
default/deploy/mssql-ds.xml is waiting for an appropriate deployer.
09:17:40,279 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope
ration 'checkIncompleteDeployments()'
Cause: Incomplete Deployment listing:
Packages waiting for a deployer:
[org.jboss.deployment.DeploymentInfo@40fe3f46 { url=file:/D:/JBoss3/server/defau
lt/deploy/jms/jms-ds.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/D:/JBoss3/server/default/deploy/jms/jms-ds.xml
lastDeployed: 1061869561513
lastModified: 1061869561498
mbeans:
, org.jboss.deployment.DeploymentInfo@c3e9df4f { url=file:/D:/JBoss3/server/defa
ult/deploy/mssql-ds.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/D:/JBoss3/server/default/deploy/mssql-ds.xml
lastDeployed: 1061869660279
lastModified: 1061869660263
mbeans:
]Incompletely deployed packages:
[org.jboss.deployment.DeploymentInfo@dc5d0b9a { url=file:/D:/JBoss3/server/defau
lt/deploy/jboss-local-jdbc.rar }
deployer: org.jboss.resource.RARDeployer@ad
status: null
state: FAILED
watch: file:/D:/JBoss3/server/default/deploy/jboss-local-jdbc.rar
lastDeployed: 1061869560904
lastModified: 1061869560732
mbeans:
, org.jboss.deployment.DeploymentInfo@eab91e62 { url=file:/D:/JBoss3/server/defa
ult/deploy/jboss-xa-jdbc.rar }
deployer: org.jboss.resource.RARDeployer@ad
status: null
state: FAILED
watch: file:/D:/JBoss3/server/default/deploy/jboss-xa-jdbc.rar
lastDeployed: 1061869561138
lastModified: 1061869560998
mbeans:
, org.jboss.deployment.DeploymentInfo@57e458f2 { url=file:/D:/JBoss3/server/defa
ult/deploy/jms/jms-ra.rar }
deployer: org.jboss.resource.RARDeployer@ad
status: null
state: FAILED
watch: file:/D:/JBoss3/server/default/deploy/jms/jms-ra.rar
lastDeployed: 1061869561388
lastModified: 1061869561232
mbeans:
, org.jboss.deployment.DeploymentInfo@40fe3f46 { url=file:/D:/JBoss3/server/defa
ult/deploy/jms/jms-ds.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/D:/JBoss3/server/default/deploy/jms/jms-ds.xml
lastDeployed: 1061869561513
lastModified: 1061869561498
mbeans:
, org.jboss.deployment.DeploymentInfo@c3e9df4f { url=file:/D:/JBoss3/server/defa
ult/deploy/mssql-ds.xml }
deployer: null
status: null
state: INIT_WAITING_DEPLOYER
watch: file:/D:/JBoss3/server/default/deploy/mssql-ds.xml
lastDeployed: 1061869660279
lastModified: 1061869660263
mbeans:
]MBeans waiting for classes:
<none>
MBeans waiting for other MBeans:
[ObjectName: jboss.jca:service=ConnectionFactoryDeployer
state: FAILED
I Depend On:
Depends On Me: javax.xml.transform.TransformerConfigurationException: javax.xml
.transform.TransformerException: javax.xml.transform.TransformerException: Fail
ed calling setMethod method, ObjectName: jboss.mq:service=InvocationLayer,type=H
TTP
state: CONFIGURED
I Depend On: jboss.mq:service=Invoker
jboss.web:service=WebServer
Depends On Me: , ObjectName: jboss.mq.destination:service=Topic,name=testTopic
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager
Depends On Me: , ObjectName: jboss.mq.destination:service=Topic,name=securedTop
ic
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager
Depends On Me: , ObjectName: jboss.mq.destination:service=Topic,name=testDurabl
eTopic
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager
Depends On Me: , ObjectName: jboss.mq.destination:service=Queue,name=testQueue
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager
Depends On Me: , ObjectName: jboss.mq.destination:service=Queue,name=A
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
Depends On Me: , ObjectName: jboss.mq.destination:service=Queue,name=B
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
Depends On Me: , ObjectName: jboss.mq.destination:service=Queue,name=C
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
Depends On Me: , ObjectName: jboss.mq.destination:service=Queue,name=D
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
Depends On Me: , ObjectName: jboss.mq.destination:service=Queue,name=ex
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
Depends On Me: , ObjectName: jboss.mq:service=InvocationLayer,type=JVM
state: CONFIGURED
I Depend On: jboss.mq:service=Invoker
Depends On Me: , ObjectName: jboss.mq:service=InvocationLayer,type=RMI
state: CONFIGURED
I Depend On: jboss.mq:service=Invoker
Depends On Me: , ObjectName: jboss.mq:service=InvocationLayer,type=OIL
state: CONFIGURED
I Depend On: jboss.mq:service=Invoker
Depends On Me: , ObjectName: jboss.mq:service=InvocationLayer,type=UIL
state: CONFIGURED
I Depend On: jboss.mq:service=Invoker
Depends On Me: , ObjectName: jboss.mq:service=InvocationLayer,type=OIL2
state: CONFIGURED
I Depend On: jboss.mq:service=Invoker
Depends On Me: , ObjectName: jboss.mq:service=InvocationLayer,type=UIL2
state: CONFIGURED
I Depend On: jboss.mq:service=Invoker
Depends On Me: , ObjectName: jboss.mq:service=Invoker
state: CONFIGURED
I Depend On: jboss.mq:service=TracingInterceptor
Depends On Me: jboss.mq:service=InvocationLayer,type=HTTP
jboss.mq:service=InvocationLayer,type=JVM
jboss.mq:service=InvocationLayer,type=RMI
jboss.mq:service=InvocationLayer,type=OIL
jboss.mq:service=InvocationLayer,type=UIL
jboss.mq:service=InvocationLayer,type=OIL2
jboss.mq:service=InvocationLayer,type=UIL2
, ObjectName: jboss.mq:service=TracingInterceptor
state: CONFIGURED
I Depend On: jboss.mq:service=SecurityManager
Depends On Me: jboss.mq:service=Invoker
, ObjectName: jboss.mq:service=SecurityManager
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
Depends On Me: jboss.mq.destination:service=Topic,name=testTopic
jboss.mq.destination:service=Topic,name=securedTopic
jboss.mq.destination:service=Topic,name=testDurableTopic
jboss.mq.destination:service=Queue,name=testQueue
jboss.mq:service=TracingInterceptor
jboss.mq.destination:service=Queue,name=DLQ
, ObjectName: jboss.mq:service=DestinationManager
state: CONFIGURED
I Depend On: jboss.mq:service=PersistenceManager
jboss.mq:service=StateManager
Depends On Me: jboss.mq.destination:service=Topic,name=testTopic
jboss.mq.destination:service=Topic,name=securedTopic
jboss.mq.destination:service=Topic,name=testDurableTopic
jboss.mq.destination:service=Queue,name=testQueue
jboss.mq.destination:service=Queue,name=A
jboss.mq.destination:service=Queue,name=B
jboss.mq.destination:service=Queue,name=C
jboss.mq.destination:service=Queue,name=D
jboss.mq.destination:service=Queue,name=ex
jboss.mq:service=SecurityManager
jboss.mq.destination:service=Queue,name=DLQ
, ObjectName: jboss.mq:service=PersistenceManager
state: CONFIGURED
I Depend On: jboss.mq:service=MessageCache
jboss.jca:service=LocalTxCM,name=DefaultDS
Depends On Me: jboss.mq:service=DestinationManager
, ObjectName: jboss.mq.destination:service=Queue,name=DLQ
state: CONFIGURED
I Depend On: jboss.mq:service=DestinationManager
jboss.mq:service=SecurityManager
Depends On Me: ]

Pls. help ! Whats the problem ? How should I proceed ?
16 years ago