Win a copy of Building Blockchain Apps this week in the Cloud/Virtualization forum!

Bhavesh Dak

Ranch Hand
+ Follow
since Jun 27, 2009
Bachelor's of Engineering (Information Technology)
Working at Cybage Software Pvt Ltd.
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 Bhavesh Dak

Bhavesh Dak wrote:Look up code [Jars in class path: jnp-client-3.2.1.jar, jboss-common-3.2.1.jar]



Getting following Exception
javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1058)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1127)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:478)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
Caused by: java.net.SocketTimeoutException: Receive timed out
at java.net.PlainDatagramSocketImpl.receive(Native Method)
at java.net.DatagramSocket.receive(Unknown Source)
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1038)
... 5 more

5 years ago

Bhavesh Dak wrote:Look up code [Jars in class path: jnp-client-3.2.1.jar, jboss-common-3.2.1.jar]



Getting following Exception
javax.naming.CommunicationException: Receive timed out [Root exception is java.net.SocketTimeoutException: Receive timed out]
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1058)
at org.jnp.interfaces.NamingContext.checkRef(NamingContext.java:1127)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:478)
at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:471)
Caused by: java.net.SocketTimeoutException: Receive timed out
at java.net.PlainDatagramSocketImpl.receive(Native Method)
at java.net.DatagramSocket.receive(Unknown Source)
at org.jnp.interfaces.NamingContext.discoverServer(NamingContext.java:1038)
... 5 more

5 years ago
Hi Maneesh,

Following are the mvp frameworks I found from here

mvp4g
gwt-platform
gwt-presenter
gwt-dispatch etc

My question here is if I choose mvp4g, will it be compatible with SmartGWT components?
8 years ago
GWT
Hello Ranchers,

In my new project client has requested to use GWT/SmartGWT for developing presentation tier. (Note: Screens are not much complex)
I am aware about the MVP Pattern but I need to decide which flavor of the MVP pattern I should use which meets following criteria.

1. I should be able to integrate/use SmartGWT components seamlessly with the MVP framework.
2. It would be great if framework provides me flexibility to support UI to be displayed on Mobile or iPad sort of devices.

Any guidance on this would be highly appreciated.

Thanks!!
Bhavesh
8 years ago
GWT
IMO,

Spring and EJB 3.0 are not alternative to each other. We can fine tune our application by taking advantage of both the technologies.

For e.g; Server components can be written in EJB 3.0 and other tiers can be developed elegantly using Spring framework.

It is completely depend on the architectural need of the particular application and based on that analysis only we can make decision.

Should not be biased on any of these technologies.

Hello Ranchers,

I came across a scenario where I have to user Hibernate hbm files along with Annotated EJB3.0 Entity Beans where I am facing an issue while retrieving entity configured as hbm file.

Issue : The identity value of the entity is coming with default '0' value set where actual value of id should be primary key value stored in database.

For understanding it well please refer following code:

Annotated abstract Entity:



Entity Configured via hbm file :



Hbm Configuration file : "device.hbm.xml"



I am using stateless session beans for implementation of service and dao layers.

following is the code through which I am trying to fetch an instance of Device.



Problem: Code mentioned above works fine but the id value doesn't populate properly and come up as default '0' value.
Can anybody figure it out why it is happening?

Regards,
Bhavesh Shah
Before your last post I just got your point of using ClientLoginModule which is enough as far as actual authentication happens at server side where I have used DataBaseServerLoginModule.

I am just done with implementation with ClientLoginModule and changed configuration file with just following,



Now everything (authorization and authentication) is working smoothly with my EJB 3.0 modules.

You really rock Jai, Thanks for your help and Happy Independence day in advance .



8 years ago
Thanks Jai for response,

Are you sure you want to use the DataBaseServerLoginModule on the client side (and not on server side)?



If I do not use this module then what should be the best practice for client side security implementation. My application is going to be a standalone swing application.

That login module requires not just the transaction manager but also the datasource to be accessible on the client side



I have given data source information in config file as below


I have read somewhere that transaction manager is not allowed to be used outside the container then how would I achieve this?
8 years ago
I don't understand why it requires transaction while executing select queries on database.
It seems I have to give up on this, no progress since last 3 days
8 years ago
Hello friends,

This is first time I am implementing JAAS mechanism in my EJB3.0 + Jboss 5.1.0 applicaiton.
I really appreciate if anybody can guide me to resolve following exception which am getting while performing authentication through standalone Java application.



Please find following client and server side configured xml and Java code.

CLIENT SIDE CONFIGURATION

sample_jaas.config




LoginCallBackHandler.java



TestEJBWithSecurity.java "The test code"




SERVER SIDE CONFIGURATION

%JBOSS_HOME%\server\default\conf\login-config.xml



Note: One strange thing I have noticed it that I am not seeing java:/jaas/SampleAuth anywhere in JBoss Console log

Please help me where the problem is.

Gone through several resources over the net but not finding solution to this issue.

Thanks & Regards
Bhavesh
8 years ago
Am also facing the same exception with the similar configuration of security as Chris has done



Has anybody resolved or came across this exception?

Regards,
Bhavesh
8 years ago
Hi all,

I am implementing secured web service for the first time using rampart module of Apache Axis2.



Please help me to investigate this issue. where did I made the mistake or missed something ?

Regards,
Bhavesh

8 years ago
welcome to javaranch avneesh.

I would recommend O'reilly "Java Web Services" by David A. Chappell & Tylor Jewell.
Fundamentals explained in here very easy to understand (brief and concise).

Once you understand fundamentals and building blocks of Web services you can go for further advanced materials.
8 years ago
Do don't want to go by that stratagy because I want to use same set of domain entities across the application (for both client and server) because it will reduce the maintenance because we are dealing with single set of entities.
8 years ago
GWT